chore: source compose database password from secrets
Some checks failed
deploy-socialize / image (push) Successful in 30s
deploy-socialize / deploy (push) Failing after 6s

This commit is contained in:
2026-05-06 15:05:10 -04:00
parent d2d3bee975
commit 0a6d730ca0
4 changed files with 24 additions and 5 deletions

View File

@@ -2,9 +2,9 @@ services:
postgres:
image: postgres:latest
environment:
POSTGRES_USER: sa
POSTGRES_PASSWORD: P@ssword123!
POSTGRES_DB: socialize
POSTGRES_USER: ${POSTGRES_USER:-sa}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:?POSTGRES_PASSWORD is required}
POSTGRES_DB: ${POSTGRES_DB:-socialize}
ports:
- "5433:5432"
healthcheck:
@@ -18,9 +18,9 @@ services:
context: .
dockerfile: backend/src/Socialize.Api/Dockerfile
environment:
ASPNETCORE_ENVIRONMENT: Development
ASPNETCORE_ENVIRONMENT: ${ASPNETCORE_ENVIRONMENT:-Development}
ASPNETCORE_URLS: http://0.0.0.0:8080
ConnectionStrings__PostgresConnection: Host=postgres;Port=5432;Database=socialize;Username=sa;Password=P@ssword123!
ConnectionStrings__PostgresConnection: Host=postgres;Port=5432;Database=${POSTGRES_DB:-socialize};Username=${POSTGRES_USER:-sa};Password=${POSTGRES_PASSWORD:?POSTGRES_PASSWORD is required}
depends_on:
postgres:
condition: service_healthy