Updated env sample and docker compose

This commit is contained in:
phoenix
2025-04-20 15:58:04 -04:00
parent 54bb73eea0
commit e1f7baed14
2 changed files with 9 additions and 9 deletions
+6 -6
View File
@@ -1,6 +1,6 @@
SECRET_KEY=refero34o8rfhfjn983thf39fhc943rf923n3h SECRET_MAIN_KEY=refero34o8rfhfjn983thf39fhc943rf923n3h
POSTGRES_USER=icarus POSTGRES_MAIN_USER=icarus
POSTGRES_PASSWORD=password POSTGRES_MAIN_PASSWORD=password
POSTGRES_DB=icarus_db POSTGRES_MAIN_DB=icarus_db
POSTGRES_HOST=main_db POSTGRES_MAIN_HOST=main_db
DATABASE_URL=postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:5432/${POSTGRES_DB} DATABASE_URL=postgres://${POSTGRES_MAIN_USER}:${POSTGRES_MAIN_PASSWORD}@${POSTGRES_MAIN_HOST}:5432/${POSTGRES_MAIN_DB}
+3 -3
View File
@@ -48,9 +48,9 @@ services:
container_name: icarus_db # Optional: Give the container a specific name container_name: icarus_db # Optional: Give the container a specific name
environment: environment:
# These MUST match the user, password, and database name in the DATABASE_URL above # These MUST match the user, password, and database name in the DATABASE_URL above
POSTGRES_USER: ${POSTGRES_USER:-icarus} POSTGRES_USER: ${POSTGRES_MAIN_USER:-icarus}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-password} POSTGRES_PASSWORD: ${POSTGRES_MAIN_PASSWORD:-password}
POSTGRES_DB: ${POSTGRES_DB:-icarus_db} POSTGRES_DB: ${POSTGRES_MAIN_DB:-icarus_db}
volumes: volumes:
# Persist database data using a named volume # Persist database data using a named volume
- postgres_data:/var/lib/postgresql/data - postgres_data:/var/lib/postgresql/data