62 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			62 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
| services:
 | |
|   merchantsofhope-supplyanddemandportal-database:
 | |
|     image: postgres:15-alpine
 | |
|     container_name: merchantsofhope-supplyanddemandportal-database
 | |
|     environment:
 | |
|       POSTGRES_DB: merchantsofhope_supplyanddemandportal
 | |
|       POSTGRES_USER: merchantsofhope_user
 | |
|       POSTGRES_PASSWORD: merchantsofhope_password
 | |
|     expose:
 | |
|       - "5432"
 | |
|     volumes:
 | |
|       - merchantsofhope-supplyanddemandportal-postgres-data:/var/lib/postgresql/data
 | |
|     networks:
 | |
|       - merchantsofhope-supplyanddemandportal-network
 | |
| 
 | |
|   merchantsofhope-supplyanddemandportal-backend:
 | |
|     build:
 | |
|       context: ./backend
 | |
|       dockerfile: Dockerfile
 | |
|     container_name: merchantsofhope-supplyanddemandportal-backend
 | |
|     environment:
 | |
|       NODE_ENV: development
 | |
|       DATABASE_URL: postgresql://merchantsofhope_user:merchantsofhope_password@merchantsofhope-supplyanddemandportal-database:5432/merchantsofhope_supplyanddemandportal
 | |
|       JWT_SECRET: merchantsofhope_jwt_secret_key_2024
 | |
|       HOST: ${BACKEND_HOST:-0.0.0.0}
 | |
|       PORT: ${BACKEND_PORT:-3001}
 | |
|     expose:
 | |
|       - "3001"
 | |
|     depends_on:
 | |
|       - merchantsofhope-supplyanddemandportal-database
 | |
|     volumes:
 | |
|       - ./backend:/app
 | |
|       - /app/node_modules
 | |
|     networks:
 | |
|       - merchantsofhope-supplyanddemandportal-network
 | |
| 
 | |
|   merchantsofhope-supplyanddemandportal-frontend:
 | |
|     build:
 | |
|       context: ./frontend
 | |
|       dockerfile: Dockerfile
 | |
|     container_name: merchantsofhope-supplyanddemandportal-frontend
 | |
|     environment:
 | |
|       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:12000"
 | |
|     depends_on:
 | |
|       - merchantsofhope-supplyanddemandportal-backend
 | |
|     volumes:
 | |
|       - ./frontend:/app
 | |
|       - /app/node_modules
 | |
|     networks:
 | |
|       - merchantsofhope-supplyanddemandportal-network
 | |
| 
 | |
| volumes:
 | |
|   merchantsofhope-supplyanddemandportal-postgres-data:
 | |
| 
 | |
| networks:
 | |
|   merchantsofhope-supplyanddemandportal-network:
 | |
|     driver: bridge
 |