added docker setup
This commit is contained in:
parent
57ae9c3320
commit
be5ce63add
12 changed files with 509 additions and 20 deletions
43
docker-compose.yml
Normal file
43
docker-compose.yml
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue