Adding OpenSearch 2.5.0 support (#167)

Co-authored-by: Mind.R <3825716+mindaugasrukas@users.noreply.github.com>
This commit is contained in:
Javier Canillas
2023-04-25 13:23:12 -03:00
committed by GitHub
parent 3d6963f862
commit f4c4524a6c
3 changed files with 102 additions and 11 deletions

1
.env
View File

@@ -5,3 +5,4 @@ MYSQL_VERSION=8
POSTGRESQL_VERSION=13
TEMPORAL_VERSION=1.20.2
TEMPORAL_UI_VERSION=2.13.3
OPENSEARCH_VERSION=2.5.0

View File

@@ -60,17 +60,18 @@ docker-compose -f docker-compose-mysql-es.yml up
Here is a list of available files and the dependencies they use.
| File | Description |
|------------------------------------| -------------------------------------- |
| docker-compose.yml | PostgreSQL and Elasticsearch (default) |
| docker-compose-tls.yml | PostgreSQL and Elasticsearch with TLS |
| docker-compose-postgres.yml | PostgreSQL |
| docker-compose-cass.yml | Cassandra |
| docker-compose-cass-es.yml | Cassandra and Elasticsearch |
| docker-compose-mysql.yml | MySQL |
| docker-compose-mysql-es.yml | MySQL and Elasticsearch |
| docker-compose-cockroach.yml | CockroachDB |
| docker-compose-cockroach-es.yml | CockroachDB and Elasticsearch |
| File | Description |
|----------------------------------------| -------------------------------------- |
| docker-compose.yml | PostgreSQL and Elasticsearch (default) |
| docker-compose-tls.yml | PostgreSQL and Elasticsearch with TLS |
| docker-compose-postgres.yml | PostgreSQL |
| docker-compose-cass.yml | Cassandra |
| docker-compose-cass-es.yml | Cassandra and Elasticsearch |
| docker-compose-mysql.yml | MySQL |
| docker-compose-mysql-es.yml | MySQL and Elasticsearch |
| docker-compose-cockroach.yml | CockroachDB |
| docker-compose-cockroach-es.yml | CockroachDB and Elasticsearch |
| docker-compose-postgres-opensearch.yml | PostgreSQL and OpenSearch |
### Using the web interface

View File

@@ -0,0 +1,89 @@
version: "3.5"
services:
opensearch:
container_name: temporal-opensearch
environment:
- discovery.type=single-node
- OPENSEARCH_JAVA_OPTS=-Xms256m -Xmx256m
- 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
- plugins.security.disabled=true
image: opensearchproject/opensearch:${OPENSEARCH_VERSION}
ulimits:
# memlock:
# soft: -1 # Set memlock to unlimited (no soft or hard limit)
# hard: -1
nofile:
soft: 65536 # Maximum number of open files for the opensearch user - set to at least 65536
hard: 65536
networks:
- temporal-network
expose:
- 9200
volumes:
- /usr/share/opensearch/data
postgresql:
container_name: temporal-postgresql
environment:
POSTGRES_PASSWORD: temporal
POSTGRES_USER: temporal
image: postgres:${POSTGRESQL_VERSION}
networks:
- temporal-network
expose:
- 5432
volumes:
- /var/lib/postgresql/data
temporal:
container_name: temporal
depends_on:
- postgresql
- opensearch
environment:
- DB=postgresql
- DB_PORT=5432
- POSTGRES_USER=temporal
- POSTGRES_PWD=temporal
- POSTGRES_SEEDS=postgresql
- DYNAMIC_CONFIG_FILE_PATH=config/dynamicconfig/development-sql.yaml
- ENABLE_ES=true
- ES_SEEDS=opensearch
- ES_VERSION=v7
image: temporalio/auto-setup:${TEMPORAL_VERSION}
networks:
- temporal-network
ports:
- 7233:7233
labels:
kompose.volume.type: configMap
volumes:
- ./dynamicconfig:/etc/temporal/config/dynamicconfig
temporal-admin-tools:
container_name: temporal-admin-tools
depends_on:
- temporal
environment:
- TEMPORAL_CLI_ADDRESS=temporal:7233
image: temporalio/admin-tools:${TEMPORAL_VERSION}
networks:
- temporal-network
stdin_open: true
tty: true
temporal-ui:
container_name: temporal-ui
depends_on:
- temporal
environment:
- TEMPORAL_ADDRESS=temporal:7233
- TEMPORAL_CORS_ORIGINS=http://localhost:3000
image: temporalio/ui:${TEMPORAL_UI_VERSION}
networks:
- temporal-network
ports:
- 8080:8080
networks:
temporal-network:
driver: bridge
name: temporal-network