2020-01-19 17:06:37 +07:00
|
|
|
version: '3'
|
2019-11-30 23:49:52 +07:00
|
|
|
services:
|
|
|
|
authelia-backend:
|
2020-01-18 02:46:51 +07:00
|
|
|
image: authelia:dist
|
2020-01-19 17:06:37 +07:00
|
|
|
labels:
|
2020-04-14 06:57:28 +07:00
|
|
|
# Traefik 1.x
|
|
|
|
- 'traefik.frontend.rule=Host:login.example.com;PathPrefix:/api'
|
|
|
|
- 'traefik.protocol=https'
|
|
|
|
# Traefik 2.x
|
2020-05-27 18:55:44 +07:00
|
|
|
- 'traefik.http.routers.authelia_backend.rule=Host(`login.example.com`) && PathPrefix(`/api`) || Host(`login.example.com`) && PathPrefix(`${PathPrefix}/api`)'
|
2020-04-14 06:57:28 +07:00
|
|
|
- 'traefik.http.routers.authelia_backend.entrypoints=https'
|
|
|
|
- 'traefik.http.routers.authelia_backend.tls=true'
|
|
|
|
- 'traefik.http.services.authelia_backend.loadbalancer.server.scheme=https'
|
2020-06-05 07:43:19 +07:00
|
|
|
volumes:
|
2020-06-17 13:25:35 +07:00
|
|
|
- '../..:/authelia'
|
2019-11-30 23:49:52 +07:00
|
|
|
environment:
|
|
|
|
- ENVIRONMENT=dev
|
|
|
|
restart: always
|
|
|
|
networks:
|
|
|
|
authelianet:
|
2020-04-14 06:57:28 +07:00
|
|
|
ipv4_address: 192.168.240.50
|