Harden dev environment configuration
Some checks failed
CI / Backend Tests (push) Has been cancelled
CI / Frontend Tests (push) Has been cancelled
CI / Build Docker Images (push) Has been cancelled

This commit is contained in:
2025-10-16 17:48:26 -05:00
parent 75c7430d01
commit 9355d5c7c2
20 changed files with 26341 additions and 42 deletions

View File

@@ -6,8 +6,8 @@ services:
POSTGRES_DB: merchantsofhope_supplyanddemandportal
POSTGRES_USER: merchantsofhope_user
POSTGRES_PASSWORD: merchantsofhope_password
ports:
- "0.0.0.0:5432:5432"
expose:
- "5432"
volumes:
- merchantsofhope-supplyanddemandportal-postgres-data:/var/lib/postgresql/data
networks:
@@ -22,9 +22,10 @@ services:
NODE_ENV: development
DATABASE_URL: postgresql://merchantsofhope_user:merchantsofhope_password@merchantsofhope-supplyanddemandportal-database:5432/merchantsofhope_supplyanddemandportal
JWT_SECRET: merchantsofhope_jwt_secret_key_2024
PORT: 3001
ports:
- "0.0.0.0:3001:3001"
HOST: ${BACKEND_HOST:-0.0.0.0}
PORT: ${BACKEND_PORT:-3001}
expose:
- "3001"
depends_on:
- merchantsofhope-supplyanddemandportal-database
volumes:
@@ -39,9 +40,11 @@ services:
dockerfile: Dockerfile
container_name: merchantsofhope-supplyanddemandportal-frontend
environment:
REACT_APP_API_URL: http://localhost:3001
HOST: ${FRONTEND_HOST:-0.0.0.0}
PORT: ${FRONTEND_PORT:-12000}
REACT_APP_API_URL: http://merchantsofhope-supplyanddemandportal-backend:3001
ports:
- "0.0.0.0:12000:3000"
- "0.0.0.0:12000:12000"
depends_on:
- merchantsofhope-supplyanddemandportal-backend
volumes: