Add authentik

This commit is contained in:
Tobias Reisinger 2022-08-07 01:14:57 +02:00
parent 29f31783f5
commit aa5d722dc3
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
4 changed files with 96 additions and 4 deletions

22
authentik/.env Normal file
View file

@ -0,0 +1,22 @@
AUTHENTIK_SECRET_KEY=
AUTHENTIK_EMAIL__HOST=mail.serguzim.me
AUTHENTIK_EMAIL__PORT=587
AUTHENTIK_EMAIL__USERNAME=auth@serguzim.me
AUTHENTIK_EMAIL__PASSWORD=
AUTHENTIK_EMAIL__USE_TLS=true
AUTHENTIK_EMAIL__USE_SSL=false
AUTHENTIK_EMAIL__TIMEOUT=10
AUTHENTIK_EMAIL__FROM=auth@serguzim.me
AUTHENTIK_AVATARS=none
AUTHENTIK_REDIS__HOST=redis
AUTHENTIK_POSTGRESQL__HOST=node002.serguzim.net
AUTHENTIK_POSTGRESQL__USER=authentik
AUTHENTIK_POSTGRESQL__NAME=authentik
AUTHENTIK_POSTGRESQL__PASSWORD=
GEOIPUPDATE_EDITION_IDS="GeoLite2-City"
GEOIPUPDATE_FREQUENCY="8"

2
authentik/.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
backups/
certs/

View file

@ -0,0 +1,68 @@
---
version: '3.2'
services:
server:
image: goauthentik.io/server:2022.1.3
restart: unless-stopped
command: server
volumes:
- ./media:/media
- ./custom-templates:/templates
- geoip:/geoip
env_file:
- .env
- .secret.env
depends_on:
- redis
networks:
local-net:
services:
aliases:
- authentik
worker:
image: goauthentik.io/server:2022.1.3
restart: unless-stopped
command: worker
user: root
volumes:
- ./backups:/backups
- ./media:/media
- ./certs:/certs
- /var/run/docker.sock:/var/run/docker.sock
- ./custom-templates:/templates
- geoip:/geoip
env_file:
- .env
- .secret.env
depends_on:
- redis
networks:
local-net:
geoipupdate:
image: "maxmindinc/geoipupdate:latest"
volumes:
- "geoip:/usr/share/GeoIP"
env_file:
- .env
- .secret.env
depends_on:
- redis
networks:
local-net:
redis:
image: redis:alpine
restart: unless-stopped
networks:
local-net:
volumes:
geoip:
networks:
local-net:
services:
external: true

View file

@ -12,7 +12,7 @@ services:
volumes: volumes:
- app:/var/www/html - app:/var/www/html
networks: networks:
tt-rss: local-net:
aliases: aliases:
- tt-rss-app - tt-rss-app
@ -30,7 +30,7 @@ services:
- app - app
command: /opt/tt-rss/updater.sh command: /opt/tt-rss/updater.sh
networks: networks:
tt-rss: local-net:
web-nginx: web-nginx:
image: cthulhoo/ttrss-web-nginx image: cthulhoo/ttrss-web-nginx
@ -43,7 +43,7 @@ services:
depends_on: depends_on:
- app - app
networks: networks:
tt-rss: local-net:
services: services:
aliases: aliases:
- tt-rss - tt-rss
@ -52,6 +52,6 @@ volumes:
app: app:
networks: networks:
tt-rss: local-net:
services: services:
external: true external: true