version: '3.8' services: backend: image: ${BACKEND_IMAGE:-registry.nevetime.ru/mc-panel-backend:${IMAGE_TAG:-latest}} container_name: mc-panel-backend restart: unless-stopped env_file: - ./backend/.env environment: PORT: ${BACKEND_PORT:-8000} WORKERS: ${BACKEND_WORKERS:-2} volumes: - mc_servers:/app/servers - mc_data:/app/data - mc_logs:/app/logs networks: - mc-panel healthcheck: test: ["CMD", "curl", "-fsS", "http://localhost:8000/health"] interval: 30s timeout: 10s retries: 3 frontend: image: ${FRONTEND_IMAGE:-registry.nevetime.ru/mc-panel-frontend:${IMAGE_TAG:-latest}} container_name: mc-panel-frontend restart: unless-stopped ports: - "${FRONTEND_PORT:-80}:80" depends_on: backend: condition: service_healthy networks: - mc-panel healthcheck: test: ["CMD", "wget", "-qO-", "http://localhost/health"] interval: 30s timeout: 10s retries: 3 volumes: mc_servers: mc_data: mc_logs: networks: mc-panel: driver: bridge