This commit is contained in:
Luke Gustafson
2024-11-26 15:43:00 +00:00
commit 88e4074427
69 changed files with 11719 additions and 0 deletions

24
docker-compose.yml Normal file
View File

@@ -0,0 +1,24 @@
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