Skip to content

Commit

Permalink
Arrange dev docker-compose configs (temporalio#347)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexshtin authored May 2, 2020
1 parent c0ce239 commit e704f23
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import (
)

const (
testUser = "postgres"
testUser = "temporal"
testPassword = "temporal"
testSchemaDir = "schema/postgres"
)
Expand Down
4 changes: 2 additions & 2 deletions docker/buildkite/docker-compose-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ services:
mysql:
image: mysql:5.7
environment:
MYSQL_DATABASE: db
MYSQL_ROOT_PASSWORD: temporal
MYSQL_ROOT_PASSWORD: root
volumes:
- ./mysql-init:/docker-entrypoint-initdb.d
ports:
Expand All @@ -27,6 +26,7 @@ services:
postgres:
image: postgres:12
environment:
POSTGRES_USER: temporal
POSTGRES_PASSWORD: temporal
ports:
- "5432:5432"
Expand Down
4 changes: 2 additions & 2 deletions docker/buildkite/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ services:
mysql:
image: mysql:5.7
environment:
MYSQL_DATABASE: db
MYSQL_ROOT_PASSWORD: temporal
MYSQL_ROOT_PASSWORD: root
volumes:
- ./mysql-init:/docker-entrypoint-initdb.d
networks:
Expand All @@ -23,6 +22,7 @@ services:
postgres:
image: postgres:12
environment:
POSTGRES_USER: temporal
POSTGRES_PASSWORD: temporal
ports:
- "5432:5432"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,33 +1,46 @@
# Runs all Temporal service dependencies.
# Useful for integration testing.

version: '3'
version: "3.5"
services:
mysql:
image: mysql:5.7
container_name: temporal-mysql
ports:
- "3306:3306"
environment:
- "MYSQL_ROOT_PASSWORD=root"
- "MYSQL_USER=temporal"
- "MYSQL_PASSWORD=temporal"
MYSQL_ROOT_PASSWORD: root
volumes:
- ./mysql-init:/docker-entrypoint-initdb.d
networks:
- temporal-dependencies-network
cassandra:
image: cassandra:3.11
container_name: temporal-cassandra
ports:
- "9042:9042"
networks:
- temporal-dependencies-network
postgres:
image: postgres:12
container_name: temporal-postgres
environment:
POSTGRES_USER: temporal
POSTGRES_PASSWORD: temporal
ports:
- "5432:5432"
networks:
- temporal-dependencies-network
zookeeper:
image: wurstmeister/zookeeper:3.4.6
container_name: temporal-zookeeper
ports:
- "2181:2181"
networks:
- temporal-dependencies-network
kafka:
image: wurstmeister/kafka:2.12-2.1.1
container_name: temporal-kafka
depends_on:
- zookeeper
ports:
Expand All @@ -36,13 +49,29 @@ services:
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092
KAFKA_LISTENERS: PLAINTEXT://0.0.0.0:9092
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
networks:
- temporal-dependencies-network
elasticsearch:
image: elasticsearch:6.8.8
container_name: temporal-elasticsearch
ports:
- "9200:9200"
environment:
- discovery.type=single-node
- ES_JAVA_OPTS=-Xms100m -Xmx100m
depends_on:
- kafka
networks:
- temporal-dependencies-network
temporal-web:
image: temporalio/web:latest
container_name: temporal-web
environment:
- "TEMPORAL_GRPC_ENDPOINT=localhost:7233"
network_mode: host

networks:
temporal-dependencies-network:
driver: bridge
name: temporal-dependencies-network

1 change: 1 addition & 0 deletions docker/dependencies/mysql-init/init.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
GRANT ALL PRIVILEGES ON *.* TO 'temporal'@'%' IDENTIFIED BY 'temporal';

0 comments on commit e704f23

Please sign in to comment.