Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance env variables #1698

Merged
merged 3 commits into from
Jul 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 30 additions & 36 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,12 @@ COMPOSE_SP_PLUGSIN_SW=${PLUGSIN_SW:-OFF}
# default: COMPOSE_SP_PLUGSIN_SW
COMPOSE_SP_SERVER_ADDRESS=${SERVER_ADDRESS:-localhost}
# default: COMPOSE_SP_SERVER_ADDRESS=localhost
COMPOSE_SP_API_USERNAME=${SP_API_USERNAME:-}
# default: COMPOSE_SP_API_USERNAME=
# Note - Use SP_API_USERNAME instead of API_USERNAME because API_USERNAME is used in CB-Tumblebug
COMPOSE_SP_TB_API_USERNAME=${SP_TB_API_USERNAME:-}
# default: COMPOSE_SP_TB_API_USERNAME=
# Note - Use SP_TB_API_USERNAME instead of TB_API_USERNAME because TB_API_USERNAME is used in CB-Tumblebug
COMPOSE_SP_API_PASSWORD=${SP_API_PASSWORD:-}
# default: COMPOSE_SP_API_PASSWORD=
# Note - Use SP_API_PASSWORD instead of API_PASSWORD because API_PASSWORD is used in CB-Tumblebug
# Note - Use SP_API_PASSWORD instead of TB_API_PASSWORD because TB_API_PASSWORD is used in CB-Tumblebug
COMPOSE_SP_LOG_LEVEL=${LOG_LEVEL:-error}
# default: COMPOSE_SP_LOG_LEVEL=error
COMPOSE_SP_HISCALL_LOG_LEVEL=${HISCALL_LOG_LEVEL:-error}
Expand All @@ -96,24 +96,20 @@ COMPOSE_TB_VOLUME_HOST_PATH=${TB_VOLUME_HOST_PATH:-./container-volume/cb-tumbleb
# default: COMPOSE_TB_VOLUME_HOST_PATH=./container-volume/cb-tumblebug-container
COMPOSE_TB_VOLUME_CONTAINTER_PATH=${TB_VOLUME_CONTAINTER_PATH:-/app}
# default: COMPOSE_TB_VOLUME_CONTAINTER_PATH=/app
COMPOSE_TB_CBTUMBLEBUG_ROOT=${CBTUMBLEBUG_ROOT:-/app}
# default: COMPOSE_TB_CBTUMBLEBUG_ROOT=/app
COMPOSE_TB_SPIDER_CALL_METHOD=${SPIDER_CALL_METHOD:-REST}
# default: COMPOSE_TB_SPIDER_CALL_METHOD=REST
COMPOSE_TB_ROOT_PATH=${TB_ROOT_PATH:-/app}
# default: COMPOSE_TB_ROOT_PATH=/app
COMPOSE_TB_SPIDER_REST_URL=http://cb-spider:1024/spider
# default: COMPOSE_TB_SPIDER_REST_URL=http://cb-spider:1024/spider
COMPOSE_TB_DRAGONFLY_CALL_METHOD=${DRAGONFLY_CALL_METHOD:-REST}
# default: COMPOSE_TB_DRAGONFLY_CALL_METHOD=REST
COMPOSE_TB_DRAGONFLY_REST_URL=http://cb-dragonfly:9090/dragonfly
# default: COMPOSE_TB_DRAGONFLY_REST_URL=http://cb-dragonfly:9090/dragonfly
COMPOSE_TB_DB_URL=${DB_URL:-localhost:3306}
# default: COMPOSE_TB_DB_URL=localhost:3306
COMPOSE_TB_DB_DATABASE=${DB_DATABASE:-cb_tumblebug}
# default: COMPOSE_TB_DB_DATABASE=cb_tumblebug
COMPOSE_TB_DB_USER=${DB_USER:-cb_tumblebug}
# default: COMPOSE_TB_DB_USER=cb_tumblebug
COMPOSE_TB_DB_PASSWORD=${DB_PASSWORD:-cb_tumblebug}
# default: COMPOSE_TB_DB_PASSWORD=cb_tumblebug
COMPOSE_TB_SQLITE_URL=${TB_SQLITE_URL:-localhost:3306}
# default: COMPOSE_TB_SQLITE_URL=localhost:3306
COMPOSE_TB_SQLITE_DATABASE=${TB_SQLITE_DATABASE:-cb_tumblebug}
# default: COMPOSE_TB_SQLITE_DATABASE=cb_tumblebug
COMPOSE_TB_SQLITE_USER=${TB_SQLITE_USER:-cb_tumblebug}
# default: COMPOSE_TB_SQLITE_USER=cb_tumblebug
COMPOSE_TB_SQLITE_PASSWORD=${TB_SQLITE_PASSWORD:-cb_tumblebug}
# default: COMPOSE_TB_SQLITE_PASSWORD=cb_tumblebug
COMPOSE_TB_ETCD_ENDPOINTS=http://etcd:2379
# default: COMPOSE_TB_ETCD_ENDPOINTS=http://etcd:2379
COMPOSE_TB_ETCD_AUTH_ENABLED=${TB_ETCD_AUTH_ENABLED:-true}
Expand All @@ -122,39 +118,37 @@ COMPOSE_TB_ETCD_USERNAME=${TB_ETCD_USERNAME:-default}
# default: COMPOSE_TB_ETCD_USERNAME=default
COMPOSE_TB_ETCD_PASSWORD=${TB_ETCD_PASSWORD:-default}
# default: COMPOSE_TB_ETCD_PASSWORD=default
COMPOSE_TB_ALLOW_ORIGINS=${ALLOW_ORIGINS:-*}
COMPOSE_TB_ALLOW_ORIGINS=${TB_ALLOW_ORIGINS:-*}
# default: COMPOSE_TB_ALLOW_ORIGINS=*
COMPOSE_TB_AUTH_ENABLED=${AUTH_ENABLED:-true}
COMPOSE_TB_AUTH_ENABLED=${TB_AUTH_ENABLED:-true}
# default: COMPOSE_TB_AUTH_ENABLED=true
COMPOSE_TB_API_USERNAME=${API_USERNAME:-default}
COMPOSE_TB_API_USERNAME=${TB_API_USERNAME:-default}
# default: COMPOSE_TB_API_USERNAME=default
COMPOSE_TB_API_PASSWORD=${API_PASSWORD:-default}
COMPOSE_TB_API_PASSWORD=${TB_API_PASSWORD:-default}
# default: COMPOSE_TB_API_PASSWORD=default
COMPOSE_TB_AUTOCONTROL_DURATION_MS=${AUTOCONTROL_DURATION_MS:-10000}
COMPOSE_TB_AUTOCONTROL_DURATION_MS=${TB_AUTOCONTROL_DURATION_MS:-10000}
# default: COMPOSE_TB_AUTOCONTROL_DURATION_MS=10000
COMPOSE_TB_SELF_ENDPOINT=${SELF_ENDPOINT:-localhost:1323}
COMPOSE_TB_SELF_ENDPOINT=${TB_SELF_ENDPOINT:-localhost:1323}
# default: COMPOSE_TB_SELF_ENDPOINT=localhost:1323
COMPOSE_TB_API_DOC_PATH=${API_DOC_PATH:-/app/src/api/rest/docs/swagger.json}
# default: COMPOSE_TB_API_DOC_PATH=/app/src/api/rest/docs/swagger.json
COMPOSE_TB_DEFAULT_NAMESPACE=${DEFAULT_NAMESPACE:-ns01}
COMPOSE_TB_DEFAULT_NAMESPACE=${TB_DEFAULT_NAMESPACE:-ns01}
# default: COMPOSE_TB_DEFAULT_NAMESPACE=ns01
COMPOSE_TB_DEFAULT_CREDENTIALHOLDER=${DEFAULT_CREDENTIALHOLDER:-admin}
COMPOSE_TB_DEFAULT_CREDENTIALHOLDER=${TB_DEFAULT_CREDENTIALHOLDER:-admin}
# default: COMPOSE_TB_DEFAULT_CREDENTIALHOLDER=admin
COMPOSE_TB_LOGFILE_PATH=${LOGFILE_PATH:-/app/log/tumblebug.log}
COMPOSE_TB_LOGFILE_PATH=${TB_LOGFILE_PATH:-/app/log/tumblebug.log}
# default: COMPOSE_TB_LOGFILE_PATH=/app/log/tumblebug.log
COMPOSE_TB_LOGFILE_MAXSIZE=${LOGFILE_MAXSIZE:-10}
COMPOSE_TB_LOGFILE_MAXSIZE=${TB_LOGFILE_MAXSIZE:-10}
# default: COMPOSE_TB_LOGFILE_MAXSIZE=10
COMPOSE_TB_LOGFILE_MAXBACKUPS=${LOGFILE_MAXBACKUPS:-3}
COMPOSE_TB_LOGFILE_MAXBACKUPS=${TB_LOGFILE_MAXBACKUPS:-3}
# default: COMPOSE_TB_LOGFILE_MAXBACKUPS=3
COMPOSE_TB_LOGFILE_MAXAGE=${LOGFILE_MAXAGE:-30}
COMPOSE_TB_LOGFILE_MAXAGE=${TB_LOGFILE_MAXAGE:-30}
# default: COMPOSE_TB_LOGFILE_MAXAGE=30
COMPOSE_TB_LOGFILE_COMPRESS=${LOGFILE_COMPRESS:-false}
COMPOSE_TB_LOGFILE_COMPRESS=${TB_LOGFILE_COMPRESS:-false}
# default: COMPOSE_TB_LOGFILE_COMPRESS=false
COMPOSE_TB_LOGLEVEL=${LOGLEVEL:-debug}
COMPOSE_TB_LOGLEVEL=${TB_LOGLEVEL:-debug}
# default: COMPOSE_TB_LOGLEVEL=debug
COMPOSE_TB_LOGWRITER=${LOGWRITER:-both}
COMPOSE_TB_LOGWRITER=${TB_LOGWRITER:-both}
# default: COMPOSE_TB_LOGWRITER=both
COMPOSE_TB_NODE_ENV=${NODE_ENV:-development}
COMPOSE_TB_NODE_ENV=${TB_NODE_ENV:-development}
# default: COMPOSE_TB_NODE_ENV=development


Expand Down
55 changes: 26 additions & 29 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,39 +43,36 @@ COPY --from=builder /go/src/github.com/cloud-barista/cb-tumblebug/conf/ /app/con
COPY --from=builder /go/src/github.com/cloud-barista/cb-tumblebug/src/cb-tumblebug /app/src/

# Setting various environment variables required by the application
ENV CBTUMBLEBUG_ROOT=/app \
SPIDER_CALL_METHOD=REST \
DRAGONFLY_CALL_METHOD=REST \
SPIDER_REST_URL=http://cb-spider:1024/spider \
DRAGONFLY_REST_URL=http://cb-dragonfly:9090/dragonfly \
DB_URL=localhost:3306 \
DB_DATABASE=cb_tumblebug \
DB_USER=cb_tumblebug \
DB_PASSWORD=cb_tumblebug \
ENV TB_ROOT_PATH=/app \
TB_SPIDER_REST_URL=http://cb-spider:1024/spider \
TB_DRAGONFLY_REST_URL=http://cb-dragonfly:9090/dragonfly \
TB_SQLITE_URL=localhost:3306 \
TB_SQLITE_DATABASE=cb_tumblebug \
TB_SQLITE_USER=cb_tumblebug \
TB_SQLITE_PASSWORD=cb_tumblebug \
TB_ETCD_ENDPOINTS=http://etcd:2379 \
TB_ETCD_AUTH_ENABLED=true \
TB_ETCD_USERNAME=default \
TB_ETCD_PASSWORD=default \
ALLOW_ORIGINS=* \
AUTH_ENABLED=true \
AUTH_MODE=basic \
AUTH_JWT_SIGNING_METHOD=RS256 \
AUTH_JWT_PUBLICKEY= \
API_USERNAME=default \
API_PASSWORD=default \
AUTOCONTROL_DURATION_MS=10000 \
SELF_ENDPOINT=localhost:1323 \
API_DOC_PATH=/app/src/api/rest/docs/swagger.json \
DEFAULT_NAMESPACE=ns01 \
DEFAULT_CREDENTIALHOLDER=admin \
LOGFILE_PATH=/app/log/tumblebug.log \
LOGFILE_MAXSIZE=10 \
LOGFILE_MAXBACKUPS=3 \
LOGFILE_MAXAGE=30 \
LOGFILE_COMPRESS=false \
LOGLEVEL=debug \
LOGWRITER=both \
NODE_ENV=development
TB_ALLOW_ORIGINS=* \
TB_AUTH_ENABLED=true \
TB_AUTH_MODE=basic \
TB_AUTH_JWT_SIGNING_METHOD=RS256 \
TB_AUTH_JWT_PUBLICKEY= \
TB_API_USERNAME=default \
TB_API_PASSWORD=default \
TB_AUTOCONTROL_DURATION_MS=10000 \
TB_SELF_ENDPOINT=localhost:1323 \
TB_DEFAULT_NAMESPACE=ns01 \
TB_DEFAULT_CREDENTIALHOLDER=admin \
TB_LOGFILE_PATH=/app/log/tumblebug.log \
TB_LOGFILE_MAXSIZE=10 \
TB_LOGFILE_MAXBACKUPS=3 \
TB_LOGFILE_MAXAGE=30 \
TB_LOGFILE_COMPRESS=false \
TB_LOGLEVEL=debug \
TB_LOGWRITER=both \
TB_NODE_ENV=development

# Setting the entrypoint for the application
ENTRYPOINT [ "/app/src/cb-tumblebug" ]
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ Check out [CONTRIBUTING](https://github.com/cloud-barista/cb-tumblebug/blob/main
cd ~/go/src/github.com/cloud-barista/cb-tumblebug
source conf/setup.env
```
- (Note) Automatically set the SELF_ENDPOINT environment variable (an externally accessible address) using a script if needed
- (Note) Automatically set the TB_SELF_ENDPOINT environment variable (an externally accessible address) using a script if needed
- This is necessary if you want to access and control the Swagger API Dashboard from outside when CB-TB is running
```bash
cd ~/go/src/github.com/cloud-barista/cb-tumblebug
Expand Down
77 changes: 34 additions & 43 deletions conf/setup.env
Original file line number Diff line number Diff line change
@@ -1,38 +1,33 @@
# Set CBTUMBLEBUG_ROOT based on path of setup.env relatively
# Set TB_ROOT_PATH based on path of setup.env relatively
SCRIPT_DIR=`dirname ${BASH_SOURCE[0]-$0}`
export CBTUMBLEBUG_ROOT=`cd $SCRIPT_DIR && cd .. && pwd`
# Use CBTUMBLEBUG_ROOT directly if the SCRIPT_DIR does not work
# export CBTUMBLEBUG_ROOT=$HOME/go/src/github.com/cloud-barista/cb-tumblebug
export TB_ROOT_PATH=`cd $SCRIPT_DIR && cd .. && pwd`
# Use TB_ROOT_PATH directly if the SCRIPT_DIR does not work
# export TB_ROOT_PATH=$HOME/go/src/github.com/cloud-barista/cb-tumblebug

# Set API access config
export API_USERNAME=default
export API_PASSWORD=default
## ALLOW_ORIGINS (ex: https://cloud-barista.org,http://localhost:8080 or * for all)
export ALLOW_ORIGINS=*
## Set AUTH_ENABLED=true currently for basic auth for all routes (i.e., url or path)
export AUTH_ENABLED=true
## Set AUTH_MODE=basic or jwt
export AUTH_MODE=basic

## Set SELF_ENDPOINT, to access Swagger API dashboard outside (Ex: export SELF_ENDPOINT=x.x.x.x:1323)
export SELF_ENDPOINT=localhost:1323
export TB_API_USERNAME=default
export TB_API_PASSWORD=default
## TB_ALLOW_ORIGINS (ex: https://cloud-barista.org,http://localhost:8080 or * for all)
export TB_ALLOW_ORIGINS=*
## Set TB_AUTH_ENABLED=true currently for basic auth for all routes (i.e., url or path)
export TB_AUTH_ENABLED=true
## Set TB_AUTH_MODE=basic or jwt
export TB_AUTH_MODE=basic

## Set TB_SELF_ENDPOINT, to access Swagger API dashboard outside (Ex: export TB_SELF_ENDPOINT=x.x.x.x:1323)
export TB_SELF_ENDPOINT=localhost:1323

# Set system endpoints
export SPIDER_CALL_METHOD=REST
export SPIDER_REST_URL=http://localhost:1024/spider
export DRAGONFLY_CALL_METHOD=REST
export DRAGONFLY_REST_URL=http://localhost:9090/dragonfly
export TERRARIUM_CALL_METHOD=REST
export TERRARIUM_REST_URL=http://localhost:8888/terrarium
export IAM_MANAGER_CALL_METHOD=REST
export IAM_MANAGER_REST_URL=https://localhost:5000

export TB_SPIDER_REST_URL=http://localhost:1024/spider
export TB_DRAGONFLY_REST_URL=http://localhost:9090/dragonfly
export TB_TERRARIUM_REST_URL=http://localhost:8888/terrarium
export TB_IAM_MANAGER_REST_URL=https://localhost:5000

## Set internal DB config (SQLlite)
export DB_URL=localhost:3306
export DB_DATABASE=cb_tumblebug
export DB_USER=cb_tumblebug
export DB_PASSWORD=cb_tumblebug
export TB_SQLITE_URL=localhost:3306
export TB_SQLITE_DATABASE=cb_tumblebug
export TB_SQLITE_USER=cb_tumblebug
export TB_SQLITE_PASSWORD=cb_tumblebug

## Set etcd cluster
export TB_ETCD_ENDPOINTS=http://localhost:2379
Expand All @@ -41,26 +36,22 @@ export TB_ETCD_USERNAME=default
export TB_ETCD_PASSWORD=default

## Set period for auto control goroutine invocation
export AUTOCONTROL_DURATION_MS=10000
export TB_AUTOCONTROL_DURATION_MS=10000

## Set name of default objects
export DEFAULT_NAMESPACE=ns01
export DEFAULT_CREDENTIALHOLDER=admin
export TB_DEFAULT_NAMESPACE=ns01
export TB_DEFAULT_CREDENTIALHOLDER=admin

## Logger configuration
# Set log file path (default logfile path: ./log/tumblebug.log)
export LOGFILE_PATH=$CBTUMBLEBUG_ROOT/log/tumblebug.log
export LOGFILE_MAXSIZE=10
export LOGFILE_MAXBACKUPS=3
export LOGFILE_MAXAGE=30
export LOGFILE_COMPRESS=false
export TB_LOGFILE_PATH=$TB_ROOT_PATH/log/tumblebug.log
export TB_LOGFILE_MAXSIZE=10
export TB_LOGFILE_MAXBACKUPS=3
export TB_LOGFILE_MAXAGE=30
export TB_LOGFILE_COMPRESS=false
# Set log level, such as trace, debug, info, warn, error, fatal, and panic
export LOGLEVEL=debug
export TB_LOGLEVEL=debug
# Set log writer, such as file, stdout, or both
export LOGWRITER=both
export TB_LOGWRITER=both
# Set execution environment, such as development or production
export NODE_ENV=development

# Environment variables that you don't need to touch
## Swagger UI API document file path
export API_DOC_PATH=$CBTUMBLEBUG_ROOT/src/api/rest/docs/swagger.json
export TB_NODE_ENV=development
49 changes: 23 additions & 26 deletions docker-compose-custom.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -124,36 +124,33 @@ services:
- ${COMPOSE_TB_VOLUME_HOST_PATH}/meta_db/:${COMPOSE_TB_VOLUME_CONTAINTER_PATH}/meta_db/
- ${COMPOSE_TB_VOLUME_HOST_PATH}/log/:${COMPOSE_TB_VOLUME_CONTAINTER_PATH}/log/
environment:
- CBTUMBLEBUG_ROOT=${COMPOSE_TB_CBTUMBLEBUG_ROOT}
- SPIDER_CALL_METHOD=${COMPOSE_TB_SPIDER_CALL_METHOD}
- SPIDER_REST_URL=${COMPOSE_TB_SPIDER_REST_URL}
- DRAGONFLY_CALL_METHOD=${COMPOSE_TB_DRAGONFLY_CALL_METHOD}
- DRAGONFLY_REST_URL=${COMPOSE_TB_DRAGONFLY_REST_URL}
- DB_URL=${COMPOSE_TB_DB_URL}
- DB_DATABASE=${COMPOSE_TB_DB_DATABASE}
- DB_USER=${COMPOSE_TB_DB_USER}
- DB_PASSWORD=${COMPOSE_TB_DB_PASSWORD}
- TB_ROOT_PATH=${COMPOSE_TB_ROOT_PATH}
- TB_SPIDER_REST_URL=${COMPOSE_TB_SPIDER_REST_URL}
- TB_DRAGONFLY_REST_URL=${COMPOSE_TB_DRAGONFLY_REST_URL}
- TB_SQLITE_URL=${COMPOSE_TB_SQLITE_URL}
- TB_SQLITE_DATABASE=${COMPOSE_TB_SQLITE_DATABASE}
- TB_SQLITE_USER=${COMPOSE_TB_SQLITE_USER}
- TB_SQLITE_PASSWORD=${COMPOSE_TB_SQLITE_PASSWORD}
- TB_ETCD_ENDPOINTS=${COMPOSE_TB_ETCD_ENDPOINTS}
- TB_ETCD_AUTH_ENABLED=${COMPOSE_TB_ETCD_AUTH_ENABLED}
- TB_ETCD_USERNAME=${COMPOSE_TB_ETCD_USERNAME}
- TB_ETCD_PASSWORD=${COMPOSE_TB_ETCD_PASSWORD}
- ALLOW_ORIGINS=${COMPOSE_TB_ALLOW_ORIGINS}
- AUTH_ENABLED=${COMPOSE_TB_AUTH_ENABLED}
- API_USERNAME=${COMPOSE_TB_API_USERNAME}
- API_PASSWORD=${COMPOSE_TB_API_PASSWORD}
- AUTOCONTROL_DURATION_MS=${COMPOSE_TB_AUTOCONTROL_DURATION_MS}
- SELF_ENDPOINT=${COMPOSE_TB_SELF_ENDPOINT}
- API_DOC_PATH=${COMPOSE_TB_API_DOC_PATH}
- DEFAULT_NAMESPACE=${COMPOSE_TB_DEFAULT_NAMESPACE}
- DEFAULT_CREDENTIALHOLDER=${COMPOSE_TB_DEFAULT_CREDENTIALHOLDER}
- LOGFILE_PATH=${COMPOSE_TB_LOGFILE_PATH}
- LOGFILE_MAXSIZE=${COMPOSE_TB_LOGFILE_MAXSIZE}
- LOGFILE_MAXBACKUPS=${COMPOSE_TB_LOGFILE_MAXBACKUPS}
- LOGFILE_MAXAGE=${COMPOSE_TB_LOGFILE_MAXAGE}
- LOGFILE_COMPRESS=${COMPOSE_TB_LOGFILE_COMPRESS}
- LOGLEVEL=${COMPOSE_TB_LOGLEVEL}
- LOGWRITER=${COMPOSE_TB_LOGWRITER}
- NODE_ENV=${COMPOSE_TB_NODE_ENV}
- TB_ALLOW_ORIGINS=${COMPOSE_TB_ALLOW_ORIGINS}
- TB_AUTH_ENABLED=${COMPOSE_TB_AUTH_ENABLED}
- TB_API_USERNAME=${COMPOSE_TB_API_USERNAME}
- TB_API_PASSWORD=${COMPOSE_TB_API_PASSWORD}
- TB_AUTOCONTROL_DURATION_MS=${COMPOSE_TB_AUTOCONTROL_DURATION_MS}
- TB_SELF_ENDPOINT=${COMPOSE_TB_SELF_ENDPOINT}
- TB_DEFAULT_NAMESPACE=${COMPOSE_TB_DEFAULT_NAMESPACE}
- TB_DEFAULT_CREDENTIALHOLDER=${COMPOSE_TB_DEFAULT_CREDENTIALHOLDER}
- TB_LOGFILE_PATH=${COMPOSE_TB_LOGFILE_PATH}
- TB_LOGFILE_MAXSIZE=${COMPOSE_TB_LOGFILE_MAXSIZE}
- TB_LOGFILE_MAXBACKUPS=${COMPOSE_TB_LOGFILE_MAXBACKUPS}
- TB_LOGFILE_MAXAGE=${COMPOSE_TB_LOGFILE_MAXAGE}
- TB_LOGFILE_COMPRESS=${COMPOSE_TB_LOGFILE_COMPRESS}
- TB_LOGLEVEL=${COMPOSE_TB_LOGLEVEL}
- TB_LOGWRITER=${COMPOSE_TB_LOGWRITER}
- TB_NODE_ENV=${COMPOSE_TB_NODE_ENV}
healthcheck: # for CB-Tumblebug
test: [ "CMD", "curl", "-f", "http://localhost:1323/tumblebug/readyz" ]
interval: 1m
Expand Down
Loading