@@ -35,30 +35,30 @@ services:
3535 - zookeeper
3636
3737 mongodb :
38- image : mongo:5.0
38+ image : mongo:4.4
3939 platform : linux/amd64
4040 ports :
4141 - " 27018:27018"
4242 networks :
4343 - backbeat-net
4444 command : mongod --port 27018 --replSet rs0 --bind_ip_all
4545 healthcheck :
46- test : echo 'db.runCommand("ping").ok' | mongosh --port 27018 --quiet
46+ test : echo 'db.runCommand("ping").ok' | mongo --port 27018 --quiet
4747 interval : 10s
4848 timeout : 5s
4949 retries : 5
5050 start_period : 10s
5151
5252 mongodb-init :
53- image : mongo:5.0
53+ image : mongo:4.4
5454 platform : linux/amd64
5555 networks :
5656 - backbeat-net
5757 depends_on :
5858 mongodb :
5959 condition : service_healthy
6060 command : >
61- mongosh --host mongodb:27018 --eval
61+ mongo --host mongodb:27018 --eval
6262 'rs.initiate({_id: "rs0", members: [{_id: 0, host: "mongodb:27018"}]})'
6363 restart : " no"
6464
@@ -85,9 +85,13 @@ services:
8585 - MONGODB_RS=rs0
8686 - REMOTE_MANAGEMENT_DISABLE=true
8787 - LOG_LEVEL=info
88+ - CRR_METRICS_HOST=backbeat-api
89+ - CRR_METRICS_PORT=8900
8890 depends_on :
8991 mongodb-init :
9092 condition : service_completed_successfully
93+ backbeat-api :
94+ condition : service_started
9195 healthcheck :
9296 test : ["CMD", "curl", "-f", "http://localhost:8000/"]
9397 interval : 5s
@@ -156,60 +160,60 @@ services:
156160 condition : service_started
157161 command : node bin/backbeat.js
158162
159- backbeat-queue-processor :
160- image : ghcr.io/scality/backbeat:9.1.3
161- platform : linux/amd64
162- ports :
163- - " 4043:4043"
164- networks :
165- - backbeat-net
166- environment :
167- # Kafka configuration
168- KAFKA_HOSTS : kafka:9092
169- KAFKA_COMPRESSION_TYPE : snappy
170-
171- # Zookeeper configuration
172- ZOOKEEPER_CONNECTION_STRING : zookeeper:2181/backbeat
173- ZOOKEEPER_AUTO_CREATE_NAMESPACE : " true"
174-
175- # Redis configuration
176- REDIS_HOST : redis
177- REDIS_PORT : 6379
178-
179- # MongoDB configuration
180- MONGODB_HOSTS : mongodb:27018
181- MONGODB_DATABASE : metadata
182-
183- # Management backend
184- MANAGEMENT_BACKEND : operator
185- REMOTE_MANAGEMENT_DISABLE : " true"
186-
187- # Cloudserver configuration
188- CLOUDSERVER_HOST : cloudserver
189- CLOUDSERVER_PORT : 8000
190-
191- # Replication source S3
192- EXTENSIONS_REPLICATION_SOURCE_S3_HOST : cloudserver
193- EXTENSIONS_REPLICATION_SOURCE_S3_PORT : 8000
194- EXTENSIONS_REPLICATION_SOURCE_AUTH_TYPE : service
195- EXTENSIONS_REPLICATION_SOURCE_AUTH_ACCOUNT : service-replication
196-
197- # Replication destination
198- EXTENSIONS_REPLICATION_DEST_AUTH_TYPE : service
199- EXTENSIONS_REPLICATION_DEST_AUTH_ACCOUNT : service-replication
200- EXTENSIONS_REPLICATION_DEST_BOOTSTRAPLIST : cloudserver:8001
201- EXTENSIONS_REPLICATION_DEST_BOOTSTRAPLIST_MORE : ' {"site": "wontwork-location", "type": "aws_s3"}, {"site": "aws-location", "type": "aws_s3"}'
202-
203- # Probe server port
204- LIVENESS_PROBE_PORT : 4043
205-
206- # Logging
207- LOG_LEVEL : info
208- depends_on :
209- mongodb-init :
210- condition : service_completed_successfully
211- cloudserver :
212- condition : service_started
213- backbeat-api :
214- condition : service_started
215- command : node extensions/replication/queueProcessor/task.js
163+ # backbeat-queue-processor:
164+ # image: ghcr.io/scality/backbeat:9.1.3
165+ # platform: linux/amd64
166+ # ports:
167+ # - "4043:4043"
168+ # networks:
169+ # - backbeat-net
170+ # environment:
171+ # # Kafka configuration
172+ # KAFKA_HOSTS: kafka:9092
173+ # KAFKA_COMPRESSION_TYPE: snappy
174+
175+ # # Zookeeper configuration
176+ # ZOOKEEPER_CONNECTION_STRING: zookeeper:2181/backbeat
177+ # ZOOKEEPER_AUTO_CREATE_NAMESPACE: "true"
178+
179+ # # Redis configuration
180+ # REDIS_HOST: redis
181+ # REDIS_PORT: 6379
182+
183+ # # MongoDB configuration
184+ # MONGODB_HOSTS: mongodb:27018
185+ # MONGODB_DATABASE: metadata
186+
187+ # # Management backend
188+ # MANAGEMENT_BACKEND: operator
189+ # REMOTE_MANAGEMENT_DISABLE: "true"
190+
191+ # # Cloudserver configuration
192+ # CLOUDSERVER_HOST: cloudserver
193+ # CLOUDSERVER_PORT: 8000
194+
195+ # # Replication source S3
196+ # EXTENSIONS_REPLICATION_SOURCE_S3_HOST: cloudserver
197+ # EXTENSIONS_REPLICATION_SOURCE_S3_PORT: 8000
198+ # EXTENSIONS_REPLICATION_SOURCE_AUTH_TYPE: service
199+ # EXTENSIONS_REPLICATION_SOURCE_AUTH_ACCOUNT: service-replication
200+
201+ # # Replication destination
202+ # EXTENSIONS_REPLICATION_DEST_AUTH_TYPE: service
203+ # EXTENSIONS_REPLICATION_DEST_AUTH_ACCOUNT: service-replication
204+ # EXTENSIONS_REPLICATION_DEST_BOOTSTRAPLIST: cloudserver:8001
205+ # EXTENSIONS_REPLICATION_DEST_BOOTSTRAPLIST_MORE: '{"site": "wontwork-location", "type": "aws_s3"}, {"site": "aws-location", "type": "aws_s3"}'
206+
207+ # # Probe server port
208+ # LIVENESS_PROBE_PORT: 4043
209+
210+ # # Logging
211+ # LOG_LEVEL: info
212+ # depends_on:
213+ # mongodb-init:
214+ # condition: service_completed_successfully
215+ # cloudserver:
216+ # condition: service_started
217+ # backbeat-api:
218+ # condition: service_started
219+ # command: node extensions/replication/queueProcessor/task.js
0 commit comments