added ports and fixed the server not starting by removing custom download dir

This commit is contained in:
boo3 2024-09-30 04:05:06 +02:00
parent d794021987
commit 07d418ae94

View File

@ -3,7 +3,11 @@ services:
tf2-dedicated-server: tf2-dedicated-server:
image: cm2network/tf2:sourcemod image: cm2network/tf2:sourcemod
container_name: tf2-dedicated-server container_name: tf2-dedicated-server
network_mode: host network_mode: bridge
ports:
- "27020:27020"
- "27015:27015"
- "27015:27015/udp"
depends_on: depends_on:
- tf2-dedicated-server-download - tf2-dedicated-server-download
environment: environment:
@ -25,7 +29,6 @@ services:
- SRCDS_SECURED="${SRCDS_SECURED}" - SRCDS_SECURED="${SRCDS_SECURED}"
volumes: volumes:
- tf2-server:/home/steam/tf-dedicated/ - tf2-server:/home/steam/tf-dedicated/
- tf2-server-download-data:/home/steam/tf-dedicated/tf/custom/server/
restart: unless-stopped restart: unless-stopped
tf2-dedicated-server-download: tf2-dedicated-server-download:
build: . build: .
@ -33,7 +36,7 @@ services:
container_name: tf2-dedicated-server-download container_name: tf2-dedicated-server-download
network_mode: bridge network_mode: bridge
volumes: volumes:
- tf2-server-download-data:/usr/local/apache2/htdocs/source/tf/ - tf2-server-download-data:/usr/local/apache2/htdocs/source/
labels: labels:
traefik.enable: "true" traefik.enable: "true"
traefik.http.routers.tf2download.entrypoints: "web, websecure" traefik.http.routers.tf2download.entrypoints: "web, websecure"