Fix database container to use existing environment variables.
This commit is contained in:
@@ -15,7 +15,8 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "3000:3000"
|
- "3000:3000"
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
db:
|
||||||
|
condition: service_healthy
|
||||||
environment:
|
environment:
|
||||||
- ANGULAR_DIST_DIR
|
- ANGULAR_DIST_DIR
|
||||||
- ANGULAR_SRC_DIR
|
- ANGULAR_SRC_DIR
|
||||||
@@ -45,14 +46,19 @@ services:
|
|||||||
- USE_PG_NATIVE
|
- USE_PG_NATIVE
|
||||||
|
|
||||||
db:
|
db:
|
||||||
image: postgres:15.6
|
image: postgres:15
|
||||||
container_name: worklenz_db
|
container_name: worklenz_db
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_USER: worklenz_user
|
POSTGRES_DB: "${DB_NAME}"
|
||||||
POSTGRES_PASSWORD: worklenz_password
|
POSTGRES_PASSWORD: "${DB_PASSWORD}"
|
||||||
POSTGRES_DB: worklenz_db
|
healthcheck:
|
||||||
|
test: ["CMD-SHELL", "pg_isready -d ${DB_NAME} -U ${DB_USER}"]
|
||||||
|
interval: 10s
|
||||||
|
timeout: 5s
|
||||||
|
retries: 5
|
||||||
volumes:
|
volumes:
|
||||||
- postgres_data:/var/lib/postgresql/data
|
- worklenz_postgres_data:/var/lib/postgresql/data
|
||||||
|
- ./worklenz-backend/database/:/docker-entrypoint-initdb.d
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
postgres_data:
|
worklenz_postgres_data:
|
||||||
|
|||||||
Reference in New Issue
Block a user