-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
79 lines (73 loc) · 1.93 KB
/
Copy pathdocker-compose.yml
File metadata and controls
79 lines (73 loc) · 1.93 KB
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
69
70
71
72
73
74
75
76
77
78
79
version: "3"
services:
client:
depends_on:
- server
restart: on-failure
build:
context: ./react-client
dockerfile: Dockerfile.dev
ports:
- '3000:3000'
container_name: react_client
volumes:
- /app/node_modules
- ./react-client:/app
environment:
- REACT_APP_APIURL=http://localhost:5000
server:
depends_on:
- db
- kibana
restart: on-failure
build:
context: ./nest-server
dockerfile: Dockerfile.dev
ports:
- '5000:5000'
container_name: nest_server
volumes:
- /app/node_modules
- ./nest-server:/app
environment:
- DB_URL=mongodb://mongo_db
- ELASTIC_HOST=http://elasticsearch:9200
db:
image: mongo
container_name: mongo_db
volumes:
- mongodata:/data/db
ports:
- '27017:27017'
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.4.0
container_name: elasticsearch
environment:
- xpack.security.enabled=false
- discovery.type=single-node
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
cap_add:
- IPC_LOCK
volumes:
- elasticsearch-data:/usr/share/elasticsearch/data
ports:
- 9200:9200
- 9300:9300
kibana:
container_name: kibana
image: docker.elastic.co/kibana/kibana:7.4.0
environment:
- ELASTICSEARCH_HOSTS=http://elasticsearch:9200
ports:
- 5601:5601
depends_on:
- elasticsearch
volumes:
mongodata:
elasticsearch-data: