Files
WrestleDesk/docker-compose.yml
T
Andrej Spielmann ee96df11bf fix: update CORS and API URL for production deployment
- Change API URL from local IP to https://rce.playman.top
- Add Unraid IP to ALLOWED_HOSTS and CORS_ALLOWED_ORIGINS
- Fix CORS policy for direct IP access
2026-03-26 15:53:25 +01:00

37 lines
939 B
YAML

version: '3.8'
services:
backend:
build: ./backend
container_name: wrestledesk-backend
restart: unless-stopped
ports:
- '10002:8000'
volumes:
- ./backend/media:/app/media
- ./backend/staticfiles:/app/staticfiles
environment:
- SECRET_KEY=${SECRET_KEY}
- DEBUG=False
- ALLOWED_HOSTS=localhost,127.0.0.1,rce.playman.top,192.168.101.42,nginx-proxy-manager
- CORS_ALLOWED_ORIGINS=https://rce.playman.top,http://192.168.101.42:10001,http://192.168.101.42:10002
- DATABASE_URL=${DATABASE_URL}
networks:
- wrestledesk-network
frontend:
build: ./frontend
container_name: wrestledesk-frontend
restart: unless-stopped
ports:
- '10001:3000'
environment:
- NEXT_PUBLIC_API_URL=https://rce.playman.top/api/v1
- NODE_ENV=production
networks:
- wrestledesk-network
networks:
wrestledesk-network:
driver: bridge