-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
70 lines (62 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
56
57
58
59
60
61
62
63
64
65
66
67
68
version: '2'
services:
api:
build:
context: .
dockerfile: Dockerfile
image: sharepointoscar/cars-api:v4
ports:
- '1337:1337'
environment:
- NODE_ENV=development
- PORT=1337
- MONGODB_HOST=localhost
- MONGODB_PORT=27017
- MONGODB_URI=mongodb://mongoadmin:password01@localhost:27017/cars_api?authSource=admin
- MONGODB_USERNAME=mongoadmin
- MONGODB_PASSWORD=password01
- ENABLE_ELASTICSEARCH=true
- ELASTICSEARCH_URL=localhost:9200
- DISABLE_SAILS_SEED=true
- DISABLE_GRAPHQL=true
depends_on:
- database
- elasticsearch
links:
- database
database:
image: mongo:4.0
environment:
- MONGO_INITDB_ROOT_USERNAME=mongoadmin
- MONGO_INITDB_ROOT_PASSWORD=password01
restart: always
ports:
- 27017:27017
volumes:
- /Users/omedina/Documents:/var/lib/mongodb
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.6.2
environment:
- cluster.name="oscar-search"
- bootstrap.memory_lock=true
- transport.host=localhost
- transport.tcp.port=9300
- http.port=9200
- network.host=localhost
- http.host=0.0.0.0
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
ports:
- "9200:9200"
- "9300:9300"
kibana:
image: docker.elastic.co/kibana/kibana:7.6.2
environment:
- opendistro_security.multitenancy.enabled=false
ports:
- "5601:5601"
depends_on:
- elasticsearch