add docker readme nginx

This commit is contained in:
Maxim
2025-12-12 21:06:17 +03:00
parent a00ec0c765
commit adb27ab1fa
4 changed files with 337 additions and 0 deletions

44
docker-compose.yml Normal file
View File

@@ -0,0 +1,44 @@
services:
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: eng-bot-backend
volumes:
- backend-data:/app/data
expose:
- "8000"
environment:
- DEBUG=False
- DATA_DIR=/app/data
restart: unless-stopped
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
args:
- NUXT_PUBLIC_API_BASE=http://localhost:3001
container_name: eng-bot-frontend
expose:
- "3000"
environment:
- NUXT_PUBLIC_API_BASE=http://localhost:3001
depends_on:
- backend
restart: unless-stopped
nginx:
image: nginx:alpine
container_name: eng-bot-nginx
ports:
- "3001:80"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
depends_on:
- frontend
- backend
restart: unless-stopped
volumes:
backend-data: