-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
167 lines (158 loc) · 4.39 KB
/
compose.yml
File metadata and controls
167 lines (158 loc) · 4.39 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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
services:
postgres:
image: docker.io/postgres:16
container_name: emumet-postgres
environment:
POSTGRES_PASSWORD: develop
POSTGRES_USER: postgres
ports:
- "5432:5432"
volumes:
- type: volume
source: postgres-data
target: /var/lib/postgresql/data
- type: bind
source: ./docker-entrypoint-initdb.d
target: /docker-entrypoint-initdb.d
bind:
selinux: z
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
redis:
image: docker.io/redis:7
container_name: emumet-redis
ports:
- "6379:6379"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 5s
retries: 5
kratos-migrate:
image: docker.io/oryd/kratos:v1.3.1
container_name: emumet-kratos-migrate
environment:
DSN: postgres://postgres:develop@postgres:5432/kratos?sslmode=disable
volumes:
- type: bind
source: ./ory/kratos
target: /etc/config/kratos
bind:
selinux: z
command: migrate sql -e --yes
depends_on:
postgres:
condition: service_healthy
kratos:
image: docker.io/oryd/kratos:v1.3.1
container_name: emumet-kratos
environment:
DSN: postgres://postgres:develop@postgres:5432/kratos?sslmode=disable
volumes:
- type: bind
source: ./ory/kratos
target: /etc/config/kratos
bind:
selinux: z
command: serve -c /etc/config/kratos/kratos.yml --dev --watch-courier
ports:
- "4433:4433"
- "4434:4434"
depends_on:
kratos-migrate:
condition: service_completed_successfully
healthcheck:
test: ["CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost:4433/health/alive || exit 1"]
interval: 10s
timeout: 5s
retries: 5
kratos-import:
image: docker.io/oryd/kratos:v1.3.1
container_name: emumet-kratos-import
environment:
DSN: postgres://postgres:develop@postgres:5432/kratos?sslmode=disable
volumes:
- type: bind
source: ./ory/kratos
target: /etc/config/kratos
bind:
selinux: z
command: import identities /etc/config/kratos/seed-users.json -e http://kratos:4434
depends_on:
kratos:
condition: service_healthy
hydra-migrate:
image: docker.io/oryd/hydra:v2.3.0
container_name: emumet-hydra-migrate
environment:
DSN: postgres://postgres:develop@postgres:5432/hydra?sslmode=disable
command: migrate sql -e --yes
depends_on:
postgres:
condition: service_healthy
hydra:
image: docker.io/oryd/hydra:v2.3.0
container_name: emumet-hydra
environment:
DSN: postgres://postgres:develop@postgres:5432/hydra?sslmode=disable
volumes:
- type: bind
source: ./ory/hydra
target: /etc/config/hydra
bind:
selinux: z
command: serve all -c /etc/config/hydra/hydra.yml --dev
ports:
- "4444:4444"
- "4445:4445"
depends_on:
hydra-migrate:
condition: service_completed_successfully
healthcheck:
test: ["CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost:4444/health/alive || exit 1"]
interval: 10s
timeout: 5s
retries: 5
keto-migrate:
image: docker.io/oryd/keto:v0.12.0
container_name: emumet-keto-migrate
environment:
DSN: postgres://postgres:develop@postgres:5432/keto?sslmode=disable
volumes:
- type: bind
source: ./ory/keto
target: /etc/config/keto
bind:
selinux: z
command: migrate up -y -c /etc/config/keto/keto.yml
depends_on:
postgres:
condition: service_healthy
keto:
image: docker.io/oryd/keto:v0.12.0
container_name: emumet-keto
environment:
DSN: postgres://postgres:develop@postgres:5432/keto?sslmode=disable
volumes:
- type: bind
source: ./ory/keto
target: /etc/config/keto
bind:
selinux: z
command: serve -c /etc/config/keto/keto.yml
ports:
- "4466:4466"
- "4467:4467"
depends_on:
keto-migrate:
condition: service_completed_successfully
healthcheck:
test: ["CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost:4466/health/alive || exit 1"]
interval: 10s
timeout: 5s
retries: 5
volumes:
postgres-data: