-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.cassandra.yml
67 lines (60 loc) · 2.33 KB
/
compose.cassandra.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
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 the 'cassandra'
# container instead.
image: cassandra:5.0
env_file:
- ./env/cassandra.env
entrypoint: /swh_entrypoint.sh
volumes:
- "./services/cassandra/swh_entrypoint.sh:/swh_entrypoint.sh:ro"
- "./conf/cassandra-override.yaml:/cassandra-override.yaml:ro"
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:5.0
entrypoint: /swh_entrypoint.sh
volumes:
- "./services/cassandra/swh_entrypoint.sh:/swh_entrypoint.sh:ro"
- "./conf/cassandra-override.yaml:/cassandra-override.yaml:ro"
env_file:
- ./env/cassandra.env
environment:
CASSANDRA_SEEDS: cassandra-seed
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-cassandra.yml:/opt/jmx_exporter/config.yml:ro"
- "./conf/prometheus-jmx-exporter-logging.properties:/logging.properties:ro"
# undefine the Postgresql DB for swh-storage
swh-storage-db: !reset
swh-storage:
volumes:
- "./conf/storage_cassandra.yml:/srv/softwareheritage/config.yml:ro"
- "./services/swh-storage/entrypoint.sh:/srv/softwareheritage/entrypoint.sh:ro"
depends_on: !override
- cassandra-seed
- swh-objstorage
- kafka
- kafka-create-topics
- nginx
- prometheus-statsd-exporter
environment:
CASSANDRA_SEEDS: cassandra-seed
PYTHONUNBUFFERED: 1
swh-storage-public:
volumes:
- "./conf/storage_cassandra-public.yml:/srv/softwareheritage/config.yml:ro"
- "./services/swh-storage-public/entrypoint.sh:/srv/softwareheritage/entrypoint.sh:ro"