-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
65 lines (65 loc) · 1.28 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
version: '3.1'
services:
nginx:
container_name: nginx
image: nginx:alpine
volumes:
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf
- ./nginx/ssl:/etc/nginx/ssl
ports:
- '80:80'
- '443:443'
networks:
- esnet
depends_on:
- api
api:
build:
context: ./api
container_name: api
volumes:
- ./api:/src
- /src/node_modules
networks:
- esnet
depends_on:
- setup
# kibana:
# container_name: kibana
# image: docker.elastic.co/kibana/kibana:6.4.0
# volumes:
# - ./kibana.yml:/usr/share/kibana/config/kibana.yml
# networks:
# - esnet
# depends_on:
# - elasticsearch
setup:
build:
context: ./setup
container_name: setup
networks:
- esnet
volumes:
- ./setup:/src
- /downloads
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:6.4.0
container_name: elasticsearch
environment:
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- esdata1:/usr/share/elasticsearch/data
- ./esdata:/src
networks:
- esnet
volumes:
esdata1:
driver: local
networks:
esnet: