Skip to content

Commit f4c4524

Browse files
Adding OpenSearch 2.5.0 support (#167)
Co-authored-by: Mind.R <[email protected]>
1 parent 3d6963f commit f4c4524

File tree

3 files changed

+102
-11
lines changed

3 files changed

+102
-11
lines changed

.env

+1
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ MYSQL_VERSION=8
55
POSTGRESQL_VERSION=13
66
TEMPORAL_VERSION=1.20.2
77
TEMPORAL_UI_VERSION=2.13.3
8+
OPENSEARCH_VERSION=2.5.0

README.md

+12-11
Original file line numberDiff line numberDiff line change
@@ -60,17 +60,18 @@ docker-compose -f docker-compose-mysql-es.yml up
6060

6161
Here is a list of available files and the dependencies they use.
6262

63-
| File | Description |
64-
|------------------------------------| -------------------------------------- |
65-
| docker-compose.yml | PostgreSQL and Elasticsearch (default) |
66-
| docker-compose-tls.yml | PostgreSQL and Elasticsearch with TLS |
67-
| docker-compose-postgres.yml | PostgreSQL |
68-
| docker-compose-cass.yml | Cassandra |
69-
| docker-compose-cass-es.yml | Cassandra and Elasticsearch |
70-
| docker-compose-mysql.yml | MySQL |
71-
| docker-compose-mysql-es.yml | MySQL and Elasticsearch |
72-
| docker-compose-cockroach.yml | CockroachDB |
73-
| docker-compose-cockroach-es.yml | CockroachDB and Elasticsearch |
63+
| File | Description |
64+
|----------------------------------------| -------------------------------------- |
65+
| docker-compose.yml | PostgreSQL and Elasticsearch (default) |
66+
| docker-compose-tls.yml | PostgreSQL and Elasticsearch with TLS |
67+
| docker-compose-postgres.yml | PostgreSQL |
68+
| docker-compose-cass.yml | Cassandra |
69+
| docker-compose-cass-es.yml | Cassandra and Elasticsearch |
70+
| docker-compose-mysql.yml | MySQL |
71+
| docker-compose-mysql-es.yml | MySQL and Elasticsearch |
72+
| docker-compose-cockroach.yml | CockroachDB |
73+
| docker-compose-cockroach-es.yml | CockroachDB and Elasticsearch |
74+
| docker-compose-postgres-opensearch.yml | PostgreSQL and OpenSearch |
7475

7576
### Using the web interface
7677

+89
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
version: "3.5"
2+
services:
3+
opensearch:
4+
container_name: temporal-opensearch
5+
environment:
6+
- discovery.type=single-node
7+
- OPENSEARCH_JAVA_OPTS=-Xms256m -Xmx256m
8+
- cluster.routing.allocation.disk.threshold_enabled=true
9+
- cluster.routing.allocation.disk.watermark.low=512mb
10+
- cluster.routing.allocation.disk.watermark.high=256mb
11+
- cluster.routing.allocation.disk.watermark.flood_stage=128mb
12+
- plugins.security.disabled=true
13+
image: opensearchproject/opensearch:${OPENSEARCH_VERSION}
14+
ulimits:
15+
# memlock:
16+
# soft: -1 # Set memlock to unlimited (no soft or hard limit)
17+
# hard: -1
18+
nofile:
19+
soft: 65536 # Maximum number of open files for the opensearch user - set to at least 65536
20+
hard: 65536
21+
networks:
22+
- temporal-network
23+
expose:
24+
- 9200
25+
volumes:
26+
- /usr/share/opensearch/data
27+
postgresql:
28+
container_name: temporal-postgresql
29+
environment:
30+
POSTGRES_PASSWORD: temporal
31+
POSTGRES_USER: temporal
32+
image: postgres:${POSTGRESQL_VERSION}
33+
networks:
34+
- temporal-network
35+
expose:
36+
- 5432
37+
volumes:
38+
- /var/lib/postgresql/data
39+
temporal:
40+
container_name: temporal
41+
depends_on:
42+
- postgresql
43+
- opensearch
44+
environment:
45+
- DB=postgresql
46+
- DB_PORT=5432
47+
- POSTGRES_USER=temporal
48+
- POSTGRES_PWD=temporal
49+
- POSTGRES_SEEDS=postgresql
50+
- DYNAMIC_CONFIG_FILE_PATH=config/dynamicconfig/development-sql.yaml
51+
- ENABLE_ES=true
52+
- ES_SEEDS=opensearch
53+
- ES_VERSION=v7
54+
image: temporalio/auto-setup:${TEMPORAL_VERSION}
55+
networks:
56+
- temporal-network
57+
ports:
58+
- 7233:7233
59+
labels:
60+
kompose.volume.type: configMap
61+
volumes:
62+
- ./dynamicconfig:/etc/temporal/config/dynamicconfig
63+
temporal-admin-tools:
64+
container_name: temporal-admin-tools
65+
depends_on:
66+
- temporal
67+
environment:
68+
- TEMPORAL_CLI_ADDRESS=temporal:7233
69+
image: temporalio/admin-tools:${TEMPORAL_VERSION}
70+
networks:
71+
- temporal-network
72+
stdin_open: true
73+
tty: true
74+
temporal-ui:
75+
container_name: temporal-ui
76+
depends_on:
77+
- temporal
78+
environment:
79+
- TEMPORAL_ADDRESS=temporal:7233
80+
- TEMPORAL_CORS_ORIGINS=http://localhost:3000
81+
image: temporalio/ui:${TEMPORAL_UI_VERSION}
82+
networks:
83+
- temporal-network
84+
ports:
85+
- 8080:8080
86+
networks:
87+
temporal-network:
88+
driver: bridge
89+
name: temporal-network

0 commit comments

Comments
 (0)