Adding default values for env variables use (#13)
This commit is contained in:
parent
ed0c4a0bf1
commit
909bc425fc
|
@ -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'
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue