Give examples on how to use the build-time args in docker-compose
This commit is contained in:
11
README.md
11
README.md
@ -49,12 +49,19 @@ services:
|
|||||||
- ./postgres:/var/lib/postgresql/data
|
- ./postgres:/var/lib/postgresql/data
|
||||||
|
|
||||||
web:
|
web:
|
||||||
build: .
|
|
||||||
image: pleroma
|
image: pleroma
|
||||||
container_name: pleroma_web
|
container_name: pleroma_web
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
- '4000:4000'
|
- '4000:4000'
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
# Feel free to remove or override this section
|
||||||
|
# See 'Build-time variables' in README.md
|
||||||
|
args:
|
||||||
|
- "UID=911"
|
||||||
|
- "GID=911"
|
||||||
|
- "PLEROMA_VER=develop"
|
||||||
volumes:
|
volumes:
|
||||||
- ./uploads:/var/lib/pleroma/uploads
|
- ./uploads:/var/lib/pleroma/uploads
|
||||||
- ./static:/var/lib/pleroma/static
|
- ./static:/var/lib/pleroma/static
|
||||||
@ -200,6 +207,8 @@ docker build -t pleroma . --build-arg PLEROMA_VER=v2.0.7 # a version
|
|||||||
|
|
||||||
`a9203ab3` being the hash of the commit. (They're [here](https://git.pleroma.social/pleroma/pleroma/commits/develop))
|
`a9203ab3` being the hash of the commit. (They're [here](https://git.pleroma.social/pleroma/pleroma/commits/develop))
|
||||||
|
|
||||||
|
This value can also be set through `docker-compose.yml` as seen in the example file provided in this repository.
|
||||||
|
|
||||||
## Other Docker images
|
## Other Docker images
|
||||||
|
|
||||||
Here are other Pleroma Docker images that helped me build mine:
|
Here are other Pleroma Docker images that helped me build mine:
|
||||||
|
@ -13,12 +13,19 @@ services:
|
|||||||
- ./postgres:/var/lib/postgresql/data
|
- ./postgres:/var/lib/postgresql/data
|
||||||
|
|
||||||
web:
|
web:
|
||||||
build: .
|
|
||||||
image: pleroma
|
image: pleroma
|
||||||
container_name: pleroma_web
|
container_name: pleroma_web
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
- '4000:4000'
|
- '4000:4000'
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
# Feel free to remove or override this section
|
||||||
|
# See 'Build-time variables' in README.md
|
||||||
|
args:
|
||||||
|
- "UID=911"
|
||||||
|
- "GID=911"
|
||||||
|
- "PLEROMA_VER=develop"
|
||||||
volumes:
|
volumes:
|
||||||
- ./uploads:/var/lib/pleroma/uploads
|
- ./uploads:/var/lib/pleroma/uploads
|
||||||
- ./static:/var/lib/pleroma/static
|
- ./static:/var/lib/pleroma/static
|
||||||
@ -32,4 +39,4 @@ services:
|
|||||||
DB_PASS: ChangeMe!
|
DB_PASS: ChangeMe!
|
||||||
DB_NAME: pleroma
|
DB_NAME: pleroma
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
|
Reference in New Issue
Block a user