mirror of
https://github.com/temporalio/temporal.git
synced 2026-08-31 02:51:51 -07:00
Cassandra 3.11 reached EOL in July 2023. Upgrade both development and CI compose files to Cassandra 5.0 for current driver compatibility and feature parity with ScyllaDB. Changes: - develop/docker-compose: cassandra:3.11 -> cassandra:5.0 - develop/github CI compose: cassandra:3.11 -> cassandra:5.0, increase healthcheck retries from 30 to 60 (5.0 is slower to start) - macOS docs: update to 5.0, remove stale ARM JNA workaround that is no longer needed ## What changed? Big change, but: 1. Cassandra 3.11 is End-of-Life. 2. Allowed me separately to change the Golang CQL driver to ScyllaDB's, which doesn't support that EOL Cassandra anymore (my fault too, I removed that support I think). ## Why? If I wanted (and I do) to switch to ScyllaDB's GoCQL driver, I needed to perform this change. ## How did you test it? - [x] built - [x] run locally and tested manually - [x] covered by existing tests - [ ] added new unit test(s) - [ ] added new functional test(s) ## Potential risks I also did not see any performance regression!
93 lines
2.9 KiB
YAML
93 lines
2.9 KiB
YAML
# Runs all required Temporal service dependencies.
|
|
# Use to run service locally or run integration tests.
|
|
# Include platform specific file also:
|
|
# docker-compose -f docker-compose.yml -f docker-compose.linux.yml up
|
|
services:
|
|
mysql:
|
|
image: mysql:8.0.29-oracle
|
|
container_name: temporal-dev-mysql
|
|
ports:
|
|
- "3306:3306"
|
|
environment:
|
|
MYSQL_ROOT_PASSWORD: root
|
|
volumes:
|
|
- ./mysql-init:/docker-entrypoint-initdb.d
|
|
networks:
|
|
- temporal-dev-network
|
|
cassandra:
|
|
image: cassandra:5.0
|
|
container_name: temporal-dev-cassandra
|
|
ports:
|
|
- "9042:9042"
|
|
environment:
|
|
CASSANDRA_LISTEN_ADDRESS: 127.0.0.1
|
|
MAX_HEAP_SIZE: 1G
|
|
HEAP_NEWSIZE: 100M
|
|
networks:
|
|
- temporal-dev-network
|
|
postgresql:
|
|
image: postgres:13.5
|
|
container_name: temporal-dev-postgresql
|
|
ports:
|
|
- "5432:5432"
|
|
environment:
|
|
POSTGRES_USER: temporal
|
|
POSTGRES_PASSWORD: temporal
|
|
networks:
|
|
- temporal-dev-network
|
|
elasticsearch:
|
|
image: elasticsearch:7.10.1
|
|
container_name: temporal-dev-elasticsearch
|
|
ports:
|
|
- "9200:9200"
|
|
environment:
|
|
# Make ES available both on _local_ and _site_,
|
|
# and use _local_ for the publish_host.
|
|
#
|
|
# See here for details on network configuration:
|
|
# https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-network.html
|
|
- network.host=_local_,_site_
|
|
- network.publish_host=_local_
|
|
# Set storage limit to low number.
|
|
- 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=-Xms100m -Xmx100m
|
|
networks:
|
|
- temporal-dev-network
|
|
prometheus:
|
|
# Use http://localhost:9090/ to access Prometheus.
|
|
image: prom/prometheus:latest
|
|
container_name: temporal-dev-prometheus
|
|
command:
|
|
- "--log.level=error"
|
|
- "--config.file=/etc/prometheus/prometheus.yml"
|
|
- "--storage.tsdb.path=/prometheus"
|
|
- "--web.console.libraries=/usr/share/prometheus/console_libraries"
|
|
- "--web.console.templates=/usr/share/prometheus/consoles"
|
|
grafana:
|
|
# Use http://localhost:3000/ to access Grafana (admin/admin).
|
|
image: grafana/grafana:latest
|
|
container_name: temporal-dev-grafana
|
|
depends_on:
|
|
- prometheus
|
|
volumes:
|
|
- ./grafana/provisioning/:/etc/grafana/provisioning/
|
|
tempo:
|
|
image: grafana/tempo:latest
|
|
container_name: temporal-dev-grafana-tempo
|
|
command:
|
|
- "-config.file=/etc/tempo.yaml"
|
|
volumes:
|
|
- ./grafana/provisioning/tempo/tempo.yaml:/etc/tempo.yaml
|
|
temporal-ui:
|
|
image: temporalio/ui:latest
|
|
container_name: temporal-dev-ui
|
|
|
|
networks:
|
|
temporal-dev-network:
|
|
driver: bridge
|
|
name: temporal-dev-network
|