This repository has been archived by the owner on Aug 15, 2021. It is now read-only.
/
compose.yaml
119 lines (109 loc) · 3.32 KB
/
compose.yaml
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
services:
#########################################################################################
# The workflow service. It provides the API to start and query the "pr check" workflow,
# the API to query status, and the background worker to orchestrate the work.
#########################################################################################
workflow:
container_name: workflow
image: fun-with-temporal/workflow
build: ./workflow
depends_on:
- temporal
- leaf
networks:
- default
- temporal-network
ports:
- 6007:6007
redis:
container_name: redis
image: redis:6.2.2
command: ["redis-server", "--appendonly", "yes"]
networks:
- default
ports:
- 6379:6379
volumes:
- redis-data:/data
#########################################################################################
# A leaf service that does work.
#########################################################################################
leaf:
container_name: leaf
image: fun-with-temporal/leaf
build: ./leaf
ports:
- 6008:6008
#########################################################################################
# Temporal itself, and the web interface
#########################################################################################
temporal:
container_name: temporal
depends_on:
- cassandra
- elasticsearch
environment:
- CASSANDRA_SEEDS=cassandra
- DYNAMIC_CONFIG_FILE_PATH=config/dynamicconfig/development_es.yaml
- ENABLE_ES=true
- ES_SEEDS=elasticsearch
- ES_VERSION=v7
image: temporalio/auto-setup:1.8.1
networks:
- temporal-network
ports:
- 7233:7233
volumes:
- ./dynamicconfig:/etc/temporal/config/dynamicconfig
temporal-web:
container_name: temporal-web
depends_on:
- temporal
environment:
- TEMPORAL_GRPC_ENDPOINT=temporal:7233
- TEMPORAL_PERMIT_WRITE_API=true
image: temporalio/web:1.8.1
networks:
- temporal-network
ports:
- 8088:8088
#########################################################################################
# The temporal CLI in a handy container.
#########################################################################################
temporal-admin-tools:
container_name: temporal-admin-tools
depends_on:
- temporal
environment:
- TEMPORAL_CLI_ADDRESS=temporal:7233
image: temporalio/admin-tools:1.8.1
networks:
- temporal-network
stdin_open: true
tty: true
#########################################################################################
# Dependencies for Temporal, from temporal's example docker-compose-cas-es.yml
#########################################################################################
cassandra:
container_name: temporal-cassandra
image: cassandra:3.11.9
networks:
- temporal-network
ports:
- 9042:9042
elasticsearch:
container_name: temporal-elasticsearch
environment:
- discovery.type=single-node
- ES_JAVA_OPTS=-Xms100m -Xmx100m
image: elasticsearch:7.10.1
networks:
- temporal-network
ports:
- 9200:9200
networks:
temporal-network:
driver: bridge
name: temporal-network
volumes:
redis-data: