Skip to content

Commit 57c0614

Browse files
fixup 2
1 parent e151c50 commit 57c0614

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/docker-compose.backbeat.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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

0 commit comments

Comments
 (0)