services: nettrak: container_name: NetTrak build: . restart: unless-stopped environment: - NETTRAK_DB_PATH=/data/nettrak.db - NETTRAK_SUBNET=192.168.2.0/24 # For best host discovery on Linux, you can switch to host mode. # If you do that, remove the `ports` section and ensure APP_PORT is free. # network_mode: host ports: - "1337:1337" volumes: - ./data:/data