Update compose.yaml
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user