-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.alter.yml
113 lines (107 loc) · 3.59 KB
/
compose.alter.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
services:
swh-alter:
image: swh/stack:${SWH_IMAGE_TAG:-latest}
build: ./
command: mock-graph
volumes:
- "./tests/alter_companion.py:/src/alter_companion.py:ro"
- "./services/swh-alter/entrypoint.sh:/srv/softwareheritage/entrypoint.sh:ro"
- "./conf/alter.yml:/srv/softwareheritage/config.yml:ro"
- "./conf/alter/age-identities.txt:/srv/softwareheritage/age-identities.txt:ro"
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:4.1
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:4.1
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
swh-cassandra-storage:
image: swh/stack:${SWH_IMAGE_TAG:-latest}
build: ./
depends_on:
- cassandra-seed
- swh-objstorage
- kafka
- prometheus-statsd-exporter
env_file:
- ./env/common_python.env
environment:
CASSANDRA_SEEDS: cassandra-seed
PYTHONUNBUFFERED: 1
RPC_PORT: 5002
command: rpc
healthcheck:
test: curl -f http://localhost:5002 || exit 1
retries: 6
volumes:
- "./conf/alter/storage_cassandra.yml:/srv/softwareheritage/config.yml:ro"
- "./services/swh-storage/entrypoint.sh:/srv/softwareheritage/entrypoint.sh:ro"
swh-extra-objstorage:
build: ./
image: swh/stack:${SWH_IMAGE_TAG:-latest}
depends_on:
- prometheus-statsd-exporter
env_file:
- ./env/common_python.env
environment:
RPC_PORT: 5003
command: rpc
healthcheck:
test: curl -f http://localhost:5003 || exit 1
retries: 6
volumes:
- "./conf/objstorage.yml:/srv/softwareheritage/config.yml:ro"
- "./services/swh-objstorage/entrypoint.sh:/srv/softwareheritage/entrypoint.sh:ro"
swh-storage-replayer:
image: swh/stack:${SWH_IMAGE_TAG:-latest}
build: ./
depends_on:
- kafka
- swh-storage-db
- swh-cassandra-storage
- prometheus-statsd-exporter
environment:
SWH_LOG_LEVELS: warning
env_file:
- ./env/common_python.env
command: replayer
volumes:
- "./conf/alter/replayer.yml:/srv/softwareheritage/config.yml:ro"
- "./services/swh-storage/entrypoint.sh:/srv/softwareheritage/entrypoint.sh:ro"
swh-objstorage-replayer:
image: swh/stack:${SWH_IMAGE_TAG:-latest}
build: ./
depends_on:
- kafka
- prometheus-statsd-exporter
- swh-objstorage
- swh-extra-objstorage
- nginx
environment:
SWH_LOG_LEVELS: warning
env_file:
- ./env/common_python.env
command: replayer
volumes:
- "./conf/alter/content-replayer.yml:/srv/softwareheritage/config.yml:ro"
- "./services/swh-objstorage/entrypoint.sh:/srv/softwareheritage/entrypoint.sh:ro"