36 lines
1.1 KiB
YAML
36 lines
1.1 KiB
YAML
services:
|
|
monitor-kuma:
|
|
profiles: ["monitoring","all","uptime-kuma"]
|
|
image: louislam/uptime-kuma:2.1.1
|
|
container_name: monitor-kuma
|
|
restart: always
|
|
depends_on:
|
|
- docker-socket-proxy
|
|
environment:
|
|
DOCKER_HOST: ${DOCKER_SOCKET_PROXY_HOST}
|
|
volumes:
|
|
- ${PROJECT_ROOT}/monitoring/uptime-kuma/data:/app/data
|
|
# ports:
|
|
# - 8888:3001
|
|
labels:
|
|
- traefik.enable=true
|
|
|
|
# Router
|
|
- traefik.http.routers.monitor.rule=Host(`monitor-kuma.lan.ddnsgeek.com`)
|
|
- traefik.http.routers.monitor.entrypoints=websecure
|
|
- traefik.http.routers.monitor.tls=true
|
|
- traefik.http.routers.monitor.tls.certresolver=myresolver
|
|
- traefik.http.routers.monitor.tls.options=mtls-private-admin@file
|
|
- io.portainer.accesscontrol.public
|
|
- traefik.docker.network=core_traefik
|
|
# Service -> container port
|
|
- traefik.http.services.monitor.loadbalancer.server.port=3001
|
|
networks:
|
|
# - traefik_reverse_proxy
|
|
- traefik
|
|
- monitor
|
|
|
|
#networks:
|
|
# traefik_reverse_proxy:
|
|
# external: true
|