feat: harden containers and ci

This commit is contained in:
2025-10-16 22:56:33 -05:00
parent c51604fdb7
commit 8ca2756d7b
14 changed files with 293 additions and 17 deletions

View File

@@ -28,16 +28,25 @@ services:
DATABASE_URL: postgresql://${POSTGRES_USER:-merchantsofhope}:${POSTGRES_PASSWORD}@merchantsofhope-supplyanddemandportal-database:5432/${POSTGRES_DB:-merchantsofhope_supplyanddemandportal}
JWT_SECRET: ${JWT_SECRET:?set JWT_SECRET}
UPLOAD_DIR: /app/uploads/resumes
RUN_MIGRATIONS: "true"
RUN_SEED: "false"
DB_WAIT_TIMEOUT_MS: 120000
ports:
- "0.0.0.0:3001:3001"
volumes:
- merchantsofhope-supplyanddemandportal-uploads:/app/uploads/resumes
healthcheck:
test: ["CMD-SHELL", "wget -qO- http://localhost:3001/api/health || exit 1"]
interval: 30s
timeout: 5s
retries: 5
merchantsofhope-supplyanddemandportal-frontend:
image: ${FRONTEND_IMAGE:?set FRONTEND_IMAGE}
container_name: merchantsofhope-supplyanddemandportal-frontend
depends_on:
- merchantsofhope-supplyanddemandportal-backend
merchantsofhope-supplyanddemandportal-backend:
condition: service_healthy
environment:
HOST: 0.0.0.0
PORT: 12000