services: ns2-dedicated: # image: naturalselection2-ns2-dedicated build: . container_name: ns2-dedicated restart: unless-stopped environment: NS2_IP: 0.0.0.0 NS2_GAME_PORT: 27015 NS2_INSECURE: "1" NS2_WEBADMIN: "1" NS2_WEB_PORT: 8080 NS2_NAME: "NS2 Docker Server" NS2_MAP: "ns2_summit" NS2_LIMIT: 24 NS2_CONFIG_PATH: "/data/config" NS2_MODSTORAGE: "/data/mods" NS2_LOGDIR: "/data/logs" NS2_WEBUSER: "admin" NS2_WEBPASSWORD: "admin" # NS2_WEBUSERS_FILE: "/data/config/users.htpasswd" ports: - "27015:27015/udp" - "27016:27016/udp" - "8080:8080" volumes: - ./docker-data:/data # If you prefer passing command-line args directly instead of env vars: # command: # - -ip # - 0.0.0.0 # - -port # - "27015" # - -insecure # - -webadmin # - -webport # - "80" # - -name # - "NS2 Docker Server" # - -map # - "ns2_summit"