mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
a3e84769b5
* feat(web): replace cra with vite
* fix: add istanbul
* fix: add jest
* fix: inject env vars
* fix: replicate cra output directories
* fix: post-frontend build for go templating
* fix: dynamic publicpath
* fix(web): import resolution with aliases for .module.css files
* refactor(server): baseurl var
* refactor(web): drop babel-jest for esbuild-jest
* refactor(web): add inline sourcemap for coverage bundle
* build(deps): update web deps
* build(deps): downgrade vite-plugin-istanbul to 2.2.0
98bf77dbaa
is a breaking change that means production mode builds can no longer be instrumented.
* refactor(web): match frontend name and version
* refactor(web): drop cra readme
30 lines
945 B
YAML
30 lines
945 B
YAML
---
|
|
version: '3'
|
|
services:
|
|
authelia-frontend:
|
|
build:
|
|
context: example/compose/authelia
|
|
dockerfile: Dockerfile.frontend
|
|
args:
|
|
USER_ID: ${USER_ID}
|
|
GROUP_ID: ${GROUP_ID}
|
|
command: '/resources/entrypoint-frontend.sh'
|
|
working_dir: /app
|
|
stdin_open: true
|
|
volumes:
|
|
- './example/compose/authelia/resources/:/resources'
|
|
- '../../web:/app'
|
|
- '~/.pnpm-store:/tmp/.pnpm-store'
|
|
labels:
|
|
# Traefik 1.x
|
|
- 'traefik.frontend.rule=Host:login.example.com'
|
|
# Traefik 2.x
|
|
- 'traefik.http.routers.authelia_frontend.rule=Host(`login.example.com`) || Host(`login.example.com`) && PathPrefix(`${PathPrefix}/`)' # yamllint disable-line rule:line-length
|
|
- 'traefik.http.routers.authelia_frontend.entrypoints=https'
|
|
- 'traefik.http.routers.authelia_frontend.tls=true'
|
|
environment:
|
|
- VITE_PUBLIC_URL=${PathPrefix}
|
|
networks:
|
|
- authelianet
|
|
...
|