2019-10-04 10:50:26 +01:00
|
|
|
---
|
|
|
|
version: '3.2'
|
|
|
|
|
|
|
|
services:
|
|
|
|
postgresql:
|
2021-05-06 14:01:25 +01:00
|
|
|
image: postgres:12-alpine
|
2021-04-16 08:03:58 +01:00
|
|
|
restart: unless-stopped
|
2019-10-04 10:50:26 +01:00
|
|
|
volumes:
|
|
|
|
- database:/var/lib/postgresql/data
|
|
|
|
networks:
|
|
|
|
- internal
|
|
|
|
environment:
|
|
|
|
- POSTGRES_PASSWORD=${PG_PASS:-thisisnotagoodpassword}
|
2020-12-14 11:27:33 +00:00
|
|
|
- POSTGRES_USER=${PG_USER:-authentik}
|
|
|
|
- POSTGRES_DB=${PG_DB:-authentik}
|
2020-09-14 21:54:25 +01:00
|
|
|
env_file:
|
|
|
|
- .env
|
2019-10-04 10:50:26 +01:00
|
|
|
redis:
|
2021-05-06 14:01:25 +01:00
|
|
|
image: redis:alpine
|
2021-05-03 17:28:46 +01:00
|
|
|
restart: unless-stopped
|
2019-10-04 10:50:26 +01:00
|
|
|
networks:
|
|
|
|
- internal
|
|
|
|
server:
|
2021-05-12 20:25:18 +01:00
|
|
|
image: ${AUTHENTIK_IMAGE:-beryju/authentik}:${AUTHENTIK_TAG:-2021.5.1-rc10}
|
2021-04-16 08:03:58 +01:00
|
|
|
restart: unless-stopped
|
2020-09-02 23:04:12 +01:00
|
|
|
command: server
|
2019-10-04 10:50:26 +01: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 14:36:46 +01:00
|
|
|
# AUTHENTIK_ERROR_REPORTING__ENABLED: "true"
|
2021-04-11 12:20:27 +01: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
|
2019-10-04 10:50:26 +01:00
|
|
|
networks:
|
|
|
|
- internal
|
|
|
|
labels:
|
2020-10-18 17:46:13 +01:00
|
|
|
traefik.enable: 'true'
|
|
|
|
traefik.docker.network: internal
|
|
|
|
traefik.http.routers.app-router.rule: PathPrefix(`/`)
|
|
|
|
traefik.http.routers.app-router.service: app-service
|
|
|
|
traefik.http.routers.app-router.tls: 'true'
|
2021-02-06 20:07:05 +00:00
|
|
|
traefik.http.services.app-service.loadbalancer.healthcheck.path: /-/health/live/
|
2021-05-04 16:49:21 +01:00
|
|
|
traefik.http.services.app-service.loadbalancer.server.port: '9000'
|
2020-09-14 21:54:25 +01:00
|
|
|
env_file:
|
|
|
|
- .env
|
2021-05-02 23:49:16 +01:00
|
|
|
ports:
|
|
|
|
- "0.0.0.0:9000:9000"
|
|
|
|
- "0.0.0.0:9443:9443"
|
2019-10-04 10:50:26 +01:00
|
|
|
worker:
|
2021-05-12 20:25:18 +01:00
|
|
|
image: ${AUTHENTIK_IMAGE:-beryju/authentik}:${AUTHENTIK_TAG:-2021.5.1-rc10}
|
2021-04-16 08:03:58 +01:00
|
|
|
restart: unless-stopped
|
2020-09-02 23:04:12 +01:00
|
|
|
command: worker
|
2019-10-04 10:50:26 +01:00
|
|
|
networks:
|
|
|
|
- internal
|
|
|
|
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 14:36:46 +01:00
|
|
|
# AUTHENTIK_ERROR_REPORTING__ENABLED: "true"
|
2020-10-03 19:36:36 +01:00
|
|
|
volumes:
|
|
|
|
- ./backups:/backups
|
2020-10-22 10:30:53 +01: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 21:54:25 +01: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 10:50:26 +01:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
database:
|
|
|
|
driver: local
|
2021-03-11 15:42:19 +00:00
|
|
|
geoip:
|
|
|
|
driver: local
|
2019-10-04 10:50:26 +01:00
|
|
|
|
|
|
|
networks:
|
|
|
|
internal: {}
|