-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
55 lines (50 loc) · 1.56 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
51
52
53
54
55
version: '2'
services:
# server:
# container_name: server
# build: ./server
# ports:
# - "8080:8080" # Expose API port
# - "9229:9229" # Expose Node process debug port (disable in production)
# environment: # Set ENV vars
# - NODE_ENV=development
# - ES_HOST=elasticsearch
# - PORT=8080
# volumes: # Attach to IDE
# - ./server:/usr/src/app/server
# command: nodemon server/server.js
# client:
# container_name: client
# build: ./client
# ports:
# - "3000:3000" # Forward site to localhost:8080
# volumes:
# - ./client/src:/usr/src/app/client/src
# - ./client/public:/usr/src/app/client/public
# links:
# - server
elasticsearch: # Elasticsearch Instance
container_name: elasticsearch
image: docker.elastic.co/elasticsearch/elasticsearch:6.2.4
volumes: # Persist ES data in seperate "esdata" volume
- esdata:/usr/share/elasticsearch/data
environment:
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- discovery.type=single-node
- http.cors.enabled=true
- http.cors.allow-origin=*
- http.cors.allow-methods=OPTIONS, HEAD, GET, POST, PUT, DELETE
- http.cors.allow-headers= X-Requested-With,X-Auth-Token,Content-Type,Content-Length
ports: # Expose Elasticsearch ports
- "9300:9300"
- "9200:9200"
mongo:
container_name: mongodb
image: mongo
volumes:
- ./server/data:/data
ports:
- "27017:27017"
volumes: # Define seperate volume for Elasticsearch data
esdata: