Fixed docker issue
This commit is contained in:
@@ -20,6 +20,7 @@ services:
|
||||
# APP_PORT: 3000
|
||||
env_file:
|
||||
- .env
|
||||
# - auth_db.env
|
||||
depends_on:
|
||||
auth_db:
|
||||
condition: service_healthy # Wait for the DB to be healthy before starting the app
|
||||
@@ -29,13 +30,13 @@ services:
|
||||
auth_db:
|
||||
image: postgres:17.4-alpine # Use an official Postgres image (Alpine variant is smaller)
|
||||
container_name: icarus_auth_db # Optional: Give the container a specific name
|
||||
# environment:
|
||||
environment:
|
||||
# These MUST match the user, password, and database name in the DATABASE_URL above
|
||||
# POSTGRES_USER: icarus_op
|
||||
# POSTGRES_PASSWORD: password
|
||||
# POSTGRES_DB: icarus_auth
|
||||
env_file:
|
||||
- auth_db.env
|
||||
POSTGRES_USER: ${POSTGRES_USER:-icarus_op}
|
||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-password}
|
||||
POSTGRES_DB: ${POSTGRES_DB:-icarus_auth}
|
||||
# env_file:
|
||||
# - auth_db.env.docker
|
||||
volumes:
|
||||
# Persist database data using a named volume
|
||||
- postgres_data:/var/lib/postgresql/data
|
||||
|
Reference in New Issue
Block a user