tschunkorder/docker-compose.yml

43 lines
No EOL
877 B
YAML

services:
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: tschunk-frontend
restart: unless-stopped
networks:
- tschunk-network
environment:
- VITE_API_BASE_URL=http://backend:8000
depends_on:
- backend
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: tschunk-backend
restart: unless-stopped
networks:
- tschunk-network
environment:
- PYTHONUNBUFFERED=1
nginx:
image: nginx:alpine
container_name: tschunk-nginx
restart: unless-stopped
ports:
- "80:80"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./nginx/conf.d:/etc/nginx/conf.d:ro
networks:
- tschunk-network
depends_on:
- frontend
- backend
networks:
tschunk-network:
driver: bridge