services: pngx-controller: build: . restart: unless-stopped network_mode: host # required for Tailscale IP access (Linux only) env_file: .env environment: DATABASE_URL: sqlite:////data/db.sqlite3 volumes: - ./data:/data healthcheck: test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8000/healthz')"] interval: 30s timeout: 5s retries: 3 start_period: 15s