-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
83 lines (78 loc) · 1.97 KB
/
Copy pathdocker-compose.yml
File metadata and controls
83 lines (78 loc) · 1.97 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:
peerdb-postgres:
image: postgres:18
ports:
- "5432:5432"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: peerdb
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
temporal:
image: temporalio/auto-setup:latest
ports:
- "7233:7233"
environment:
DB: postgres12_pgx
DB_PORT: 5432
POSTGRES_USER: postgres
POSTGRES_PWD: postgres
POSTGRES_SEEDS: peerdb-postgres
depends_on:
peerdb-postgres:
condition: service_healthy
healthcheck:
test: ["CMD", "temporal", "operator", "cluster", "health", "--address", "temporal:7233"]
interval: 5s
timeout: 5s
retries: 24
temporal-ui:
image: temporalio/ui:latest
ports:
- "8233:8080"
environment:
TEMPORAL_ADDRESS: temporal:7233
depends_on:
- temporal
api:
profiles: ["api"]
build:
context: .
command: ["-mode=api"]
ports:
- "8080:8080"
volumes:
- ./config.yaml:/app/config.yaml:ro
environment:
POSTGRES_URL: postgres://postgres:postgres@peerdb-postgres:5432/peerdb?sslmode=disable
TEMPORAL_HOST_PORT: temporal:7233
ENCRYPTION_KEY: "0123456789abcdef0123456789abcdef"
depends_on:
peerdb-postgres:
condition: service_healthy
temporal:
condition: service_healthy
worker:
profiles: ["worker"]
build:
context: .
command: ["-mode=worker"]
volumes:
- ./config.yaml:/app/config.yaml:ro
environment:
POSTGRES_URL: postgres://postgres:postgres@peerdb-postgres:5432/peerdb?sslmode=disable
TEMPORAL_HOST_PORT: temporal:7233
ENCRYPTION_KEY: "0123456789abcdef0123456789abcdef"
depends_on:
peerdb-postgres:
condition: service_healthy
temporal:
condition: service_healthy
volumes:
pgdata: