Repository navigation
Expand file tree
/
Copy pathdocker-compose.temporal.yml
More file actions
137 lines (100 loc) · 3.03 KB
/
Copy pathdocker-compose.temporal.yml
File metadata and controls
137 lines (100 loc) · 3.03 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
# ============================================
# Jet Admin — Temporal Dev Stack (standalone)
# Strangler Fig Phase 1
# ============================================
# NOTE: The Temporal stack is now ALSO merged into the main
# `docker-compose.yml` (services: temporal-postgres, temporal,
# temporal-ui, temporal-worker) so a single
# docker compose up -d --build
# starts app + Temporal together.
#
# This file is kept for standalone local dev (Temporal only):
# npm run temporal:up # docker compose -f docker-compose.temporal.yml up -d
# Do not run BOTH files at once — they share network name
# `jet-admin-network` and host ports 7233/8088/5433.
services:
temporal-postgres:
image: postgres:15-alpine
container_name: jet-temporal-postgres
environment:
POSTGRES_USER: temporal
POSTGRES_PASSWORD: temporal
POSTGRES_DB: temporal
volumes:
- temporal_postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U temporal -d temporal"]
interval: 5s
timeout: 3s
retries: 10
networks:
- jet-network
ports:
- "5433:5432"
temporal:
image: temporalio/auto-setup:1.23
container_name: jet-temporal-server
depends_on:
temporal-postgres:
condition: service_healthy
environment:
DB: postgres12
DB_PORT: 5432
POSTGRES_USER: temporal
POSTGRES_PWD: temporal
POSTGRES_SEEDS: temporal-postgres
DBNAME: temporal
VISIBILITY_DBNAME: temporal_visibility
VISIBILITY_POSTGRES_USER: temporal
VISIBILITY_POSTGRES_PWD: temporal
VISIBILITY_POSTGRES_SEEDS: temporal-postgres
ENABLE_ES: "false"
DYNAMIC_CONFIG_FILE_PATH: config/dynamicconfig/development-sql.yaml
TEMPORAL_ADDRESS: temporal:7233
TEMPORAL_CLI_ADDRESS: temporal:7233
volumes:
- ./temporal/dynamicconfig:/etc/temporal/config/dynamicconfig
ports:
- "7233:7233"
networks:
- jet-network
healthcheck:
test: ["CMD-SHELL", "tctl --address temporal:7233 cluster health | grep SERVING"]
interval: 15s
timeout: 5s
retries: 10
start_period: 60s
temporal-admin-tools:
image: temporalio/admin-tools:1.23
container_name: jet-temporal-admin-tools
depends_on:
temporal:
condition: service_healthy
environment:
TEMPORAL_ADDRESS: temporal:7233
TEMPORAL_CLI_ADDRESS: temporal:7233
networks:
- jet-network
stdin_open: true
tty: true
temporal-ui:
# Pinned to match server 1.23 era (2.28.x). Do not use :latest with old server.
image: temporalio/ui:2.28.0
container_name: jet-temporal-ui
depends_on:
temporal:
condition: service_healthy
environment:
TEMPORAL_ADDRESS: temporal:7233
TEMPORAL_CORS_ORIGINS: http://localhost:3000
ports:
- "8088:8080"
networks:
- jet-network
volumes:
temporal_postgres_data:
name: jet-temporal-postgres-data
networks:
jet-network:
name: jet-admin-network
driver: bridge