first init
This commit is contained in:
commit
3e6cff7107
58
docker-compose.yml
Normal file
58
docker-compose.yml
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
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"
|
||||
Loading…
Reference in a new issue