-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
49 lines (43 loc) · 1012 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
api:
build: ./core
container_name: 'newsp'
links:
- elasticsearch
- mongo
ports:
- 5000:5000
restart: always
volumes:
- .:/usr/src/app
command:
tail -f /dev/null
mongo:
container_name: 'mongo'
environment:
- MONGO_DATA_DIR=/data/db
- MONGO_LOG_DIR=/dev/null
image: mongo:latest
ports:
- 27017:27017
restart: always
volumes:
- ./data/db:/data/db
command: mongod --smallfiles --logpath=/dev/null
elasticsearch:
container_name: 'elasticsearch'
environment:
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
image: docker.elastic.co/elasticsearch/elasticsearch:5.4.0
restart: always
ports:
- 9200:9200
ulimits:
memlock:
soft: -1
hard: -1
mem_limit: 1g
user: elasticsearch
volumes:
- elasticsearch:/usr/share/elasticsearch/data