Adding default values for env variables use (#13)

This commit is contained in:
gabrielmer 2023-11-01 16:39:07 +02:00 committed by GitHub
parent ed0c4a0bf1
commit 909bc425fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 5 deletions

View File

@ -11,7 +11,7 @@ networks:
services:
bootstrap:
image: ${NWAKU_IMAGE}
image: ${NWAKU_IMAGE:-wakuorg/nwaku:latest}
restart: on-failure
labels:
com.centurylinklabs.watchtower.enable: '${WATCHTOWER_ENABLED:-false}'
@ -30,12 +30,12 @@ services:
- simulation
nwaku:
image: ${NWAKU_IMAGE}
image: ${NWAKU_IMAGE:-wakuorg/nwaku:latest}
restart: on-failure
labels:
com.centurylinklabs.watchtower.enable: '${WATCHTOWER_ENABLED:-false}'
deploy:
replicas: ${NUM_NWAKU_NODES}
replicas: ${NUM_NWAKU_NODES:-5}
entrypoint: sh
command:
- '/opt/run_nwaku.sh'
@ -47,12 +47,12 @@ services:
- simulation
gowaku:
image: ${GOWAKU_IMAGE}
image: ${GOWAKU_IMAGE:-wakuorg/go-waku:latest}
restart: on-failure
labels:
com.centurylinklabs.watchtower.enable: '${WATCHTOWER_ENABLED:-false}'
deploy:
replicas: ${NUM_GOWAKU_NODES}
replicas: ${NUM_GOWAKU_NODES:-0}
entrypoint: sh
command:
- '/opt/run_gowaku.sh'

View File

@ -7,5 +7,6 @@ NUM_GOWAKU_NODES=0
# Simulation traffic.
MSG_PER_SECOND=10
MSG_SIZE_KBYTES=10
TRAFFIC_DELAY_SECONDS=15
# Enable automatic Docker image updates.
WATCHTOWER_ENABLED=true