2020-01-19 10:06:37 +00:00
|
|
|
version: '3'
|
2019-11-02 14:32:58 +00:00
|
|
|
services:
|
|
|
|
authelia-frontend:
|
|
|
|
build:
|
|
|
|
context: example/compose/authelia
|
|
|
|
dockerfile: Dockerfile.frontend
|
2019-11-30 16:49:52 +00:00
|
|
|
args:
|
|
|
|
USER_ID: ${USER_ID}
|
|
|
|
GROUP_ID: ${GROUP_ID}
|
2020-01-19 10:06:37 +00:00
|
|
|
command: '/resources/entrypoint-frontend.sh'
|
2019-11-02 14:32:58 +00:00
|
|
|
working_dir: /app
|
2020-04-13 05:00:44 +00:00
|
|
|
stdin_open: true
|
2019-11-02 14:32:58 +00:00
|
|
|
volumes:
|
2020-01-19 10:06:37 +00:00
|
|
|
- './example/compose/authelia/resources/:/resources'
|
2020-02-27 09:44:29 +00:00
|
|
|
- '../../web:/app'
|
2020-01-19 10:06:37 +00:00
|
|
|
labels:
|
2020-04-13 23:57:28 +00:00
|
|
|
# Traefik 1.x
|
2020-01-19 10:06:37 +00:00
|
|
|
- 'traefik.frontend.rule=Host:login.example.com'
|
2020-04-13 23:57:28 +00:00
|
|
|
# Traefik 2.x
|
2020-05-27 11:55:44 +00:00
|
|
|
- 'traefik.http.routers.authelia_frontend.rule=Host(`login.example.com`) || Host(`login.example.com`) && PathPrefix(`${PathPrefix}`)'
|
2020-01-19 10:06:37 +00:00
|
|
|
- 'traefik.http.routers.authelia_frontend.entrypoints=https'
|
|
|
|
- 'traefik.http.routers.authelia_frontend.tls=true'
|
2020-05-27 11:55:44 +00:00
|
|
|
environment:
|
|
|
|
- PUBLIC_URL=${PathPrefix}
|
2019-11-02 14:32:58 +00:00
|
|
|
networks:
|
2020-04-13 23:57:28 +00:00
|
|
|
- authelianet
|