ok
This commit is contained in:
50
Messagerie/Gotify/docker-compose-traefik.yaml
Normal file
50
Messagerie/Gotify/docker-compose-traefik.yaml
Normal file
@ -0,0 +1,50 @@
|
||||
#### NETWORKS
|
||||
networks:
|
||||
docker-traefik_front_network:
|
||||
external: true
|
||||
back_network:
|
||||
driver: bridge
|
||||
attachable: true
|
||||
|
||||
#### SERVICES
|
||||
services:
|
||||
|
||||
### gotify
|
||||
gotify:
|
||||
container_name: gotify
|
||||
hostname: gotify
|
||||
image: gotify/server
|
||||
volumes:
|
||||
- ./gotify:/app/data
|
||||
restart: unless-stopped
|
||||
security_opt:
|
||||
- no-new-privileges:true
|
||||
networks:
|
||||
- back_network
|
||||
- docker-traefik_front_network
|
||||
environment:
|
||||
- GOTIFY_SERVER_PORT=${APP_PORT}
|
||||
- GOTIFY_SERVER_SSL_PORT=${APP_PORT_SSL}
|
||||
- GOTIFY_DATABASE_DIALECT=${APP_BDD}
|
||||
- GOTIFY_DATABASE_CONNECTION=${APP_BDD_PATH}
|
||||
- GOTIFY_DEFAULTUSER_NAME=${APP_USER_LOGIN}
|
||||
- GOTIFY_DEFAULTUSER_PASS=${APP_USER_PASSWORD}
|
||||
- GOTIFY_PASSSTRENGTH=${APP_PASSSTRENGTH}
|
||||
- GOTIFY_UPLOADEDIMAGESDIR=${APP_UPLOADEDIMAGESDIR}
|
||||
- GOTIFY_PLUGINSDIR=${APP_PLUGINSDIR}
|
||||
- TZ=Europe/Paris
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.docker.network=docker-traefik_front_network"
|
||||
# HTTP
|
||||
- "traefik.http.routers.gotify-http.rule=Host(`gotify.10.0.4.29.traefik.me`)"
|
||||
- "traefik.http.routers.gotify-http.entrypoints=http"
|
||||
# HTTPS
|
||||
- "traefik.http.routers.gotify-https.rule=Host(`gotify.10.0.4.29.traefik.me`)"
|
||||
- "traefik.http.routers.gotify-https.entrypoints=https"
|
||||
- "traefik.http.routers.gotify-https.tls=true"
|
||||
# Middleware
|
||||
- "traefik.http.routers.gotify.middlewares=gotify-https-redirect"
|
||||
- "traefik.http.middlewares.gotify-https-redirect.redirectscheme.scheme=https"
|
||||
# Service
|
||||
- "traefik.http.services.gotify-service.loadbalancer.server.port=80"
|
Reference in New Issue
Block a user