traefik_gotify/docker-compose.yml

35 lines
1.2 KiB
YAML
Raw Normal View History

2023-12-05 11:41:46 +01:00
version: "3.8"
2023-11-25 13:48:56 +01:00
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:
2023-11-27 12:40:15 +01:00
- "${PROJECT_DATA}/${PROJECT_NAME}-gotify/gotify:/app/data"
- "${PROJECT_DATA}/${PROJECT_NAME}-gotify/db:/app/db"
2023-11-25 13:48:56 +01:00
- "/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"