diff --git a/compose.yaml b/compose.yaml index 1be78fb..86db7d0 100644 --- a/compose.yaml +++ b/compose.yaml @@ -86,6 +86,31 @@ services: # - 8443:8443 restart: unless-stopped + remotepower: + image: ghcr.io/tyxak/remotepower:latest # or `build: .` to build locally + container_name: remotepower + restart: unless-stopped +# ports: +# - "443:8443" # HTTPS — self-signed by default +# - "80:8080" # HTTP — health, /ca.crt, redirects to HTTPS + environment: + # HTTPS on first boot, no cert wrangling. Set RP_TLS_HOST to your address: +# RP_TLS_SELFSIGNED: "1" +# RP_TLS_HOST: "${RP_TLS_HOST:-localhost}" + volumes: + - /opt/01_admin/remotepower:/var/lib/remotepower + healthcheck: + test: ["CMD", "python3", "-c", + "import urllib.request,sys; sys.exit(0 if urllib.request.urlopen('http://localhost:8080/api/health',timeout=4).status==200 else 1)"] + interval: 60s + timeout: 5s + start_period: 15s + retries: 3 + +volumes: + remotepower_data: + # remotepower_pg: # uncomment together with the optional postgres service above + volumes: termix-data: driver: local