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