Remover mapeo de puertos, usar solo red principal para nginx
All checks were successful
build-and-deploy / build (push) Successful in 18s
build-and-deploy / deploy (push) Successful in 11s

This commit is contained in:
2025-08-15 12:41:11 -06:00
parent 08f398c9e1
commit 48f560d4e1
2 changed files with 4 additions and 6 deletions

View File

@@ -50,6 +50,4 @@ jobs:
--name snatchgame \ --name snatchgame \
--restart unless-stopped \ --restart unless-stopped \
--network principal \ --network principal \
-p 8089:3000 \
-p 8090:2567 \
$REG/snatchgame:latest $REG/snatchgame:latest

View File

@@ -1,15 +1,15 @@
#!/bin/sh #!/bin/sh
# Iniciar el servidor Colyseus en background # Iniciar el servidor Colyseus en background (puerto 2567)
echo "Starting Colyseus server..." echo "Starting Colyseus server..."
cd /app/server && node dist/server/src/index.js & cd /app/server && PORT=2567 node dist/server/src/index.js &
# Esperar un momento para que el servidor inicie # Esperar un momento para que el servidor inicie
sleep 2 sleep 2
# Servir el cliente compilado # Servir el cliente compilado (puerto 3000)
echo "Starting client server..." echo "Starting client server..."
cd /app/client && serve -s dist -l 3000 & cd /app/client && serve -s dist -p 3000 &
# Mantener el contenedor corriendo # Mantener el contenedor corriendo
wait wait