-
Notifications
You must be signed in to change notification settings - Fork 50
/
docker-compose.yml
70 lines (70 loc) · 1.47 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
69
70
version: '3.4'
services:
nginx:
image: nginx
volumes:
- "static-html:/usr/share/nginx/html"
- "$PWD/nginx.conf:/etc/nginx/conf.d/default.conf"
depends_on:
- godspen
ports:
- "80:80"
godspen:
volumes:
- "static-html:/app/static-html"
depends_on:
- db
- redis
build: .
db:
image: mysql:5.7
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: godspen_db
ports:
- "127.0.0.1:3306:3306"
volumes:
- "mysqldb:/var/lib/mysql"
- "$PWD/sql:/docker-entrypoint-initdb.d"
es:
image: elasticsearch:6.7.1
container_name: es
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
ports:
- "127.0.0.1:9200:9200"
es2:
image: elasticsearch:6.7.1
container_name: es2
environment:
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- "discovery.zen.ping.unicast.hosts=es"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- esdata2:/usr/share/elasticsearch/data
kibana:
image: kibana:6.7.1
ports:
- "127.0.0.1:5601:5601"
environment:
ELASTICSEARCH_HOSTS: http://es:9200
redis:
image: redis
volumes:
static-html:
mysqldb:
esdata1:
esdata2: