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:
@@ -765,6 +765,12 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- /home/ddp/src/photoassistant:/home/ddp/src/photoassistant
|
- /home/ddp/src/photoassistant:/home/ddp/src/photoassistant
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /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:
|
labels:
|
||||||
- "com.centurylinklabs.watchtower.enable=false"
|
- "com.centurylinklabs.watchtower.enable=false"
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
@@ -797,6 +803,29 @@ services:
|
|||||||
- "traefik.http.routers.pa.tls=true"
|
- "traefik.http.routers.pa.tls=true"
|
||||||
- "traefik.http.routers.pa.entrypoints=secureweb"
|
- "traefik.http.routers.pa.entrypoints=secureweb"
|
||||||
- "traefik.http.routers.pa.tls.certresolver=myresolver"
|
- "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:
|
finplan:
|
||||||
container_name: finplan
|
container_name: finplan
|
||||||
@@ -1241,28 +1270,3 @@ services:
|
|||||||
- "traefik.http.routers.homarr.entrypoints=web"
|
- "traefik.http.routers.homarr.entrypoints=web"
|
||||||
- "traefik.http.services.homarr.loadbalancer.server.port=7575"
|
- "traefik.http.services.homarr.loadbalancer.server.port=7575"
|
||||||
- "last.commit.url=https://api.github.com/repos/homarr-labs/homarr/commits"
|
- "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"
|
|
||||||
|
|||||||
Reference in New Issue
Block a user