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"