Uptime-kuma

This commit is contained in:
Brieuc Dubois 2024-02-05 21:45:42 +01:00
parent 5578b95414
commit f8d233b108
1 changed files with 24 additions and 1 deletions

View File

@ -19,7 +19,7 @@ services:
- "--certificatesresolvers.http.acme.httpchallenge.entrypoint=web" - "--certificatesresolvers.http.acme.httpchallenge.entrypoint=web"
- "--certificatesresolvers.http.acme.email=acme@bhasher.com" - "--certificatesresolvers.http.acme.email=acme@bhasher.com"
- "--certificatesresolvers.http.acme.storage=acme.json" - "--certificatesresolvers.http.acme.storage=acme.json"
- "--log.level=DEBUG" #- "--log.level=DEBUG"
environment: environment:
- TZ=Europe/Paris - TZ=Europe/Paris
restart: always restart: always
@ -31,6 +31,10 @@ services:
- type: bind - type: bind
source: /etc/letsencrypt/acme.json source: /etc/letsencrypt/acme.json
target: /acme.json target: /acme.json
labels:
- 'traefik.http.middlewares.authelia.forwardAuth.address=https://idp.bhasher.com/api/verify?rd=https%3A%2F%2Fidp.bhasher.com%2F'
- 'traefik.http.middlewares.authelia.forwardAuth.trustForwardHeader=true'
- 'traefik.http.middlewares.authelia.forwardAuth.authResponseHeaders=Remote-User,Remote-Groups,Remote-Name,Remote-Email'
networks: networks:
- external - external
@ -190,5 +194,24 @@ services:
networks: networks:
- external - external
uptime-kuma:
image: louislam/uptime-kuma:1
container_name: uptime-kuma
restart: unless-stopped
labels:
- "traefik.enable=true"
- "traefik.http.routers.uptime-kuma.rule=Host(`uptime.vps.bhasher.com`)"
- "traefik.http.services.uptime-kuma.loadbalancer.server.port=3001"
- "traefik.http.routers.uptime-kuma.tls=true"
- "traefik.http.routers.uptime-kuma.tls.certresolver=http"
- "traefik.http.routers.uptime-kuma.entrypoints=websecure"
#- "traefik.http.routers.uptime-kuma.middlewares=authelia@docker"
environment:
- TZ=Europe/Paris
volumes:
- $DATA/uptime-kuma:/app/data:rw
networks:
- external
networks: networks:
external: external: