-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-test.yml
34 lines (34 loc) · 1023 Bytes
/
docker-compose-test.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
test:
extends:
file: base.yml
service: base
ports:
- "4000"
container_name: rw-adapter-csv-test
environment:
NODE_ENV: test
command: test
links:
- mongo
mongo:
image: mongo
container_name: rw-adapter-csv-mongo-test
command: --smallfiles
ports:
- "27017"
volumes:
# in osx the host machine volume directory cannot be under /Users
# http://stackoverflow.hex1.ru/questions/34390220/how-to-mount-external-volume-for-mongodb-using-docker-compose-and-docker-machine
- /var/docker/data/rw-adapter-csv:/data/db
restart: always
elastic:
image: vizzuality/elasticsearch-sql:1.0.0
container_name: rw-adapter-csv-elastic-test
ports:
- "9200"
- "9300"
volumes:
# in osx the host machine volume directory cannot be under /Users
# http://stackoverflow.hex1.ru/questions/34390220/how-to-mount-external-volume-for-mongodb-using-docker-compose-and-docker-machine
- /var/docker/data/rw-adapter-csv-elastic:/usr/share/elasticsearch/data
restart: always