Fixed docker issue

This commit is contained in:
2025-04-13 13:54:11 -04:00
parent 042fae7a8f
commit 6b12421e7c
4 changed files with 23 additions and 14 deletions

View File

@@ -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