代码拉取完成,页面将自动刷新
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"
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。