Harden dev environment configuration
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user