Skip to content

Commit 6b35f90

Browse files
committed
feat: agregar scripts del servidor y ajustar configuración de puertos en archivos Docker Compose
1 parent 61d540e commit 6b35f90

File tree

4 files changed

+13
-10
lines changed

4 files changed

+13
-10
lines changed

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ HEALTHCHECK --interval=1m --timeout=1m --start-period=2m --retries=1 CMD /app/en
4040
RUN date > /build-time.txt
4141

4242
COPY docker-scripts/ /app/docker-scripts/
43+
COPY server-scripts/ /app/server-scripts/
4344
COPY entrypoint.sh /app/entrypoint.sh
45+
COPY entrypoint-kf2.sh /app/entrypoint-kf2.sh
4446

4547
ENTRYPOINT ["/bin/bash", "./entrypoint.sh"]

docker-compose.dev.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ services:
1010
environment:
1111
- LGSM_PASSWORD=${LGSM_PASSWORD}
1212
- SSH_KEY=${SSH_KEY}
13-
- KF2_WEBADMIN=${KF2_WEBADMIN:false}
13+
- KF2_WEBADMIN=${KF2_WEBADMIN:-false}
1414
ports:
15-
- "${KF2_GAME_PORT}:7777/udp" # Game Port (UDP) - Puerto principal del juego
16-
- "${KF2_QUERY_PORT}:27015/udp" # Query Port (UDP) - Steam Master Server
17-
- "${KF2_WEBADMIN_PORT}:8080/tcp" # Web Admin (TCP) - Panel de administración web
18-
- "${KF2_STEAM_PORT}:20560/udp" # Steam Port (UDP) - Puerto de Steam
19-
- "${KF2_NTP_PORT}:123/udp" # NTP Port (UDP) - Weekly Outbreak only
20-
- "${SSH_PORT}:22/tcp" # SSH Port (TCP) - Para acceso SSH
15+
- "${KF2_GAME_PORT}:7777/udp"
16+
- "${KF2_QUERY_PORT}:27015/udp"
17+
- "${KF2_WEBADMIN_PORT}:8080/tcp"
18+
- "${KF2_STEAM_PORT}:20560/udp"
19+
- "${KF2_NTP_PORT}:123/udp"
20+
- "${SSH_PORT}:22/tcp"
2121

2222
volumes:
2323
dev_data:

docker-compose.host.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ services:
1212
- SSH_PORT=${SSH_PORT}
1313
- KF2_GAME_PORT=${KF2_GAME_PORT}
1414
- KF2_QUERY_PORT=${KF2_QUERY_PORT}
15-
- KF2_WEBADMIN=${KF2_WEBADMIN:false}
15+
- KF2_WEBADMIN=${KF2_WEBADMIN:-false}
1616
- KF2_WEBADMIN_PORT=${KF2_WEBADMIN_PORT}
1717

1818
volumes:

docker-compose.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@ services:
88
environment:
99
- LGSM_PASSWORD=${LGSM_PASSWORD}
1010
- SSH_KEY=${SSH_KEY}
11-
- KF2_WEBADMIN=${KF2_WEBADMIN:false}
11+
- SSH_PORT=${SSH_PORT}
12+
- KF2_WEBADMIN=${KF2_WEBADMIN:-false}
1213
ports:
13-
- "${SSH_PORT:-22}:22/tcp"
14+
- "${SSH_PORT:-22}:${SSH_PORT:-22}/tcp"
1415
- "${KF2_GAME_PORT:-7777}:${KF2_GAME_PORT:-7777}/udp"
1516
- "${KF2_QUERY_PORT:-27015}:${KF2_QUERY_PORT:-27015}/udp"
1617
- "${KF2_WEBADMIN_PORT:-8080}:${KF2_WEBADMIN_PORT:-8080}/tcp"

0 commit comments

Comments
 (0)