Changeset View
Changeset View
Standalone View
Standalone View
docker-compose.cassandra.yml
- This file was added.
version: '2' | |||||
services: | |||||
cassandra-seed: | |||||
# This container starts a Cassandra instance that must be used as the | |||||
# contact-point for clients. This container will then make the client | |||||
# discover other cassandra containers. | |||||
# This container must not be scaled up; scale up th 'cassandra' | |||||
# container instead. | |||||
image: cassandra | |||||
env_file: | |||||
- ./env/cassandra.env | |||||
volumes: | |||||
- "./conf/cassandra.yaml:/etc/cassandra/cassandra.yaml" | |||||
cassandra: | |||||
# Additional Cassandra instance(s), which may be scaled up, but not | |||||
# down. They will automatically connect to 'cassandra-seed', and | |||||
# 'cassandra-seed' will tell clients to connect to these 'cassandra' | |||||
# containers to load-balance. | |||||
image: cassandra | |||||
volumes: | |||||
- "./conf/cassandra.yaml:/etc/cassandra/cassandra.yaml" | |||||
env_file: | |||||
- ./env/cassandra.env | |||||
swh-storage: | |||||
volumes: | |||||
# note: you need to be on the cassandra-backend2 branch | |||||
- "/home/dev/swh-environment/swh-storage:/src/swh-storage" | |||||
- "/home/dev/swh-environment/swh-model:/src/swh-model" | |||||
- "./conf/storage_cassandra.yml:/storage.yml:ro" | |||||
- "./services/swh-storage/entrypoint.sh:/entrypoint.sh:ro" | |||||
depends_on: | |||||
- swh-storage-db | |||||
- cassandra-seed | |||||
- swh-objstorage | |||||
- kafka | |||||
environment: | |||||
CASSANDRA_SEED: cassandra-seed | |||||
STORAGE_BACKEND: cassandra | |||||
PYTHONUNBUFFERED: 1 |