Webapp-starter/docker-compose.yml
2025-05-07 20:05:04 +08:00

31 lines
564 B
YAML

services:
backend:
build:
context: ./backend
dockerfile: Dockerfile
restart: unless-stopped
ports:
- "${BACKEND_PORT}:8080"
environment:
- BACKEND_PORT=${BACKEND_PORT}
networks:
- starter_network
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
restart: unless-stopped
ports:
- "${FRONTEND_PORT}:3000"
environment:
- NODE_ENV=production
# depends_on:
# - backend
networks:
- starter_network
networks:
starter_network:
driver: bridge