Add Traefik labels
This commit is contained in:
@@ -12,18 +12,22 @@ services:
|
||||
restart: ${GOTIFY_RESTART_POLICY}
|
||||
security_opt:
|
||||
- no-new-privileges:true
|
||||
ports:
|
||||
- ${GOTIFY_PORT:-8080}:80
|
||||
# environment:
|
||||
# - GOTIFY_DEFAULTUSER_PASS=custom
|
||||
# - GOTIFY_DATABASE_DIALECT=mysql
|
||||
# - GOTIFY_DATABASE_CONNECTION=gotify:ubKrbI1NNn)/ryKT@tcp(mariadb:3306)/gotify?charset=utf8&parseTime=True&loc=Local
|
||||
# - GOTIFY_PLUGINSDIR=data/plugins
|
||||
# ports:
|
||||
# - ${GOTIFY_PORT:-8080}:80
|
||||
env_file:
|
||||
- path: ./gotify.env
|
||||
volumes:
|
||||
- ${DOCKERDIR}/gotify/gotify_data:/app/data
|
||||
- ${DOCKERDIR}/gotify/data:/app/data
|
||||
networks:
|
||||
- proxy
|
||||
# - notification
|
||||
# - database
|
||||
labels:
|
||||
traefik.enable: true
|
||||
## HTTP Routers
|
||||
traefik.http.routers.${GOTIFY_HOST_NAME}-rtr.entrypoints: https
|
||||
traefik.http.routers.${GOTIFY_HOST_NAME}-rtr.rule: Host(`${GOTIFY_HOST_NAME}.$DOMAINNAME1`)
|
||||
## Middlewares
|
||||
#traefik.http.routers.${GOTIFY_HOST_NAME}-rtr.middlewares: chain-authelia@file
|
||||
traefik.http.routers.${GOTIFY_HOST_NAME}-rtr.middlewares: chain-no-auth@file
|
||||
## HTTP Services
|
||||
traefik.http.routers.${GOTIFY_HOST_NAME}-rtr.service: ${GOTIFY_HOST_NAME}-svc
|
||||
traefik.http.services.${GOTIFY_HOST_NAME}-svc.loadbalancer.server.port: 80
|
||||
Reference in New Issue
Block a user