Changeset View
Changeset View
Standalone View
Standalone View
docker-compose.cassandra.yml
Show All 18 Lines | cassandra: | ||||
# 'cassandra-seed' will tell clients to connect to these 'cassandra' | # 'cassandra-seed' will tell clients to connect to these 'cassandra' | ||||
# containers to load-balance. | # containers to load-balance. | ||||
image: cassandra | image: cassandra | ||||
volumes: | volumes: | ||||
- "./conf/cassandra.yaml:/etc/cassandra/cassandra.yaml" | - "./conf/cassandra.yaml:/etc/cassandra/cassandra.yaml" | ||||
env_file: | env_file: | ||||
- ./env/cassandra.env | - ./env/cassandra.env | ||||
prometheus: | |||||
# just to add the dep on the cassandra-jmx-exporter-cassandra | |||||
depends_on: | |||||
- prometheus-statsd-exporter | |||||
- prometheus-jmx-exporter-cassandra | |||||
prometheus-jmx-exporter-cassandra: | |||||
image: sscaling/jmx-prometheus-exporter | |||||
environment: | |||||
JVM_OPTS: "-Djava.util.logging.config.file=/logging.properties" | |||||
volumes: | |||||
- "./conf/prometheus-jmx-exporter.yml:/opt/jmx_exporter/config.yml:ro" | |||||
- "./conf/prometheus-jmx-exporter-logging.properties:/logging.properties:ro" | |||||
ports: | |||||
- "5556:5556" | |||||
swh-storage: | swh-storage: | ||||
volumes: | volumes: | ||||
# note: you need to be on the cassandra-backend2 branch | # note: you need to be on the cassandra-backend2 branch | ||||
- "/home/dev/swh-environment/swh-storage:/src/swh-storage" | - "/home/dev/swh-environment/swh-storage:/src/swh-storage" | ||||
- "/home/dev/swh-environment/swh-model:/src/swh-model" | - "/home/dev/swh-environment/swh-model:/src/swh-model" | ||||
- "./conf/storage_cassandra.yml:/storage.yml:ro" | - "./conf/storage_cassandra.yml:/storage.yml:ro" | ||||
- "./services/swh-storage/entrypoint.sh:/entrypoint.sh:ro" | - "./services/swh-storage/entrypoint.sh:/entrypoint.sh:ro" | ||||
depends_on: | depends_on: | ||||
- swh-storage-db | - swh-storage-db | ||||
- cassandra-seed | - cassandra-seed | ||||
- swh-objstorage | - swh-objstorage | ||||
- kafka | - kafka | ||||
environment: | environment: | ||||
CASSANDRA_SEED: cassandra-seed | CASSANDRA_SEED: cassandra-seed | ||||
STORAGE_BACKEND: cassandra | STORAGE_BACKEND: cassandra | ||||
PYTHONUNBUFFERED: 1 | PYTHONUNBUFFERED: 1 |