authelia/internal/suites/example/compose/authelia/docker-compose.backend.dist.yml

22 lines
764 B
YAML
Raw Normal View History

version: '3'
2019-11-30 23:49:52 +07:00
services:
authelia-backend:
image: authelia:dist
labels:
# Traefik 1.x
- 'traefik.frontend.rule=Host:login.example.com;PathPrefix:/api'
- 'traefik.protocol=https'
# Traefik 2.x
- 'traefik.http.routers.authelia_backend.rule=Host(`login.example.com`) && PathPrefix(`/api`) || Host(`login.example.com`) && PathPrefix(`${PathPrefix}/api`)'
- 'traefik.http.routers.authelia_backend.entrypoints=https'
- 'traefik.http.routers.authelia_backend.tls=true'
- 'traefik.http.services.authelia_backend.loadbalancer.server.scheme=https'
volumes:
- '../..:/authelia'
2019-11-30 23:49:52 +07:00
environment:
- ENVIRONMENT=dev
restart: always
networks:
authelianet:
ipv4_address: 192.168.240.50