59 lines
1.8 KiB
YAML
59 lines
1.8 KiB
YAML
version: "3.8"
|
|
|
|
x-defaults: &defaults
|
|
restart: unless-stopped
|
|
logging:
|
|
driver: json-file
|
|
options:
|
|
max-size: "10m"
|
|
max-file: "3"
|
|
|
|
networks:
|
|
traefik:
|
|
external: true
|
|
name: traefik_default
|
|
default:
|
|
driver: bridge
|
|
|
|
services:
|
|
gotify:
|
|
<<: *defaults
|
|
image: gotify/server:latest
|
|
container_name: gotify
|
|
environment:
|
|
- TZ=Europe/Ljubljana
|
|
volumes:
|
|
- ./data:/app/data
|
|
networks:
|
|
- traefik
|
|
labels:
|
|
#- "traefik.enable=true"
|
|
|
|
# Router
|
|
#- "traefik.http.routers.gotify.rule=Host(`gotify.rozic-dev.com`)"
|
|
#- "traefik.http.routers.gotify.entrypoints=websecure"
|
|
# - "traefik.http.routers.gotify.tls.certresolver=letsencrypt"
|
|
|
|
# Optional redirect from HTTP → HTTPS
|
|
# - "traefik.http.routers.gotify-http.rule=Host(`gotify.rozic-dev.com`)"
|
|
# - "traefik.http.routers.gotify-http.entrypoints=web"
|
|
# - "traefik.http.routers.gotify-http.middlewares=redirect-to-https"
|
|
# - "traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https"
|
|
|
|
# # Service
|
|
# - "traefik.http.services.gotify.loadbalancer.server.port=80"
|
|
|
|
# labels:
|
|
- "traefik.enable=true"
|
|
# Router
|
|
- "traefik.http.routers.gotify.rule=Host(`gotify.rozic-dev.com`)"
|
|
- "traefik.http.routers.gotify.entrypoints=websecure"
|
|
- "traefik.http.routers.gotify.tls.certresolver=letsencrypt"
|
|
# Optional redirect from HTTP → HTTPS
|
|
- "traefik.http.routers.gotify-http.rule=Host(`gotify.rozic-dev.com`)"
|
|
- "traefik.http.routers.gotify-http.entrypoints=web"
|
|
- "traefik.http.routers.gotify-http.middlewares=redirect-to-https"
|
|
- "traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https"
|
|
# Service
|
|
- "traefik.http.services.gotify.loadbalancer.server.port=80"
|