traefik_gotify/docker-compose.yml
2023-12-05 11:41:46 +01:00

35 lines
1.2 KiB
YAML

version: "3.8"
networks:
default:
name: "${TRAEFIK_NETWORK}"
external: true
services:
gotify:
image: "gotify/server"
container_name: "${PROJECT_NAME}_gotify"
hostname: "${PROJECT_URL}"
restart: "unless-stopped"
environment:
- "GOTIFY_SERVER_PORT=80"
- "GOTIFY_SERVER_SSL_PORT=443"
- "GOTIFY_DEFAULTUSER_NAME=${APP_USER}"
- "GOTIFY_DEFAULTUSER_PASS=${APP_PASSWORD}"
- "GOTIFY_DATABASE_DIALECT=sqlite3"
- "GOTIFY_DATABASE_CONNECTION=db/gotify.db"
volumes:
- "${PROJECT_DATA}/${PROJECT_NAME}-gotify/gotify:/app/data"
- "${PROJECT_DATA}/${PROJECT_NAME}-gotify/db:/app/db"
- "/etc/timezone:/etc/timezone:ro"
- "/etc/localtime:/etc/localtime:ro"
labels:
# Watchtower add to auto update
- "com.centurylinklabs.watchtower.enable=true"
# traefik
- "traefik.enable=true"
- "traefik.docker.network=${TRAEFIK_NETWORK}"
- "traefik.http.routers.${PROJECT_NAME}_gotify.rule=Host(`${PROJECT_URL}`)"
- "traefik.http.routers.${PROJECT_NAME}_gotify.entrypoints=websecure"
- "traefik.http.routers.${PROJECT_NAME}_gotify.tls=true"
- "traefik.http.services.${PROJECT_NAME}_gotify.loadbalancer.server.port=80"