All checks were successful
continuous-integration/drone/push Build is passing
- Remove inline comments from docker-compose-simple.yml for cleaner configuration - Delete unused docker-compose.txt.backup file - Remove unused volume definitions (servers-data, users-data) - Add docker-compose-simple.yml to .gitignore to prevent accidental commits - Simplify environment variable organization by removing comment separators - Improve file maintainability by reducing comment clutter
36 lines
1.0 KiB
YAML
36 lines
1.0 KiB
YAML
version: '3.8'
|
|
|
|
services:
|
|
mc-panel:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
container_name: mc-panel
|
|
restart: unless-stopped
|
|
ports:
|
|
- "80:8000" # Прямой доступ через порт 80
|
|
environment:
|
|
- ZITADEL_ISSUER=${ZITADEL_ISSUER}
|
|
- ZITADEL_CLIENT_ID=${ZITADEL_CLIENT_ID}
|
|
- ZITADEL_CLIENT_SECRET=${ZITADEL_CLIENT_SECRET}
|
|
- BASE_URL=${BASE_URL:-http://localhost}
|
|
- FRONTEND_URL=${FRONTEND_URL:-http://localhost}
|
|
- SECRET_KEY=${SECRET_KEY:-change-this-in-production}
|
|
- 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 |