Some checks failed
continuous-integration/drone/push Build encountered an error
65 lines
1.4 KiB
YAML
65 lines
1.4 KiB
YAML
version: '3.8'
|
|
|
|
services:
|
|
# Backend сервис (локальная сборка)
|
|
backend:
|
|
build:
|
|
context: ./backend
|
|
dockerfile: Dockerfile
|
|
target: production
|
|
container_name: mc-panel-backend-local
|
|
restart: unless-stopped
|
|
ports:
|
|
- "8000:8000"
|
|
environment:
|
|
- PORT=8000
|
|
- WORKERS=2
|
|
- PYTHONPATH=/app
|
|
- DEBUG=false
|
|
env_file:
|
|
- ./backend/.env
|
|
volumes:
|
|
- mc_servers_local:/app/servers
|
|
- mc_data_local:/app/data
|
|
- mc_logs_local:/app/logs
|
|
networks:
|
|
- mc-panel-local
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 60s
|
|
|
|
# Frontend сервис (локальная сборка)
|
|
frontend:
|
|
build:
|
|
context: ./frontend
|
|
dockerfile: Dockerfile
|
|
target: production
|
|
container_name: mc-panel-frontend-local
|
|
restart: unless-stopped
|
|
ports:
|
|
- "80:80"
|
|
depends_on:
|
|
- backend
|
|
networks:
|
|
- mc-panel-local
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost/health"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 30s
|
|
|
|
volumes:
|
|
mc_servers_local:
|
|
driver: local
|
|
mc_data_local:
|
|
driver: local
|
|
mc_logs_local:
|
|
driver: local
|
|
|
|
networks:
|
|
mc-panel-local:
|
|
driver: bridge |