1.5 KiB
title
| title |
|---|
| Frontend-only development environment |
If you want to only make changes on the UI, you don't need a backend running from source. You can user the docker-compose install with a few customizations.
-
Clone the git repo from https://github.com/goauthentik/authentik
-
In the cloned repository, follow the docker-compose installation instructions here
-
Add the following entry to your
.envfile:AUTHENTIK_WEB__LOAD_LOCAL_FILES=true AUTHENTIK_IMAGE=beryju.org/authentik/server AUTHENTIK_TAG=gh-next AUTHENTIK_OUTPOSTS__DOCKER_IMAGE_BASE=beryju.org/authentik/outpost-%(type)s:gh-nextThis will cause authentik to load static files from a folder and ignore the bundeled files. Also the beta image is used.
-
Add this volume mapping to your compose file
version: '3.2' services: # [...] server: # [...] volumes: - ./web:/webThis makes the local web files available to the authentik server.
-
Run
docker-compose up -dto apply those changes to your containers. -
Run
make gen-webin the project root directory to generate the API Client used by the web interfaces -
cd web -
Run
npm iand thennpm run watchto start the build process.
You can now access authentik on http://localhost:9000 (or https://localhost:9443).
You might also want to complete the initial setup under /if/flow/initial-setup/.