Files
snatchgame/docker-compose.yml
josedario87 58ca3d1e73
Some checks failed
build-and-deploy / filter (push) Successful in 2s
build-and-deploy / build (push) Successful in 6s
build-and-deploy / deploy (push) Failing after 1m44s
fix: Change exposed ports to avoid conflicts
- Server: 2567 → 3067 (host:container)
- Client: 3000 → 3010 (host:container)
- Admin: 3001 → 3011 (host:container)
- Internal container ports remain the same
2025-07-05 15:17:18 -06:00

69 lines
1.6 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:
- snatchgame-network
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "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
- VITE_SERVER_URL=http://snatchgame-server:2567
depends_on:
- snatchgame-server
networks:
- snatchgame-network
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "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
- VITE_SERVER_URL=http://snatchgame-server:2567
depends_on:
- snatchgame-server
networks:
- snatchgame-network
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3001/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
networks:
snatchgame-network:
driver: bridge