-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathdocker-compose.temporal.yml
More file actions
86 lines (81 loc) · 1.7 KB
/
Copy pathdocker-compose.temporal.yml
File metadata and controls
86 lines (81 loc) · 1.7 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
name: output-sdk
services:
redis:
image: redis:8-alpine
networks:
- main
ports:
- '6379:6379'
volumes:
- redis:/data
healthcheck:
test: ['CMD', 'redis-cli', 'ping']
interval: 2s
timeout: 2s
retries: 5
start_period: 3s
postgresql:
environment:
POSTGRES_PASSWORD: temporal
POSTGRES_USER: temporal
image: postgres:17.5
networks:
- main
expose:
- 5432
volumes:
- postgres:/var/lib/postgresql/data
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U temporal -d temporal']
interval: 2s
timeout: 2s
retries: 5
start_period: 3s
temporal:
depends_on:
postgresql:
condition: service_healthy
redis:
condition: service_healthy
environment:
- DB=postgres12
- DB_PORT=5432
- POSTGRES_USER=temporal
- POSTGRES_PWD=temporal
- POSTGRES_SEEDS=postgresql
- DEFAULT_NAMESPACE_RETENTION=720h
image: temporalio/auto-setup:latest
networks:
- main
ports:
- '7233:7233'
healthcheck:
test:
[
'CMD',
'sh',
'-c',
'tctl --address temporal:7233 cluster health 2>&1 | grep -q "temporal.api.workflowservice.v1.WorkflowService: SERVING"'
]
interval: 3s
timeout: 5s
retries: 20
start_period: 10s
temporal-ui:
depends_on:
- temporal
environment:
- TEMPORAL_ADDRESS=temporal:7233
- TEMPORAL_CORS_ORIGINS=http://localhost:3000
image: temporalio/ui:latest
networks:
- main
ports:
- '8080:8080'
volumes:
postgres:
redis:
networks:
main:
name: main
driver: bridge