2019-10-04 09:50:26 +00:00
|
|
|
---
|
|
|
|
version: '3.2'
|
|
|
|
|
|
|
|
services:
|
|
|
|
postgresql:
|
2020-10-01 08:42:38 +00:00
|
|
|
image: postgres:12
|
2019-10-04 09:50:26 +00: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 20:54:25 +00:00
|
|
|
env_file:
|
|
|
|
- .env
|
2019-10-04 09:50:26 +00:00
|
|
|
redis:
|
|
|
|
image: redis
|
|
|
|
networks:
|
|
|
|
- internal
|
|
|
|
server:
|
2021-04-14 07:46:16 +00:00
|
|
|
image: ${AUTHENTIK_IMAGE:-beryju/authentik}:${AUTHENTIK_TAG:-2021.4.1}
|
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
|
2019-10-04 09:50:26 +00:00
|
|
|
networks:
|
|
|
|
- internal
|
|
|
|
labels:
|
2020-10-18 16:46:13 +00: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/
|
2020-10-18 16:46:13 +00:00
|
|
|
traefik.http.services.app-service.loadbalancer.server.port: '8000'
|
2020-09-14 20:54:25 +00:00
|
|
|
env_file:
|
|
|
|
- .env
|
2019-10-04 09:50:26 +00:00
|
|
|
worker:
|
2021-04-14 07:46:16 +00:00
|
|
|
image: ${AUTHENTIK_IMAGE:-beryju/authentik}:${AUTHENTIK_TAG:-2021.4.1}
|
2020-09-02 22:04:12 +00:00
|
|
|
command: worker
|
2019-10-04 09:50:26 +00: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 13:36:46 +00:00
|
|
|
# AUTHENTIK_ERROR_REPORTING__ENABLED: "true"
|
2020-10-03 18:36:36 +00:00
|
|
|
volumes:
|
|
|
|
- ./backups:/backups
|
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
|
2019-10-04 09:50:26 +00:00
|
|
|
static:
|
2021-04-14 07:46:16 +00:00
|
|
|
image: ${AUTHENTIK_IMAGE_STATIC:-beryju/authentik-static}:${AUTHENTIK_TAG:-2021.4.1}
|
2019-10-04 09:50:26 +00:00
|
|
|
networks:
|
|
|
|
- internal
|
|
|
|
labels:
|
2020-10-18 16:46:13 +00:00
|
|
|
traefik.enable: 'true'
|
|
|
|
traefik.docker.network: internal
|
2021-03-22 12:44:17 +00:00
|
|
|
traefik.http.routers.static-router.rule: PathPrefix(`/static`, `/if`, `/media`, `/robots.txt`, `/favicon.ico`)
|
2020-10-18 16:46:13 +00:00
|
|
|
traefik.http.routers.static-router.tls: 'true'
|
|
|
|
traefik.http.routers.static-router.service: static-service
|
2021-04-15 15:20:14 +00:00
|
|
|
traefik.http.services.static-service.loadbalancer.healthcheck.path: /
|
2021-04-07 13:36:46 +00:00
|
|
|
traefik.http.services.static-service.loadbalancer.healthcheck.interval: 30s
|
2020-10-18 16:46:13 +00:00
|
|
|
traefik.http.services.static-service.loadbalancer.server.port: '80'
|
2020-11-23 19:50:19 +00:00
|
|
|
volumes:
|
2020-12-14 18:32:48 +00:00
|
|
|
- ./media:/usr/share/nginx/html/media
|
2019-10-04 09:50:26 +00:00
|
|
|
traefik:
|
2020-10-18 16:46:13 +00:00
|
|
|
image: traefik:2.3
|
|
|
|
command:
|
2020-10-26 16:57:09 +00:00
|
|
|
- "--log.format=json"
|
2020-10-18 16:46:13 +00:00
|
|
|
- "--api.insecure=true"
|
|
|
|
- "--providers.docker=true"
|
|
|
|
- "--providers.docker.exposedbydefault=false"
|
|
|
|
- "--entrypoints.http.address=:80"
|
|
|
|
- "--entrypoints.https.address=:443"
|
2019-10-04 09:50:26 +00:00
|
|
|
volumes:
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
|
|
|
ports:
|
|
|
|
- "0.0.0.0:443:443"
|
2020-06-16 19:34:48 +00:00
|
|
|
- "127.0.0.1:8080:8080"
|
2019-10-04 09:50:26 +00:00
|
|
|
networks:
|
|
|
|
- internal
|
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
|
2019-10-04 09:50:26 +00:00
|
|
|
|
|
|
|
networks:
|
|
|
|
internal: {}
|