Files
snatchgame/docker-compose.yml
josedario87 f3d1365588
All checks were successful
build-and-deploy / filter (push) Successful in 1s
build-and-deploy / build (push) Successful in 11s
build-and-deploy / deploy (push) Successful in 10s
fix: Separate internal and external server URLs for SSL compatibility
- Add PUBLIC_SERVER_URL environment variable for client-side connections
- Update /api/config endpoints to return public HTTPS URLs for frontend
- Keep internal HTTP URLs for server-to-server communication
- Resolves SSL certificate verification issues in admin service
- Maintains secure WSS/HTTPS connections for clients
2025-07-05 16:43:29 -06:00

76 lines
1.9 KiB
YAML

version: '3.8'
services:
# Servidor Colyseus
snatchgame-server:
image: gitea.interno.com/nucleo000/snatchgame-server:latest
container_name: snatchgame-server
ports:
- "3067:2567"
environment:
- NODE_ENV=production
- PORT=2567
networks:
- principal
- snatchgame-network
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:2567/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
# Cliente Vue UI
snatchgame-client:
image: gitea.interno.com/nucleo000/snatchgame-client:latest
container_name: snatchgame-client
ports:
- "3010:3000"
environment:
- NODE_ENV=production
- PORT=3000
- SERVER_URL=http://snatchgame-server:2567
- PUBLIC_SERVER_URL=https://snatchGameServer.interno.com
depends_on:
- snatchgame-server
networks:
- principal
- snatchgame-network
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
# Admin Dashboard
snatchgame-admin:
image: gitea.interno.com/nucleo000/snatchgame-admin:latest
container_name: snatchgame-admin
ports:
- "3011:3001"
environment:
- NODE_ENV=production
- PORT=3001
- SERVER_URL=http://snatchgame-server:2567
- PUBLIC_SERVER_URL=https://snatchGameServer.interno.com
depends_on:
- snatchgame-server
networks:
- principal
- snatchgame-network
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3001/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
networks:
principal:
external: true
snatchgame-network:
driver: bridge