19 lines
461 B
YAML
19 lines
461 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
frontend:
|
|
build:
|
|
context: ./frontend
|
|
dockerfile: Dockerfile
|
|
ports:
|
|
- "1307:80" # Map port 80 of the frontend container to port 3000 on localhost
|
|
depends_on:
|
|
- backend # Ensure backend service is started before frontend
|
|
|
|
backend:
|
|
build:
|
|
context: ./backend
|
|
dockerfile: Dockerfile
|
|
ports:
|
|
- "1308:8080" # Map port 8080 of the backend container to port 8080 on localhost
|