-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcompose.yaml
51 lines (47 loc) · 1.12 KB
/
compose.yaml
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
services:
db:
image: docker.io/postgres:16
environment:
POSTGRES_USER: matverseny
POSTGRES_PASSWORD: secret
POSTGRES_DB: matverseny
ports:
- 5432:5432
nats:
image: docker.io/nats
ports:
- 4222:4222
- 6222:6222
- 8222:8222
iam:
pull_policy: always
image: ghcr.io/verseghy/iam:v3
environment:
DATABASE_URL: postgres://iam:secret@iam-database:5432/iam
ports:
- 3001:3001
depends_on:
iam-migration:
condition: service_completed_successfully
iam-database:
image: docker.io/postgres:16
environment:
POSTGRES_USER: iam
POSTGRES_PASSWORD: secret
POSTGRES_DB: iam
ports:
- 5433:5432
# healthcheck:
# test: ["CMD", "pg_isready", "-U", "iam"]
# interval: 10s
# timeout: 45s
# retries: 10
iam-migration:
pull_policy: always
image: ghcr.io/verseghy/iam-migration:v3
environment:
DATABASE_URL: postgres://iam:secret@iam-database:5432/iam
command: ["./iam-migration", "--verbose"]
# depends_on:
# iam-database:
# condition: service_healthy