website/docs: update container explanation

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-05-04 17:49:21 +02:00
parent e6431593f7
commit 8a666535a8
3 changed files with 3 additions and 17 deletions

View File

@ -45,7 +45,7 @@ services:
traefik.http.routers.app-router.service: app-service traefik.http.routers.app-router.service: app-service
traefik.http.routers.app-router.tls: 'true' traefik.http.routers.app-router.tls: 'true'
traefik.http.services.app-service.loadbalancer.healthcheck.path: /-/health/live/ traefik.http.services.app-service.loadbalancer.healthcheck.path: /-/health/live/
traefik.http.services.app-service.loadbalancer.server.port: '8000' traefik.http.services.app-service.loadbalancer.server.port: '9000'
env_file: env_file:
- .env - .env
ports: ports:

View File

@ -6,7 +6,7 @@ from multiprocessing import cpu_count
import structlog import structlog
from kubernetes.config.incluster_config import SERVICE_HOST_ENV_NAME from kubernetes.config.incluster_config import SERVICE_HOST_ENV_NAME
bind = "0.0.0.0:8000" bind = "127.0.0.1:8000"
user = "authentik" user = "authentik"
group = "authentik" group = "authentik"

View File

@ -89,11 +89,7 @@ The docker-compose project contains the following containers:
- server - server
This is the backend service, which does all the logic, runs the API and the actual SSO part. This is the backend service, which does all the logic, runs the API and the actual SSO part. It also runs the frontend, hosts the JS/CSS files, and also servers the files you've uploaded for icons/etc.
- static
This container runs the frontend, hosts the JS/CSS files, and also servers the files you've uploaded for icons/etc.
- worker - worker
@ -103,14 +99,4 @@ The docker-compose project contains the following containers:
Cache and database respectively. Cache and database respectively.
- traefik
Traefik is used so that you only have a single entry point, and don't need to configure a reverse proxy yourself.
It does the following things:
- Routes everything that starts with `/static`, `/if`, `/media`, `/robots.txt` or `/favicon.ico` to the *static* container on port 80
- Routes everything else to the *server* container on port 8000
- Does some minor health checking
Additionally, if you've enabled GeoIP, there is a container running which regularly updates the GeoIP database. Additionally, if you've enabled GeoIP, there is a container running which regularly updates the GeoIP database.