2019-10-04 09:50:26 +00:00
|
|
|
---
|
2022-05-26 07:56:00 +00:00
|
|
|
version: '3.4'
|
2019-10-04 09:50:26 +00:00
|
|
|
|
|
|
|
services:
|
|
|
|
postgresql:
|
2021-05-06 13:01:25 +00:00
|
|
|
image: postgres:12-alpine
|
2021-04-16 07:03:58 +00:00
|
|
|
restart: unless-stopped
|
2022-05-26 07:56:00 +00:00
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "pg_isready"]
|
|
|
|
start_period: 20s
|
|
|
|
interval: 30s
|
|
|
|
retries: 5
|
|
|
|
timeout: 5s
|
2019-10-04 09:50:26 +00:00
|
|
|
volumes:
|
|
|
|
- database:/var/lib/postgresql/data
|
|
|
|
environment:
|
2021-08-26 08:24:35 +00:00
|
|
|
- POSTGRES_PASSWORD=${PG_PASS:?database password required}
|
2020-12-14 11:27:33 +00:00
|
|
|
- POSTGRES_USER=${PG_USER:-authentik}
|
|
|
|
- POSTGRES_DB=${PG_DB:-authentik}
|
2020-09-14 20:54:25 +00:00
|
|
|
env_file:
|
|
|
|
- .env
|
2019-10-04 09:50:26 +00:00
|
|
|
redis:
|
2021-05-06 13:01:25 +00:00
|
|
|
image: redis:alpine
|
2021-05-03 16:28:46 +00:00
|
|
|
restart: unless-stopped
|
2022-05-26 07:56:00 +00:00
|
|
|
healthcheck:
|
|
|
|
test: ["CMD-SHELL", "redis-cli ping | grep PONG"]
|
|
|
|
start_period: 20s
|
|
|
|
interval: 30s
|
|
|
|
retries: 5
|
|
|
|
timeout: 3s
|
2019-10-04 09:50:26 +00:00
|
|
|
server:
|
2022-06-19 20:01:06 +00:00
|
|
|
image: ${AUTHENTIK_IMAGE:-ghcr.io/goauthentik/server}:${AUTHENTIK_TAG:-2022.6.3}
|
2021-04-16 07:03:58 +00:00
|
|
|
restart: unless-stopped
|
2020-09-02 22:04:12 +00:00
|
|
|
command: server
|
2019-10-04 09:50:26 +00:00
|
|
|
environment:
|
2020-12-05 21:08:42 +00:00
|
|
|
AUTHENTIK_REDIS__HOST: redis
|
|
|
|
AUTHENTIK_POSTGRESQL__HOST: postgresql
|
2020-12-14 11:27:33 +00:00
|
|
|
AUTHENTIK_POSTGRESQL__USER: ${PG_USER:-authentik}
|
|
|
|
AUTHENTIK_POSTGRESQL__NAME: ${PG_DB:-authentik}
|
2020-12-05 21:08:42 +00:00
|
|
|
AUTHENTIK_POSTGRESQL__PASSWORD: ${PG_PASS}
|
2021-04-07 13:36:46 +00:00
|
|
|
# AUTHENTIK_ERROR_REPORTING__ENABLED: "true"
|
2021-04-11 11:20:27 +00:00
|
|
|
# WORKERS: 2
|
2020-11-23 19:50:19 +00:00
|
|
|
volumes:
|
|
|
|
- ./media:/media
|
2021-01-04 23:41:10 +00:00
|
|
|
- ./custom-templates:/templates
|
2021-03-11 15:42:19 +00:00
|
|
|
- geoip:/geoip
|
2020-09-14 20:54:25 +00:00
|
|
|
env_file:
|
|
|
|
- .env
|
2021-05-02 22:49:16 +00:00
|
|
|
ports:
|
2022-01-17 13:48:02 +00:00
|
|
|
- "0.0.0.0:${AUTHENTIK_PORT_HTTP:-9000}:9000"
|
|
|
|
- "0.0.0.0:${AUTHENTIK_PORT_HTTPS:-9443}:9443"
|
2019-10-04 09:50:26 +00:00
|
|
|
worker:
|
2022-06-19 20:01:06 +00:00
|
|
|
image: ${AUTHENTIK_IMAGE:-ghcr.io/goauthentik/server}:${AUTHENTIK_TAG:-2022.6.3}
|
2021-04-16 07:03:58 +00:00
|
|
|
restart: unless-stopped
|
2020-09-02 22:04:12 +00:00
|
|
|
command: worker
|
2019-10-04 09:50:26 +00:00
|
|
|
environment:
|
2020-12-05 21:08:42 +00:00
|
|
|
AUTHENTIK_REDIS__HOST: redis
|
|
|
|
AUTHENTIK_POSTGRESQL__HOST: postgresql
|
2020-12-14 11:27:33 +00:00
|
|
|
AUTHENTIK_POSTGRESQL__USER: ${PG_USER:-authentik}
|
|
|
|
AUTHENTIK_POSTGRESQL__NAME: ${PG_DB:-authentik}
|
2020-12-05 21:08:42 +00:00
|
|
|
AUTHENTIK_POSTGRESQL__PASSWORD: ${PG_PASS}
|
2021-04-07 13:36:46 +00:00
|
|
|
# AUTHENTIK_ERROR_REPORTING__ENABLED: "true"
|
2021-05-13 18:11:49 +00:00
|
|
|
# This is optional, and can be removed. If you remove this, the following will happen
|
2022-03-09 20:56:18 +00:00
|
|
|
# - The permissions for the /media folders aren't fixed, so make sure they are 1000:1000
|
2021-05-13 18:11:49 +00:00
|
|
|
# - The docker socket can't be accessed anymore
|
|
|
|
user: root
|
2020-10-03 18:36:36 +00:00
|
|
|
volumes:
|
2021-05-13 18:11:49 +00:00
|
|
|
- ./media:/media
|
2021-12-03 17:27:06 +00:00
|
|
|
- ./certs:/certs
|
2020-10-22 09:30:53 +00:00
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
2021-01-04 23:41:10 +00:00
|
|
|
- ./custom-templates:/templates
|
2021-03-11 15:42:19 +00:00
|
|
|
- geoip:/geoip
|
2020-09-14 20:54:25 +00:00
|
|
|
env_file:
|
|
|
|
- .env
|
2021-03-11 15:42:19 +00:00
|
|
|
geoipupdate:
|
|
|
|
image: "maxmindinc/geoipupdate:latest"
|
|
|
|
volumes:
|
|
|
|
- "geoip:/usr/share/GeoIP"
|
|
|
|
environment:
|
|
|
|
GEOIPUPDATE_EDITION_IDS: "GeoLite2-City"
|
|
|
|
GEOIPUPDATE_FREQUENCY: "8"
|
|
|
|
env_file:
|
|
|
|
- .env
|
2019-10-04 09:50:26 +00:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
database:
|
|
|
|
driver: local
|
2021-03-11 15:42:19 +00:00
|
|
|
geoip:
|
|
|
|
driver: local
|