fix(docker): simplify deployment by removing nginx and exposing backend on port 80
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
- Remove nginx service from docker-compose.yml to eliminate configuration issues - Expose backend directly on port 80 for direct access without reverse proxy - Update BASE_URL and FRONTEND_URL environment variables to use port 80 - Add data volume mount for daemon storage at /app/data - Add docker-compose.txt to .gitignore to exclude temporary files - Add LINUX_DOCKER_FIX.md documentation with setup instructions and troubleshooting - Simplify deployment configuration for Linux environments where nginx events section was causing startup failures
This commit is contained in:
@@ -9,7 +9,7 @@ services:
|
||||
container_name: mc-panel
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "8000:8000"
|
||||
- "80:8000" # Прямой доступ через порт 80
|
||||
environment:
|
||||
# ZITADEL OpenID Connect
|
||||
- ZITADEL_ISSUER=${ZITADEL_ISSUER}
|
||||
@@ -17,8 +17,8 @@ services:
|
||||
- ZITADEL_CLIENT_SECRET=${ZITADEL_CLIENT_SECRET}
|
||||
|
||||
# URLs
|
||||
- BASE_URL=${BASE_URL:-http://localhost:8000}
|
||||
- FRONTEND_URL=${FRONTEND_URL:-http://localhost:3000}
|
||||
- BASE_URL=${BASE_URL:-http://localhost}
|
||||
- FRONTEND_URL=${FRONTEND_URL:-http://localhost}
|
||||
|
||||
# Security
|
||||
- SECRET_KEY=${SECRET_KEY:-change-this-in-production}
|
||||
@@ -31,6 +31,8 @@ services:
|
||||
# Персистентное хранилище для пользователей и тикетов
|
||||
- ./data/users.json:/app/backend/users.json
|
||||
- ./data/tickets.json:/app/backend/tickets.json
|
||||
# Папка для данных демонов
|
||||
- ./data:/app/data
|
||||
networks:
|
||||
- mc-panel-network
|
||||
healthcheck:
|
||||
@@ -40,26 +42,6 @@ services:
|
||||
retries: 3
|
||||
start_period: 40s
|
||||
|
||||
# Nginx reverse proxy (опционально)
|
||||
nginx:
|
||||
image: nginx:alpine
|
||||
container_name: mc-panel-nginx
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
volumes:
|
||||
- ./nginx/default.conf:/etc/nginx/nginx.conf:ro
|
||||
- ./nginx/ssl:/etc/nginx/ssl:ro
|
||||
depends_on:
|
||||
- mc-panel
|
||||
networks:
|
||||
- mc-panel-network
|
||||
|
||||
networks:
|
||||
mc-panel-network:
|
||||
driver: bridge
|
||||
|
||||
volumes:
|
||||
servers-data:
|
||||
users-data:
|
||||
driver: bridge
|
||||
Reference in New Issue
Block a user