Skip to content

Commit

Permalink
fix: add default env values in docker-compose
Browse files Browse the repository at this point in the history
As stated in `README.md`, some environmental variable values are
optional and so can be omitted in the `.env` config file. But these
variables didn't have default values in the `docker-compose.yml` config
file, so, it was not possible to omit these values when the app was
built using Docker. Now default values are added for all optional env
variables in the `docker-compose.yml`.
  • Loading branch information
AlexanderLukin committed Oct 27, 2023
1 parent e8e991a commit 7228530
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ services:
- GF_PLUGINS_ALLOW_LOADING_UNSIGNED_PLUGINS=vertamedia-clickhouse-datasource
- GF_INSTALL_PLUGINS=vertamedia-clickhouse-datasource
- CLICKHOUSE_DB_HOST=${DB_HOST}
- CLICKHOUSE_DB_PORT=${DB_PORT}
- CLICKHOUSE_DB_PORT=${DB_PORT:-8123}
- CLICKHOUSE_DB_USER=${DB_USER}
- CLICKHOUSE_DB_PASSWORD=${DB_PASSWORD}
- CLICKHOUSE_DB_NAME=${DB_NAME}
Expand All @@ -156,16 +156,16 @@ services:
soft: 262144
hard: 262144
environment:
- LOG_FORMAT=${LOG_FORMAT}
- HTTP_PORT=${HTTP_PORT}
- LOG_FORMAT=${LOG_FORMAT:-json}
- HTTP_PORT=${HTTP_PORT:-8080}
- DB_HOST=${DB_HOST}
- DB_PORT=${DB_PORT}
- DB_PORT=${DB_PORT:-8123}
- DB_USER=${DB_USER}
- DB_PASSWORD=${DB_PASSWORD}
- DB_NAME=${DB_NAME}
- START_EPOCH=${START_EPOCH}
- START_EPOCH=${START_EPOCH:-155000}
- ETH_NETWORK=${ETH_NETWORK}
- VALIDATOR_REGISTRY_SOURCE=${VALIDATOR_REGISTRY_SOURCE}
- VALIDATOR_REGISTRY_SOURCE=${VALIDATOR_REGISTRY_SOURCE:-lido}
- EL_RPC_URLS=${EL_RPC_URLS}
- CL_API_URLS=${CL_API_URLS}
expose:
Expand Down

0 comments on commit 7228530

Please sign in to comment.