version: '3' services: tf2-dedicated-server: image: cm2network/tf2:sourcemod container_name: tf2-dedicated-server network_mode: bridge ports: - "27020:27020" - "27015:27015" - "27015:27015/udp" depends_on: - tf2-dedicated-server-download environment: - SRCDS_TOKEN="${SRCDS_TOKEN}" - SRCDS_RCONPW=${SRCDS_RCONPW} - SRCDS_PW=${SRCDS_PW} - SRCDS_PORT="${SRCDS_PORT}" - SRCDS_TV_PORT="${SRCDS_TV_PORT}" - SRCDS_IP="${SRCDS_IP}" - SRCDS_FPSMAX="${SRCDS_FPSMAX}" - SRCDS_TICKRATE="${SRCDS_TICKRATE}" - SRCDS_MAXPLAYERS="${SRCDS_MAXPLAYERS}" - SRCDS_REGION="${SRCDS_REGION}" - SRCDS_STARTMAP="${SRCDS_STARTMAP}" - SRCDS_HOSTNAME="${SRCDS_HOSTNAME}" - SRCDS_WORKSHOP_AUTHKEY="${SRCDS_WORKSHOP_AUTHKEY}" - SRCDS_CFG="${SRCDS_CFG}" - SRCDS_MAPCYCLE="${SRCDS_MAPCYCLE}" - SRCDS_SECURED="${SRCDS_SECURED}" volumes: - tf2-server:/home/steam/tf-dedicated/ restart: unless-stopped tf2-dedicated-server-download: build: . restart: unless-stopped container_name: tf2-dedicated-server-download network_mode: bridge volumes: - tf2-server-download-data:/usr/local/apache2/htdocs/source/ labels: traefik.enable: "true" traefik.http.routers.tf2download.entrypoints: "web, websecure" traefik.http.routers.tf2download.rule: "${ROOT_URL_TRAEFIK}" traefik.http.routers.tf2download.tls: "true" traefik.http.routers.tf2download.tls.certresolver: "production" traefik.http.services.tf2download.loadbalancer.server.port: "${PORT_TRAEFIK}" volumes: tf2-server: tf2-server-download-data: networks: bridge: driver: bridge