-
Notifications
You must be signed in to change notification settings - Fork 8
/
docker-compose.yml
35 lines (32 loc) · 1016 Bytes
/
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
version: '3.3'
services:
mgdb-migrator-dev:
image: node:12-alpine
command: sh -c 'cd /usr/src/mgdb-migrator && exec npm test'
depends_on:
- mgdb-migrator-db
environment:
- 'DBURL=mongodb://mgdb-migrator-db:27017/mgdb-migrator-db'
- 'NODE_ENV=developoment'
volumes:
- '.:/usr/src/mgdb-migrator'
ports:
# Warning: Binding to 0.0.0.0 without firewall protection opens
# host up to outside access. Make sure to turn on firewall
# if you are not testing from an exernal machine or device.
- '0.0.0.0:5857-5870:5857-5870'
mgdb-migrator-db:
image: mongo:latest
ports:
- '27017:27017'
command: mongod --bind_ip 0.0.0.0
mgdb-migrator-test:
image: node:12-alpine
command: sh -c 'cd /usr/src/mgdb-migrator && exec npm test'
depends_on:
- mgdb-migrator-db
environment:
- 'DBURL=mongodb://mgdb-migrator-db:27017/mgdb-migrator-db'
- 'NODE_ENV=test'
volumes:
- '.:/usr/src/mgdb-migrator'