services: sonos-web: container_name: sonos-web build: . network_mode: host restart: always environment: SONOS_DISCOVERY_TIMEOUT: "5" SONOS_OPERATION_TIMEOUT: "8" LOG_LEVEL: INFO healthcheck: test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://127.0.0.1:5000/health', timeout=2)"] interval: 30s timeout: 3s start_period: 10s retries: 3