From 07d418ae94e5cc595becee7184d512f87c53436c Mon Sep 17 00:00:00 2001 From: boo3 Date: Mon, 30 Sep 2024 04:05:06 +0200 Subject: [PATCH] added ports and fixed the server not starting by removing custom download dir --- docker-compose.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 00ba3f0..4c84961 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,7 +3,11 @@ services: tf2-dedicated-server: image: cm2network/tf2:sourcemod container_name: tf2-dedicated-server - network_mode: host + network_mode: bridge + ports: + - "27020:27020" + - "27015:27015" + - "27015:27015/udp" depends_on: - tf2-dedicated-server-download environment: @@ -25,7 +29,6 @@ services: - SRCDS_SECURED="${SRCDS_SECURED}" volumes: - tf2-server:/home/steam/tf-dedicated/ - - tf2-server-download-data:/home/steam/tf-dedicated/tf/custom/server/ restart: unless-stopped tf2-dedicated-server-download: build: . @@ -33,7 +36,7 @@ services: container_name: tf2-dedicated-server-download network_mode: bridge volumes: - - tf2-server-download-data:/usr/local/apache2/htdocs/source/tf/ + - tf2-server-download-data:/usr/local/apache2/htdocs/source/ labels: traefik.enable: "true" traefik.http.routers.tf2download.entrypoints: "web, websecure"