added a patst while we work on a new branch for PA, also a more timely health check so traefik is faster to notice its back after a restart

This commit is contained in:
2025-10-25 21:55:48 +11:00
parent 43719b968a
commit dc1c2681fe

View File

@@ -765,6 +765,12 @@ services:
volumes:
- /home/ddp/src/photoassistant:/home/ddp/src/photoassistant
- /etc/localtime:/etc/localtime:ro
healthcheck:
test: ["CMD-SHELL", "wget -qO- http://localhost/health || (echo 'Healthcheck failed'; exit 1)"]
interval: 5s
timeout: 2s
retries: 5
start_period: 2s
labels:
- "com.centurylinklabs.watchtower.enable=false"
- "traefik.enable=true"
@@ -797,6 +803,29 @@ services:
- "traefik.http.routers.pa.tls=true"
- "traefik.http.routers.pa.entrypoints=secureweb"
- "traefik.http.routers.pa.tls.certresolver=myresolver"
patst:
container_name: patst
restart: always
build:
context: '/home/ddp/src/photoassistant'
args:
# uid for mythtv (for prod)
PA_ID: "500"
environment:
ENV: "production"
depends_on:
padb:
condition: service_healthy
volumes:
- /export/docker/storage:/export/docker/storage
- /etc/localtime:/etc/localtime:ro
labels:
- "com.centurylinklabs.watchtower.enable=false"
- "traefik.enable=true"
- "traefik.http.routers.pa.rule=Host(`pa.depaoli.id.au`)"
- "traefik.http.routers.pa.tls=true"
- "traefik.http.routers.pa.entrypoints=secureweb"
- "traefik.http.routers.pa.tls.certresolver=myresolver"
finplan:
container_name: finplan
@@ -1241,28 +1270,3 @@ services:
- "traefik.http.routers.homarr.entrypoints=web"
- "traefik.http.services.homarr.loadbalancer.server.port=7575"
- "last.commit.url=https://api.github.com/repos/homarr-labs/homarr/commits"
splunk:
image: splunk/splunk:latest
container_name: splunk
environment:
- SPLUNK_LICENSE_URI=Free
- SPLUNK_START_ARGS=--accept-license
- SPLUNK_GENERAL_TERMS=--accept-sgt-current-at-splunk-com
ports:
- "8000:8000" # Splunk Web
- "8088:8088" # HTTP Event Collector (optional)
- "9997:9997" # Splunk Indexing
- "514:514/udp" # Syslog (UDP)
volumes:
- /srv/docker/container/splunk/data:/opt/splunk/var
- /srv/docker/container/splunk/etc:/opt/splunk/etc
env_file:
- /srv/docker/config/secrets/splunk
restart: unless-stopped
labels:
- "com.centurylinklabs.watchtower.enable=true"
- "traefik.enable=true"
- "traefik.http.routers.splunk.rule=Host(`splunk.ddp.net`)"
- "traefik.http.routers.splunk.entrypoints=web"
- "traefik.http.services.splunk.loadbalancer.server.port=8000"