-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
152 lines (141 loc) · 3.22 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
152 lines (141 loc) · 3.22 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
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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
services:
# Infrastructure
postgres:
image: postgres-pg-partman:latest
build:
context: ./postgres
volumes:
- db_data:/var/lib/postgresql/data
environment:
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: "postgres"
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 10
redis:
image: redis:6.2.21
volumes:
- redis_data:/data
ports:
- "6379:6379"
minio:
image: quay.io/minio/minio:RELEASE.2025-09-07T16-13-09Z
command:
- "minio"
- "server"
- "/data"
- "--console-address"
- ":9001"
volumes:
- minio_data:/data
ports:
- "9000:9000"
- "9001:9001"
environment:
MINIO_ROOT_USER: "minio"
MINIO_ROOT_PASSWORD: "secretpassword"
healthcheck:
test: ["CMD", "mc", "ready", "local"]
interval: 5s
timeout: 5s
retries: 10
nginx:
image: nginx:stable
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
ports:
- "8010:8010"
- "3100:3100"
# Init
init-minio:
image: quay.io/minio/minio:RELEASE.2025-09-07T16-13-09Z
depends_on:
minio:
condition: service_healthy
entrypoint: ["/bin/sh", "-c"]
command:
- |
mc mb --ignore-existing local/images &&
mc mb --ignore-existing local/userexport
environment:
MC_HOST_local: "http://minio:secretpassword@minio:9000"
init-migrate:
image: quay.io/theauthgear/authgear-server:2026-06-11.0
env_file:
- ./env
depends_on:
postgres:
condition: service_healthy
entrypoint: ["/bin/sh", "-c"]
command:
- |
authgear database migrate up &&
authgear audit database migrate up &&
authgear images database migrate up &&
authgear search database migrate up
init-migrate-portal:
image: quay.io/theauthgear/authgear-portal:2026-06-11.0
env_file:
- ./env
depends_on:
postgres:
condition: service_healthy
entrypoint: ["/bin/sh", "-c"]
command:
- |
authgear-portal database migrate up
# Application
authgear:
image: quay.io/theauthgear/authgear-server:2026-06-11.0
volumes:
- ./var:/app
env_file:
- ./env
depends_on:
init-migrate:
condition: service_completed_successfully
init-minio:
condition: service_completed_successfully
ports:
- "3000:3000"
- "3001:3001"
- "3002:3002"
authgear-images:
image: quay.io/theauthgear/authgear-server:2026-06-11.0
volumes:
- ./var:/app
env_file:
- ./env
depends_on:
init-migrate:
condition: service_completed_successfully
init-minio:
condition: service_completed_successfully
ports:
- "3004:3004"
authgear-portal:
image: quay.io/theauthgear/authgear-portal:2026-06-11.0
volumes:
- ./var:/app
env_file:
- ./env
depends_on:
init-migrate-portal:
condition: service_completed_successfully
ports:
- "3003:3003"
authgear-deno:
image: quay.io/theauthgear/authgear-deno:git-27a7ae9a2b70
ports:
- "8090:8090"
volumes:
redis_data:
driver: local
db_data:
driver: local
minio_data:
driver: local