Merge pull request #8 from waku-org/docker/add-watchtower

docker-compose: add watchtower label and variable
This commit is contained in:
Alvaro Revuelta 2023-09-26 15:53:22 +02:00 committed by GitHub
commit be6d8c7703
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
**/.DS_Store **/.DS_Store
*.env

View File

@ -14,6 +14,8 @@ services:
bootstrap: bootstrap:
image: ${NWAKU_IMAGE} image: ${NWAKU_IMAGE}
restart: on-failure restart: on-failure
labels:
com.centurylinklabs.watchtower.enable: '${WATCHTOWER_ENABLED:-false}'
# TODO: expose some ports to inject traffic # TODO: expose some ports to inject traffic
ports: ports:
- 127.0.0.1:60000:60000 - 127.0.0.1:60000:60000
@ -31,6 +33,8 @@ services:
nwaku: nwaku:
image: ${NWAKU_IMAGE} image: ${NWAKU_IMAGE}
restart: on-failure restart: on-failure
labels:
com.centurylinklabs.watchtower.enable: '${WATCHTOWER_ENABLED:-false}'
deploy: deploy:
replicas: ${NUM_NWAKU_NODES} replicas: ${NUM_NWAKU_NODES}
entrypoint: sh entrypoint: sh
@ -46,6 +50,8 @@ services:
gowaku: gowaku:
image: ${GOWAKU_IMAGE} image: ${GOWAKU_IMAGE}
restart: on-failure restart: on-failure
labels:
com.centurylinklabs.watchtower.enable: '${WATCHTOWER_ENABLED:-false}'
deploy: deploy:
replicas: ${NUM_GOWAKU_NODES} replicas: ${NUM_GOWAKU_NODES}
entrypoint: sh entrypoint: sh