Files
docker/monitoring/gotify/docker-compose.yml
T

27 lines
911 B
YAML

services:
gotify:
profiles: ["monitoring","all","gotify"]
image: gotify/server:latest
container_name: gotify
restart: always
env_file:
- ${PROJECT_ROOT}/secrets/stack-secrets.env
volumes:
- ${PROJECT_ROOT}/monitoring/gotify/data:/app/data
environment:
- TZ=${TZ}
- GOTIFY_DEFAULTUSER_NAME=${GOTIFY_DEFAULTUSER_NAME}
- GOTIFY_DEFAULTUSER_PASS=${GOTIFY_DEFAULTUSER_PASS}
- GOTIFY_REGISTRATION=${GOTIFY_REGISTRATION}
networks:
- traefik
labels:
- "traefik.enable=true"
- "traefik.docker.network=core_traefik"
- "io.portainer.accesscontrol.public"
- "traefik.http.routers.gotify.rule=Host(`gotify.lan.ddnsgeek.com`)"
- "traefik.http.routers.gotify.entrypoints=websecure"
- "traefik.http.routers.gotify.tls.certresolver=myresolver"
- "traefik.http.services.gotify.loadbalancer.server.port=80"