-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.dev.yml
76 lines (70 loc) · 1.62 KB
/
docker-compose.dev.yml
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
services:
worker:
build:
context: .
target: prod
env_file:
- .env
depends_on:
temporal:
condition: service_healthy
redis:
condition: service_healthy
networks:
- agent-temporal-network
temporal:
image: temporalio/auto-setup:1.25.2.0
depends_on:
temporal-postgresql:
condition: service_healthy
environment:
- DB=postgres12
- DB_PORT=5432
- POSTGRES_USER=temporal
- POSTGRES_PWD=temporal
- POSTGRES_SEEDS=temporal-postgresql
networks:
- agent-temporal-network
healthcheck:
test: ["CMD", "tctl", "--address", "temporal:7233", "workflow", "list"]
interval: 1s
timeout: 5s
retries: 30
ports:
- 7233:7233
temporal-ui:
image: temporalio/ui:2.31.2
environment:
- TEMPORAL_ADDRESS=temporal:7233
- TEMPORAL_CORS_ORIGINS=http://localhost:8080
ports:
- 8080:8080
networks:
- agent-temporal-network
temporal-postgresql:
image: postgres:12.21
environment:
POSTGRES_PASSWORD: temporal
POSTGRES_USER: temporal
healthcheck:
test: ["CMD-SHELL", "pg_isready -U temporal"]
interval: 10s
timeout: 5s
retries: 5
networks:
- agent-temporal-network
redis:
image: redis:7.0.11
restart: unless-stopped
healthcheck:
test: [ "CMD", "redis-cli", "--raw", "incr", "ping" ]
interval: 10s
timeout: 10s
retries: 2
start_period: 10s
networks:
- agent-temporal-network
networks:
agent-temporal-network:
driver: bridge
name: agent-temporal-network