-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
70 lines (66 loc) · 1.67 KB
/
docker-compose.yml
File metadata and controls
70 lines (66 loc) · 1.67 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
services:
postgres:
container_name: torin-postgres
image: postgres:17
environment:
POSTGRES_USER: ${POSTGRES_USER:-torin}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:?POSTGRES_PASSWORD is required}
POSTGRES_DB: ${POSTGRES_DB:-torin}
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- ${POSTGRES_PORT:-5432}:5432
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U ${POSTGRES_USER:-torin}']
interval: 10s
timeout: 5s
retries: 5
restart: always
shm_size: 128mb
temporal-postgres:
container_name: torin-temporal-postgres
image: postgres:17
environment:
POSTGRES_USER: temporal
POSTGRES_PASSWORD: temporal
POSTGRES_DB: temporal
volumes:
- temporal_postgres_data:/var/lib/postgresql/data
ports:
- 5433:5432
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U temporal']
interval: 10s
timeout: 5s
retries: 5
restart: always
shm_size: 128mb
temporal:
container_name: torin-temporal
image: temporalio/auto-setup:latest
depends_on:
temporal-postgres:
condition: service_healthy
environment:
- DB=postgres12
- DB_PORT=5432
- POSTGRES_USER=temporal
- POSTGRES_PWD=temporal
- POSTGRES_SEEDS=temporal-postgres
ports:
- 7233:7233
restart: always
temporal-ui:
container_name: torin-temporal-ui
image: temporalio/ui:latest
depends_on:
- temporal
environment:
- TEMPORAL_ADDRESS=temporal:7233
- TEMPORAL_CORS_ORIGINS=http://localhost:3000
ports:
- 8233:8080
restart: always
volumes:
postgres_data:
temporal_postgres_data: