version: '2' networks: teamspeak: external: false services: app: container_name: teamspeak_app image: teamspeak:latest volumes: - ./app:/var/ts3server - ./whitelist.txt:/whitelist.txt ports: - 10011:10011 - 30033:30033 - 9987:9987/udp environment: - TS3SERVER_LICENSE=accept - TS3SERVER_IP_WHITELIST=/whitelist.txt restart: always network_mode: "host" web: container_name: teamspeak_web image: teamspeak_web:latest volumes: - ./env:/var/www/html/application/config/env - ./snapshots:/var/www/html/application/data/snapshots ports: - 127.0.0.1:8181:80 depends_on: - app restart: always networks: - teamspeak