-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
121 lines (117 loc) · 4.43 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
name: authentik
services:
server:
image: 'ghcr.io/goauthentik/server:latest'
container_name: authentik-server
hostname: ${HOSTNAME:-auth}
restart: always
pull_policy: always
command: server
environment:
- AUTHENTIK_BOOTSTRAP_EMAIL="administrator@${BASE_DOMAIN_NAME:-authentik.local}"
- AUTHENTIK_BOOTSTRAP_PASSWORD="${APP_ADMIN_PASS:-SBoFZ5jaMPf2ncVD4o425x8MbQS5zQzQ}"
- AUTHENTIK_BOOTSTRAP_TOKEN="${APP_API_TOKEN:-5tHmfk9hmYhH2r0LpnLIQyPrG1zS90m2gghTopFF55s=}"
- AUTHENTIK_REDIS__HOST=authentik-redis
- AUTHENTIK_POSTGRESQL__NAME=authentik
- AUTHENTIK_POSTGRESQL__HOST=authentik-db
- AUTHENTIK_POSTGRESQL__USER=postgres
- AUTHENTIK_POSTGRESQL__PASSWORD=${DB_ADMIN_PASS:-ZStaZrbT23a0TONiYQELiBErx2ZSV_B0}
- AUTHENTIK_SECRET_KEY=${APP_SECRET_KEY:-cC3JPCcwnj+MlCinOhnL6BszRT9IFYsLrDW+Z5ylhkM=}
- AUTHENTIK_EMAIL__HOST=${EMAIL_SERVER_HOST:-172.17.0.1}
- AUTHENTIK_EMAIL__PORT=${EMAIL_SERVER_PORT:-25}
- AUTHENTIK_EMAIL__USE_TLS=${EMAIL_SERVER_USE_TLS:-true}
- AUTHENTIK_EMAIL__USE_SSL=${EMAIL_SERVER_USE_SSL:-false}
- AUTHENTIK_EMAIL__TIMEOUT=${EMAIL_SERVER_TIMEOUT:-10}
- AUTHENTIK_EMAIL__FROM=${EMAIL_SERVER_FROM_NAME:-Authentik}
- AUTHENTIK_ERROR_REPORTING__ENABLED=${AUTHENTIK_ERROR_REPORTING:-true}
ports:
- '172.17.0.1:62000:9000'
- '172.17.0.1:62001:9443'
volumes:
- /var/lib/srv/$USER/docker/authentik/server/latest/rootfs/data/authentik/media:/media
- /var/lib/srv/$USER/docker/authentik/server/latest/rootfs/data/authentik/templates:/templates
extra_hosts:
- 'localhost:172.17.0.1'
- 'host.docker.internal:host-gateway'
depends_on:
- postgres
- redis
networks:
- authentik
worker:
image: 'ghcr.io/goauthentik/server:latest'
container_name: authentik-worker
hostname: authentik-worker
restart: always
pull_policy: always
command: worker
user: root
environment:
- AUTHENTIK_REDIS__HOST=authentik-redis
- AUTHENTIK_POSTGRESQL__HOST=authentik-db
- AUTHENTIK_POSTGRESQL__NAME=authentik
- AUTHENTIK_POSTGRESQL__USER=postgres
- AUTHENTIK_POSTGRESQL__PASSWORD=${DB_ADMIN_PASS:-ZStaZrbT23a0TONiYQELiBErx2ZSV_B0}
- AUTHENTIK_SECRET_KEY=${APP_SECRET_KEY:-cC3JPCcwnj+MlCinOhnL6BszRT9IFYsLrDW+Z5ylhkM=}
- AUTHENTIK_EMAIL__HOST=${EMAIL_SERVER_HOST:-172.17.0.1}
- AUTHENTIK_EMAIL__PORT=${EMAIL_SERVER_PORT:-25}
- AUTHENTIK_EMAIL__USE_TLS=${EMAIL_SERVER_USE_TLS:-true}
- AUTHENTIK_EMAIL__USE_SSL=${EMAIL_SERVER_USE_SSL:-false}
- AUTHENTIK_EMAIL__TIMEOUT=${EMAIL_SERVER_TIMEOUT:-10}
- AUTHENTIK_EMAIL__FROM=${EMAIL_SERVER_FROM_NAME:-Authentik}
- AUTHENTIK_ERROR_REPORTING__ENABLED=${AUTHENTIK_ERROR_REPORTING:-true}
volumes:
- /var/lib/srv/$USER/docker/authentik/server/latest/rootfs/config/certs:/certs
- /var/lib/srv/$USER/docker/authentik/server/latest/rootfs/data/authentik/media:/media
- /var/lib/srv/$USER/docker/authentik/server/latest/rootfs/data/authentik/templates:/templates
extra_hosts:
- 'localhost:172.17.0.1'
- 'host.docker.internal:host-gateway'
depends_on:
- postgres
- redis
networks:
- authentik
postgres:
image: 'docker.io/library/postgres:16-alpine'
container_name: authentik-db
hostname: authentik-db
restart: always
pull_policy: always
environment:
- POSTGRES_DB=authentik
- DB_ADMIN_PASS=${DB_ADMIN_PASS:-ZStaZrbT23a0TONiYQELiBErx2ZSV_B0}
- DB_ADMIN_NAME=postgres
- POSTGRES_HOST_AUTH_METHOD=trust
- TZ=${TZ:-America/New_York}
volumes:
- /var/lib/srv/$USER/docker/authentik/server/latest/rootfs/data/db/postgres:/var/lib/postgresql/data
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U "postgres"']
start_period: 30s
interval: 10s
timeout: 10s
retries: 5
networks:
- authentik
redis:
image: 'docker.io/library/redis:alpine'
container_name: authentik-redis
hostname: authentik-redis
restart: always
pull_policy: always
command: --save 60 1 --loglevel warning
volumes:
- /var/lib/srv/$USER/docker/authentik/server/latest/rootfs/data/db/redis:/data
healthcheck:
test: ['CMD-SHELL', 'redis-cli ping | grep PONG']
start_period: 20s
interval: 30s
retries: 5
timeout: 3s
networks:
- authentik
networks:
authentik:
name: authentik
external: false