-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose-run-production.yml
executable file
·66 lines (63 loc) · 1.74 KB
/
docker-compose-run-production.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
version: '2'
services:
nginx:
image: nginx
container_name: cartav-nginx
# depends_on:
# - esnode1
# - esnode2
# - esnode3
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf
- ./dist:/usr/share/nginx/html
ports:
- "80:80"
restart: always
esnode1:
image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.1.2
container_name: cartav-esnode1
environment:
- cluster.name=cartav-cluster
- bootstrap.memory_lock=true
- path.repo=/home
- "ES_JAVA_OPTS=-Xms1536m -Xmx1536m"
ulimits:
memlock:
soft: -1
hard: -1
mem_limit: 3g
volumes:
- /data/bases/cartav/node:/usr/share/elasticsearch/data
- /data/bases/cartav/backup/:/home
# esnode2:
# image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.1.1
# container_name: cartav-esnode2
# environment:
# - cluster.name=cartav-cluster
# - bootstrap.memory_lock=true
# - "ES_JAVA_OPTS=-Xms1536m -Xmx1536m"
# - path.repo=/home
# - "discovery.zen.ping.unicast.hosts=esnode1"
# ulimits:
# memlock:
# soft: -1
# hard: -1
# mem_limit: 3g
# volumes:
# - /data/bases/cartav/node2:/usr/share/elasticsearch/data
# esnode3:
# image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.1.1
# container_name: cartav-esnode3
# environment:
# - cluster.name=cartav-cluster
# - bootstrap.memory_lock=true
# - path.repo=/home
# - "ES_JAVA_OPTS=-Xms1536m -Xmx1536m"
# - "discovery.zen.ping.unicast.hosts=esnode1"
# ulimits:
# memlock:
# soft: -1
# hard: -1
# mem_limit: 3g
# volumes:
# - /data/bases/cartav/node3:/usr/share/elasticsearch/data