Files
temporalio-docker-compose/docker-compose-cockroach-es.yml
Rob Holland 7c0681875f Convert docker compose files to basic kubernetes manifests for dev use (#127)
* Generate k8s manifests from compose.
2022-07-27 11:27:31 +01:00

85 lines
2.1 KiB
YAML

version: "3.5"
services:
cockroach:
cap_drop:
- ALL
command:
- start-single-node
- --insecure
container_name: temporal-cockroach
hostname: cockroach
image: cockroachdb/cockroach
networks:
- temporal-network
restart: on-failure:5
security_opt:
- no-new-privileges
tty: false
elasticsearch:
container_name: temporal-elasticsearch
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=-Xms256m -Xmx256m
- xpack.security.enabled=false
image: elasticsearch:${ELASTICSEARCH_VERSION}
networks:
- temporal-network
ports:
- 9200:9200
temporal:
container_name: temporal
depends_on:
- cockroach
- elasticsearch
environment:
- DB=postgresql
- DB_PORT=26257
- POSTGRES_USER=root
- POSTGRES_PWD=
- POSTGRES_SEEDS=postgres
- DYNAMIC_CONFIG_FILE_PATH=config/dynamicconfig/development-sql.yaml
- ENABLE_ES=true
- ES_SEEDS=elasticsearch
- ES_VERSION=v7
image: temporalio/auto-setup:${TEMPORAL_VERSION}
links:
- cockroach:postgres
networks:
- temporal-network
ports:
- 7233:7233
volumes:
- ./dynamicconfig:/etc/temporal/config/dynamicconfig
labels:
kompose.volume.type: configMap
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-web:
container_name: temporal-web
depends_on:
- temporal
environment:
- TEMPORAL_GRPC_ENDPOINT=temporal:7233
image: temporalio/web:${TEMPORAL_WEB_VERSION}
networks:
- temporal-network
ports:
- 8088:8088
networks:
temporal-network:
driver: bridge
name: temporal-network