2021-04-11 03:51:00 +07:00
|
|
|
---
|
2020-01-19 17:06:37 +07:00
|
|
|
version: '3'
|
2019-11-02 21:32:58 +07:00
|
|
|
services:
|
|
|
|
authelia-frontend:
|
|
|
|
image: nginx:alpine
|
|
|
|
volumes:
|
2020-01-19 17:06:37 +07:00
|
|
|
- './example/compose/authelia/resources/nginx.conf:/etc/nginx/nginx.conf'
|
2020-04-14 06:57:28 +07:00
|
|
|
labels:
|
|
|
|
# Traefik 1.x
|
|
|
|
- 'traefik.frontend.rule=Host:login.example.com'
|
|
|
|
# Traefik 2.x
|
2021-04-11 03:51:00 +07:00
|
|
|
- 'traefik.http.routers.authelia_frontend.rule=Host(`login.example.com`) || Host(`login.example.com`) && PathPrefix(`${PathPrefix}/`)' # yamllint disable-line rule:line-length
|
2020-04-14 06:57:28 +07:00
|
|
|
- 'traefik.http.routers.authelia_frontend.entrypoints=https'
|
|
|
|
- 'traefik.http.routers.authelia_frontend.tls=true'
|
|
|
|
- 'traefik.http.services.authelia_frontend.loadbalancer.server.port=3000'
|
2019-11-02 21:32:58 +07:00
|
|
|
networks:
|
2020-04-14 06:57:28 +07:00
|
|
|
- authelianet
|
|
|
|
expose:
|
|
|
|
- 3000
|
2021-04-11 03:51:00 +07:00
|
|
|
...
|