-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
155 lines (139 loc) · 3.89 KB
/
docker-compose.yml
File metadata and controls
155 lines (139 loc) · 3.89 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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
version: '3.8'
services:
postgres:
image: postgres:13
environment:
POSTGRES_USER: temporal
POSTGRES_PASSWORD: temporal
POSTGRES_DB: temporal
ports:
- "5432:5432"
volumes:
- temporal-postgres-data:/var/lib/postgresql/data
temporal:
container_name: temporal
image: temporalio/auto-setup:1.22.0
restart: always
ports:
- "7233:7233"
environment:
- DB=postgresql
- DB_PORT=5432
- POSTGRES_USER=temporal
- POSTGRES_PWD=temporal
- POSTGRES_SEEDS=postgres
- TEMPORAL_ADDRESS=temporal:7233
# - DYNAMIC_CONFIG_FILE_PATH=config/dynamicconfig/development-sql.yaml
- TEMPORAL_CLI_ADDRESS=temporal:7233
depends_on:
- postgres
# volumes:
# - ./dynamicconfig:/etc/temporal/config/dynamicconfig
# # - ./certs:/etc/temporal/certs
# - ./base.yaml
# - ./config/dynamicconfig/development.yaml
temporal-admin-tools:
container_name: temporal-admin-tools
depends_on:
- temporal
environment:
- TEMPORAL_ADDRESS=temporal:7233
- TEMPORAL_CLI_ADDRESS=temporal:7233
- BIND_ON_IP=0.0.0.0
- FRONTEND_ADDRESS=0.0.0.0:7233
- HISTORY_ADDRESS=0.0.0.0:7234
- MATCHING_ADDRESS=0.0.0.0:7235
- WORKER_ADDRESS=0.0.0.0:7239
# - TEMPORAL_CLI_ADDRESS=temporal:7233
# - TEMPORAL_ADDRESS=temporal:7233
image: temporalio/admin-tools:latest
stdin_open: true
tty: true
temporal-ui:
container_name: temporal-ui
image: temporalio/ui:latest
restart: always
ports:
- "8088:8080"
environment:
# - TEMPORAL_GRPC_ENDPOINT=temporal:7233
# - TEMPORAL_WEB_PORT=8088
- TEMPORAL_ADDRESS=temporal:7233
- TEMPORAL_CORS_ORIGINS=http://localhost:8088
depends_on:
- temporal
# volumes:
# - ./ui.yaml:/etc/temporal/config/development.yaml
# - ./certs:/etc/temporal/certs
# command: ["sh", "-c", "echo 'application/javascript js' >> /etc/mime.types && ./start-ui-server.sh"]
# Add your worker service
worker:
build: .
environment:
- TEMPORAL_ADDRESS=temporal:7233
# - NODE_ENV=development
depends_on:
- temporal
ports:
- "9464:9464"
volumes:
- ./src:/app/src # Mount source for development
- ./dist:/app/dist
restart: unless-stopped
command: ["npm", "run", "start:worker"]
client:
build: .
environment:
- TEMPORAL_ADDRESS=temporal:7233
# - NODE_ENV=development
ports:
- "3001:3001"
depends_on:
- temporal
volumes:
- ./src:/app/src # Mount source for development
- ./dist:/app/dist
restart: unless-stopped
command: ["npm", "run", "start:client"]
# command: ["npm", "run", "dev:client"]
metrics-server:
build: .
environment:
- TEMPORAL_ADDRESS=temporal:7233
# - NODE_ENV=development
ports:
- "3000:3000"
depends_on:
- temporal
volumes:
- ./src:/app/src # Mount source for development
- ./dist:/app/dist
restart: unless-stopped
command: ["npm", "run", "start"]
shard-demo:
build: .
environment:
- SERVER_HOST=metrics-server:3000
# - NODE_ENV=development
depends_on:
- temporal
volumes:
- ./src:/app/src # Mount source for development
- ./dist:/app/dist
restart: unless-stopped
command: ["npm", "run", "start:shard-demo"]
# command: ["npm", "run", "dev:shard-demo"]
prometheus:
image: prom/prometheus:latest
ports:
- "9090:9090"
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--web.console.libraries=/etc/prometheus/console_libraries'
- '--web.console.templates=/etc/prometheus/consoles'
- '--web.enable-lifecycle'
volumes:
temporal-postgres-data: