local-nginx-tutorial/eg3/docker-compose.yaml

27 lines
542 B
YAML
Raw Normal View History

2023-05-04 23:45:36 +10:00
version: '3.8'
services:
# proxy:
# container_name: proxy
# build:
# context: ./proxy
# dockerfile: Dockerfile
# ports:
# - "80:80"
# depends_on:
# - frontend
# - backend
# frontend:
# container_name: frontend
# build:
# context: ./frontend
# dockerfile: Dockerfile
backend:
container_name: backend
build:
context: ./backend
dockerfile: Dockerfile
ports:
- "5000:5000" # Uncomment this line if you want to run the backend container only