forked from VKCOM/devicehub
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-dev.yaml
More file actions
33 lines (32 loc) · 949 Bytes
/
docker-compose-dev.yaml
File metadata and controls
33 lines (32 loc) · 949 Bytes
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
services:
devicehub-mongo:
image: mongo:7.0
hostname: devicehub-mongo
container_name: devicehub-mongo
ports:
- 27017:27017
entrypoint: ["mongod", "--replSet", "devicehub-rs", "--bind_ip_all"]
healthcheck:
test: echo "rs.status()" | mongosh --port 27017 --quiet
interval: 5s
timeout: 30s
start_period: 0s
start_interval: 1s
retries: 30
networks:
- devicehub
devicehub-mongosetup:
image: mongo:7.0
container_name: devicehub-mongosetup
depends_on:
devicehub-mongo:
condition: service_healthy
volumes:
- ./scripts/mongo_setup.sh:/scripts/mongo_setup.sh
restart: "no"
entrypoint: ["bash", "/scripts/mongo_setup.sh"]
networks:
devicehub:
networks:
devicehub:
driver: bridge