# Сгенерировано docker-to-compose.py по живому состоянию. # Секреты — в .env рядом (права 600, в Git не попадает). # Проверка: docker compose config services: ha-strip: image: "nginx:alpine" container_name: "ha-strip" restart: "unless-stopped" networks: - "ha-sso" ports: - "8130:80" volumes: - "/opt/ha-strip/nginx.conf:/etc/nginx/nginx.conf:ro" environment: ACME_VERSION: "0.4.1" DYNPKG_RELEASE: "1" NGINX_VERSION: "1.31.7" NJS_RELEASE: "1" NJS_VERSION: "1.0.2" PKG_RELEASE: "1" command: - "nginx" - "-g" - "daemon off;" entrypoint: - "/docker-entrypoint.sh" homeassistant: image: "ghcr.io/home-assistant/home-assistant:stable" container_name: "homeassistant" restart: "unless-stopped" network_mode: "host" volumes: - "/opt/smart-lxc/homeassistant/config:/config" environment: LANG: "C.UTF-8" S6_BEHAVIOUR_IF_STAGE2_FAILS: "2" S6_CMD_WAIT_FOR_SERVICES: "1" S6_CMD_WAIT_FOR_SERVICES_MAXTIME: "0" S6_SERVICES_GRACETIME: "240000" S6_SERVICES_READYTIME: "50" TZ: "Europe/Moscow" UV_EXTRA_INDEX_URL: "https://wheels.home-assistant.io/musllinux-index/" UV_NO_CACHE: "true" UV_SYSTEM_PYTHON: "true" entrypoint: - "/init" oauth2-proxy-home: image: "quay.io/oauth2-proxy/oauth2-proxy:latest" container_name: "oauth2-proxy-home" restart: "unless-stopped" networks: - "ha-sso" security_opt: - "apparmor=unconfined" ports: - "9130:9130" environment: OAUTH2_PROXY_APPROVAL_PROMPT: "auto" OAUTH2_PROXY_CLIENT_ID: "home-assistant-proxy" OAUTH2_PROXY_CLIENT_SECRET: ${OAUTH2_PROXY_HOME_OAUTH2_PROXY_CLIENT_SECRET} OAUTH2_PROXY_COOKIE_NAME: "_oauth2_proxy_ha" OAUTH2_PROXY_COOKIE_SAMESITE: "lax" OAUTH2_PROXY_COOKIE_SECRET: ${OAUTH2_PROXY_HOME_OAUTH2_PROXY_COOKIE_SECRET} OAUTH2_PROXY_COOKIE_SECURE: "true" OAUTH2_PROXY_EMAIL_DOMAINS: "*" OAUTH2_PROXY_HTTP_ADDRESS: "0.0.0.0:9130" OAUTH2_PROXY_OIDC_ISSUER_URL: "https://authentik.buryans.ru/application/o/home-assistant/" OAUTH2_PROXY_PROVIDER: "oidc" OAUTH2_PROXY_REDIRECT_URL: "https://home.buryans.ru/oauth2/callback" OAUTH2_PROXY_REVERSE_PROXY: "true" OAUTH2_PROXY_SESSION_COOKIE_MINIMAL: "true" OAUTH2_PROXY_SET_XAUTHREQUEST: "true" OAUTH2_PROXY_SKIP_PROVIDER_BUTTON: "true" OAUTH2_PROXY_UPSTREAMS: "static://202" SSL_CERT_FILE: "/etc/ssl/certs/ca-certificates.crt" entrypoint: - "/bin/oauth2-proxy" promtail: image: "grafana/promtail:3.2.1" container_name: "promtail" restart: "unless-stopped" network_mode: "host" volumes: - "/opt/promtail-config.yml:/etc/promtail/config.yml:ro" - "/var/lib/docker/containers:/var/lib/docker/containers:ro" - "/opt/promtail-positions:/var/lib/promtail" - "/var/run/docker.sock:/var/run/docker.sock:ro" command: - "-config.file=/etc/promtail/config.yml" entrypoint: - "/usr/bin/promtail" networks: ha-sso: external: true