Skip to content

Commit

Permalink
Convenience docker-compose file that enables one to deploy both MySQL…
Browse files Browse the repository at this point in the history
… and ElasticSearch in one box environment.
  • Loading branch information
mastermanu authored Aug 3, 2020
1 parent f4bb2df commit e5e7846
Showing 1 changed file with 63 additions and 0 deletions.
63 changes: 63 additions & 0 deletions docker/docker-compose-mysql-es.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
version: '3'
services:
mysql:
image: mysql:5.7
ports:
- "3306:3306"
environment:
- "MYSQL_ROOT_PASSWORD=root"
zookeeper:
image: wurstmeister/zookeeper:3.4.6
ports:
- "2181:2181"
kafka:
image: wurstmeister/kafka:2.12-2.1.1
depends_on:
- zookeeper
ports:
- "9092:9092"
environment:
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092
KAFKA_LISTENERS: PLAINTEXT://0.0.0.0:9092
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
temporal:
image: temporalio/server:${SERVER_TAG:-0.27.0}
ports:
- "7233:7233"
environment:
- "AUTO_SETUP=true"
- "DB=mysql"
- "MYSQL_USER=root"
- "MYSQL_PWD=root"
- "MYSQL_SEEDS=mysql"
- "DYNAMIC_CONFIG_FILE_PATH=config/dynamicconfig/development_es.yaml"
- "ENABLE_ES=true"
- "ES_SEEDS=elasticsearch"
- "KAFKA_SEEDS=kafka"
depends_on:
- mysql
- elasticsearch
- kafka
elasticsearch:
image: elasticsearch:6.8.8
ports:
- "9200:9200"
environment:
- discovery.type=single-node
- ES_JAVA_OPTS=-Xms100m -Xmx100m
temporal-admin-tools:
image: temporalio/admin-tools:${SERVER_TAG:-0.27.0}
stdin_open: true
tty: true
environment:
- "TEMPORAL_CLI_ADDRESS=temporal:7233"
depends_on:
- temporal
temporal-web:
image: temporalio/web:${WEB_TAG:-0.27.0}
environment:
- "TEMPORAL_GRPC_ENDPOINT=temporal:7233"
ports:
- "8088:8088"
depends_on:
- temporal

0 comments on commit e5e7846

Please sign in to comment.