fix(docker): simplify deployment with nginx fixes and alternative compose config
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
- Update nginx/default.conf with complete configuration including events section - Add docker-compose-simple.yml for simplified deployment without nginx - Update docker-compose.yml to properly mount nginx configuration - Revise DOCKER_FIX.md with clearer instructions and recommended solutions - Provide three deployment variants: with nginx, without nginx (recommended), and quick fix - Include data folder structure and environment setup documentation This change addresses nginx configuration errors and FileNotFoundError by providing both a corrected nginx setup and a simplified alternative deployment method without nginx for faster troubleshooting and deployment.
This commit is contained in:
51
docker-compose-simple.yml
Normal file
51
docker-compose-simple.yml
Normal file
@@ -0,0 +1,51 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
# MC Panel приложение
|
||||
mc-panel:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
container_name: mc-panel
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "80:8000" # Прямой доступ через порт 80
|
||||
environment:
|
||||
# ZITADEL OpenID Connect
|
||||
- ZITADEL_ISSUER=${ZITADEL_ISSUER}
|
||||
- ZITADEL_CLIENT_ID=${ZITADEL_CLIENT_ID}
|
||||
- ZITADEL_CLIENT_SECRET=${ZITADEL_CLIENT_SECRET}
|
||||
|
||||
# URLs
|
||||
- BASE_URL=${BASE_URL:-http://localhost}
|
||||
- FRONTEND_URL=${FRONTEND_URL:-http://localhost}
|
||||
|
||||
# Security
|
||||
- SECRET_KEY=${SECRET_KEY:-change-this-in-production}
|
||||
|
||||
# Python
|
||||
- PYTHONUNBUFFERED=1
|
||||
volumes:
|
||||
# Персистентное хранилище для серверов
|
||||
- ./data/servers:/app/backend/servers
|
||||
# Персистентное хранилище для пользователей и тикетов
|
||||
- ./data/users.json:/app/backend/users.json
|
||||
- ./data/tickets.json:/app/backend/tickets.json
|
||||
# Папка для данных демонов
|
||||
- ./data:/app/data
|
||||
networks:
|
||||
- mc-panel-network
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:8000/api/auth/oidc/providers"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 40s
|
||||
|
||||
networks:
|
||||
mc-panel-network:
|
||||
driver: bridge
|
||||
|
||||
volumes:
|
||||
servers-data:
|
||||
users-data:
|
||||
Reference in New Issue
Block a user