3 Star 0 Fork 0

mirrors_apache/incubator-pekko-persistence-cassandra

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
docker-compose.yml 1.68 KB
一键复制 编辑 原始数据 按行查看 历史
PJ Fanning 提交于 2024-08-05 09:20 . update docker compose commands (#219)
services:
cassandra-service:
image: cassandra:latest
ports:
- "9042:9042"
volumes:
# This configuration is customized to enable materialized views.
- ${PWD}/docker-files/cassandra.yaml:/etc/cassandra/cassandra.yaml
healthcheck:
test: ["CMD", "cqlsh", "-e", "describe keyspaces"]
interval: 5s
timeout: 5s
retries: 60
cassandra3-service:
image: cassandra:3
ports:
- "9042:9042"
healthcheck:
test: ["CMD", "cqlsh", "-e", "describe keyspaces"]
interval: 5s
timeout: 5s
retries: 60
cassandra2-service:
image: cassandra:2
ports:
- "9042:9042"
volumes:
- ${PWD}/docker-files/cassandra2.yaml:/etc/cassandra/cassandra.yaml
healthcheck:
test: ["CMD", "cqlsh", "-e", "describe keyspaces"]
interval: 5s
timeout: 5s
retries: 60
# These exists to force the condition of having the Cassandra service is up before starting the tests.
# The healthcheck above is not enough because it does not provide a condition to wait for the service
# to be up. And this is simpler than installing cqlsh and using it to check the service status on the
# CI server. This uses alpine since it is a pretty small image.
cassandra-latest:
image: alpine:latest
depends_on:
cassandra-service:
condition: service_healthy
cassandra3:
image: alpine:latest
depends_on:
cassandra3-service:
condition: service_healthy
cassandra2:
image: alpine:latest
depends_on:
cassandra2-service:
condition: service_healthy
dse:
image: datastax/dse-server
environment:
- DS_LICENSE=accept
ports:
- "9043:9042"
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_apache/incubator-pekko-persistence-cassandra.git
git@gitee.com:mirrors_apache/incubator-pekko-persistence-cassandra.git
mirrors_apache
incubator-pekko-persistence-cassandra
incubator-pekko-persistence-cassandra
main

搜索帮助