-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
94 lines (88 loc) · 2.77 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
# Do not forget to update other docker-compose files, especially in project-configuration repository.
version: '3.8'
services:
backend:
build:
context: .
dockerfile: Dockerfile
image: mildblue/txmatching
env_file:
- .env.pub
ports:
- 8080:8080
depends_on:
- db
volumes:
- /var/log/txmatching:/var/logs/mildblue/txm
extra_hosts:
- "host.docker.internal:host-gateway"
db:
image: postgres:13
env_file:
- .env.pub
ports:
- 5432:5432
volumes:
- txmatching-postgres:/var/lib/postgresql/data/
authentik-db:
image: postgres:12-alpine
restart: unless-stopped
volumes:
- database:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=${PG_PASS:-Your_password123}
- POSTGRES_USER=${PG_USER:-admin}
- POSTGRES_DB=${PG_DB:-authentik}
authentik-redis:
image: redis:alpine
restart: unless-stopped
authentik-server:
image: ghcr.io/goauthentik/server:2022.4.1
restart: unless-stopped
command: server
environment:
AUTHENTIK_SECRET_KEY: DdP75bZYo8eOfHyCUL2bL5dFX5O5WQy6p5afJrASFpk6hlWW3c
AK_ADMIN_TOKEN: LHDXJc2o55Zed6YP5Wd57CUpSLOr36AOypbhfQW5Fylb8kaFfW
AUTHENTIK_REDIS__HOST: authentik-redis
AUTHENTIK_POSTGRESQL__HOST: authentik-db
AUTHENTIK_POSTGRESQL__USER: ${PG_USER:-admin}
AUTHENTIK_POSTGRESQL__NAME: ${PG_DB:-authentik}
AUTHENTIK_POSTGRESQL__PASSWORD: ${PG_PASS:-Your_password123}
# AUTHENTIK_ERROR_REPORTING__ENABLED: "true"
# WORKERS: 2
volumes:
- ./media:/media
- ./custom-templates:/templates
ports:
- "9000:9000"
- "9443:9443"
depends_on:
- authentik-redis
- authentik-db
authentik-worker:
image: ghcr.io/goauthentik/server:2022.4.1
restart: unless-stopped
command: worker
environment:
AUTHENTIK_SECRET_KEY: DdP75bZYo8eOfHyCUL2bL5dFX5O5WQy6p5afJrASFpk6hlWW3c
AK_ADMIN_TOKEN: LHDXJc2o55Zed6YP5Wd57CUpSLOr36AOypbhfQW5Fylb8kaFfW
AUTHENTIK_REDIS__HOST: authentik-redis
AUTHENTIK_POSTGRESQL__HOST: authentik-db
AUTHENTIK_POSTGRESQL__USER: ${PG_USER:-admin}
AUTHENTIK_POSTGRESQL__NAME: ${PG_DB:-authentik}
AUTHENTIK_POSTGRESQL__PASSWORD: ${PG_PASS:-Your_password123}
# AUTHENTIK_ERROR_REPORTING__ENABLED: "true"
# user: root => This is optional, and can be removed. If you remove this, the following will happen
# - The permissions for the /media folders aren't fixed, so make sure they are 1000:1000
# - The docker socket can't be accessed anymore
user: root
volumes:
- ./certs:/certs
- /var/run/docker.sock:/var/run/docker.sock
depends_on:
- authentik-redis
- authentik-db
volumes:
txmatching-postgres:
database:
driver: local