-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcompose.yml
More file actions
83 lines (77 loc) · 2.03 KB
/
Copy pathcompose.yml
File metadata and controls
83 lines (77 loc) · 2.03 KB
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
services:
database:
environment:
POSTGRES_DB: postgres
POSTGRES_PASSWORD: super-secret
POSTGRES_USER: postgres
healthcheck:
interval: 30s
retries: 5
start_period: 20s
test:
- CMD-SHELL
- pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}
timeout: 5s
image: docker.io/library/postgres:16-alpine
restart: unless-stopped
volumes:
- database:/var/lib/postgresql/data
backend:
build:
context: ./backend/Backend
depends_on:
database:
condition: service_healthy
restart: unless-stopped
frontend:
build:
context: ./frontend
depends_on:
backend:
condition: service_started
ports:
- 3000:3000
restart: unless-stopped
authentik:
command: server
depends_on:
database:
condition: service_healthy
environment:
AUTHENTIK_POSTGRESQL__HOST: database
AUTHENTIK_POSTGRESQL__NAME: postgres
AUTHENTIK_POSTGRESQL__PASSWORD: super-secret
AUTHENTIK_POSTGRESQL__USER: postgres
AUTHENTIK_SECRET_KEY: elqVNl7onHtUtRpgJ/R72zayVRkvrqcovGuaw8915RqSZXSe+pzQvwhQSHHb8CWbiaEkja7kh9a7mLRj
image: ghcr.io/goauthentik/server:2026.2.2
ports:
- 9000:9000
- 9443:9443
restart: unless-stopped
shm_size: 512mb
volumes:
- ./data:/data
- ./custom-templates:/templates
worker:
command: worker
depends_on:
database:
condition: service_healthy
environment:
AUTHENTIK_POSTGRESQL__HOST: database
AUTHENTIK_POSTGRESQL__NAME: postgres
AUTHENTIK_POSTGRESQL__PASSWORD: super-secret
AUTHENTIK_POSTGRESQL__USER: postgres
AUTHENTIK_SECRET_KEY: elqVNl7onHtUtRpgJ/R72zayVRkvrqcovGuaw8915RqSZXSe+pzQvwhQSHHb8CWbiaEkja7kh9a7mLRj
image: ghcr.io/goauthentik/server:2026.2.2
restart: unless-stopped
shm_size: 512mb
user: root
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./data:/data
- ./certs:/certs
- ./custom-templates:/templates
volumes:
database:
driver: local