-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
50 lines (46 loc) · 1.01 KB
/
docker-compose.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
version: '2.1'
services:
node:
container_name: bandwidth-provider-node
restart: always
depends_on:
- bandwidth_mongo
build:
context: .
dockerfile: Dockerfile
networks:
- services-tier
ports:
- $GLS_CONNECTOR_HOST:$GLS_CONNECTOR_PORT:$GLS_CONNECTOR_PORT
env_file:
- .env
bandwidth_mongo:
container_name: bandwidth_mongo
image: mongo
restart: always
healthcheck:
test: mongo --eval 'db.getCollectionNames()'
interval: 10s
timeout: 2s
retries: 10
volumes:
- badwidth_mongodb_vol:/data/db
networks:
- services-tier
mongodb-exporter:
container_name: mongodb-exporter
image: cyberway/mongodb-exporter:v0.6.2
restart: always
depends_on:
bandwidth_mongo:
condition: service_healthy
ports:
- 9216:9216
environment:
- MONGODB_URI=mongodb://bandwidth_mongo:27017
networks:
- services-tier
networks:
services-tier:
volumes:
badwidth_mongodb_vol: