3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-10 12:25:02 +00:00

refactor: simplify db credential handling

This commit is contained in:
Dragory 2024-04-06 15:36:45 +00:00
parent 898cf18885
commit 1ef7ba8d0f
No known key found for this signature in database
6 changed files with 66 additions and 72 deletions

View file

@ -7,8 +7,14 @@ services:
args:
# Used at compile-time by dashboard
API_URL:
environment:
HOST_MODE: lightweight
environment: &env
- NODE_ENV=production
- DB_HOST=${LIGHTWEIGHT_DB_HOST}
- DB_PORT=${LIGHTWEIGHT_DB_PORT}
- DB_USER=${LIGHTWEIGHT_DB_USER}
- DB_PASSWORD=${LIGHTWEIGHT_DB_PASSWORD}
- DB_DATABASE=${LIGHTWEIGHT_DB_DATABASE}
- API_PATH_PREFIX=${LIGHTWEIGHT_API_PATH_PREFIX}
env_file:
- .env
working_dir: /zeppelin/backend
@ -20,8 +26,7 @@ services:
condition: service_completed_successfully
build: *build
restart: on-failure
environment:
HOST_MODE: lightweight
environment: *env
env_file:
- .env
ports:
@ -35,8 +40,7 @@ services:
condition: service_completed_successfully
build: *build
restart: on-failure
environment:
HOST_MODE: lightweight
environment: *env
env_file:
- .env
working_dir: /zeppelin/backend
@ -48,8 +52,7 @@ services:
condition: service_completed_successfully
build: *build
restart: on-failure
environment:
HOST_MODE: lightweight
environment: *env
env_file:
- .env
ports: