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

35 lines
1.1 KiB
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
- ${DOCKER_VOLUMES}/gotify-data:/app/data
# - 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.routers.gotify.tls.options=mtls-private-admin@file"
- "traefik.http.services.gotify.loadbalancer.server.port=80"
ports:
- 8080:80
#volumes:
# gotify-data:
# external: true