added docker setup

This commit is contained in:
Jan Felix Wiebe 2025-07-11 14:33:20 +02:00
parent 57ae9c3320
commit be5ce63add
12 changed files with 509 additions and 20 deletions

43
docker-compose.yml Normal file
View file

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