-
Notifications
You must be signed in to change notification settings - Fork 214
/
docker-compose.yml
54 lines (52 loc) · 1.49 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
version: '3.8'
services:
mongo:
image: mongo:5.0.0
environment:
- MONGO_URL=mongodb://mongo:27017/dev
volumes:
- ./data/mongo:/data/db:delegated
ports:
- 27017:27017
postgres:
image: postgres
environment:
- POSTGRES_PASSWORD=codely
- POSTGRES_USER=codely
- POSTGRES_DB=mooc-backend-dev
ports:
- '5432:5432'
restart: always
rabbitmq:
image: 'rabbitmq:3.8-management'
ports:
- 5672:5672
- 15672:15672
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.9.3
container_name: codely-elasticsearch
environment:
- node.name=codely-elasticsearch
- discovery.type=single-node #Elasticsearch forms a single-node cluster
- bootstrap.memory_lock=true # might cause the JVM or shell session to exit if it tries to allocate more memory than is available!
- 'ES_JAVA_OPTS=-Xms2048m -Xmx2048m'
ulimits:
memlock:
soft: -1 # The memlock soft and hard values configures the range of memory that ElasticSearch will use. Setting this to –1 means unlimited.
hard: -1
volumes:
- esdata:/usr/share/elasticsearch/data
ports:
- '9200:9200'
kibana:
image: docker.elastic.co/kibana/kibana:7.8.1
container_name: codely-kibana
environment:
ELASTICSEARCH_URL: http://codely-elasticsearch:9200
ELASTICSEARCH_HOSTS: http://codely-elasticsearch:9200
ports:
- 5601:5601
volumes:
node_modules:
esdata:
driver: local