16 lines
420 B
YAML
16 lines
420 B
YAML
services:
|
|
sonos-web:
|
|
build: .
|
|
network_mode: host
|
|
restart: unless-stopped
|
|
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
|