forked from temporalio/temporal
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
109 lines (102 loc) · 3.58 KB
/
docker-compose.yml
File metadata and controls
109 lines (102 loc) · 3.58 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
x-healthcheck-defaults: &healthcheck-defaults
interval: 3s
timeout: 3s
retries: 30
services:
cassandra:
image: cassandra:3.11
ports:
- "9042:9042"
environment:
CASSANDRA_LISTEN_ADDRESS: 127.0.0.1
MAX_HEAP_SIZE: "2G"
HEAP_NEWSIZE: "200M"
# Increase native transport threads for handling more concurrent connections
JVM_EXTRA_OPTS: "-Dcassandra.native_transport_max_threads=512"
healthcheck:
!!merge <<: *healthcheck-defaults
test: ["CMD-SHELL", "cqlsh -e 'describe cluster'"]
mysql:
image: mysql:8.0.29-oracle
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: root
command: --max-connections=500
volumes:
- ./mysql-init:/docker-entrypoint-initdb.d
healthcheck:
!!merge <<: *healthcheck-defaults
test: ["CMD-SHELL", "mysqladmin ping -h localhost -uroot -proot"]
postgresql:
image: postgres:13.5
ports:
- "5432:5432"
environment:
POSTGRES_USER: temporal
POSTGRES_PASSWORD: temporal
command: postgres -c max_connections=500
volumes:
- ./postgresql-init:/docker-entrypoint-initdb.d
healthcheck:
!!merge <<: *healthcheck-defaults
test: ["CMD-SHELL", "pg_isready -U temporal"]
elasticsearch:
image: elasticsearch:7.10.1
ports:
- "9200:9200"
environment:
- cluster.routing.allocation.disk.threshold_enabled=true
- cluster.routing.allocation.disk.watermark.low=512mb
- cluster.routing.allocation.disk.watermark.high=256mb
- cluster.routing.allocation.disk.watermark.flood_stage=128mb
- discovery.type=single-node
- ES_JAVA_OPTS=-Xms1g -Xmx1g
healthcheck:
!!merge <<: *healthcheck-defaults
test: ["CMD-SHELL", "curl -sf http://localhost:9200/_cluster/health || exit 1"]
elasticsearch8:
image: elasticsearch:8.5.0
ports:
- "9200:9200"
environment:
- cluster.routing.allocation.disk.threshold_enabled=true
- cluster.routing.allocation.disk.watermark.low=512mb
- cluster.routing.allocation.disk.watermark.high=256mb
- cluster.routing.allocation.disk.watermark.flood_stage=128mb
- discovery.type=single-node
- xpack.security.enabled=false
- ES_JAVA_OPTS=-Xms1g -Xmx1g
healthcheck:
!!merge <<: *healthcheck-defaults
test: ["CMD-SHELL", "curl -sf http://localhost:9200/_cluster/health || exit 1"]
opensearch2:
image: opensearchproject/opensearch:2
ports:
- "9200:9200"
environment:
- cluster.routing.allocation.disk.threshold_enabled=true
- cluster.routing.allocation.disk.watermark.low=512mb
- cluster.routing.allocation.disk.watermark.high=256mb
- cluster.routing.allocation.disk.watermark.flood_stage=128mb
- discovery.type=single-node
- DISABLE_SECURITY_PLUGIN=true
- OPENSEARCH_JAVA_OPTS=-Xms1g -Xmx1g
healthcheck:
!!merge <<: *healthcheck-defaults
test: ["CMD-SHELL", "curl -sf http://localhost:9200/_cluster/health || exit 1"]
opensearch3:
image: opensearchproject/opensearch:3
ports:
- "9200:9200"
environment:
- cluster.routing.allocation.disk.threshold_enabled=true
- cluster.routing.allocation.disk.watermark.low=512mb
- cluster.routing.allocation.disk.watermark.high=256mb
- cluster.routing.allocation.disk.watermark.flood_stage=128mb
- discovery.type=single-node
- DISABLE_SECURITY_PLUGIN=true
- OPENSEARCH_JAVA_OPTS=-Xms1g -Xmx1g
healthcheck:
!!merge <<: *healthcheck-defaults
test: ["CMD-SHELL", "curl -sf http://localhost:9200/_cluster/health || exit 1"]