Files
Termix/docker-compose.yml
Luke Gustafson 88e4074427 Commit
2024-11-26 15:43:00 +00:00

24 lines
659 B
YAML

services:
frontend:
build:
context: /workspaces/codespaces-react # Path to your project root
dockerfile: Dockerfile
target: frontend-server # Building the frontend server
ports:
- "80:80" # Port mapping for HTTP traffic
networks:
- app-network
backend:
build:
context: /workspaces/codespaces-react # Path to your project root
dockerfile: Dockerfile
target: backend # Building the backend
ports:
- "3005:3005" # Port mapping for your Node backend
networks:
- app-network
networks:
app-network: # Define a network for containers to communicate
driver: bridge