-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
44 lines (42 loc) · 937 Bytes
/
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
version: '3.1'
services:
application:
container_name: simple-application
build:
context: .
dockerfile: docker/application/Dockerfile
volumes:
- ./code:/var/www/html
links:
- elastic
depends_on:
- elastic
ports:
- 8888:80
restart: always
elastic:
build:
context: .
dockerfile: docker/elastic/Dockerfile
container_name: simple-elastic
environment:
- cluster.name=docker-cluster
- node.name=es1
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
cap_add:
- IPC_LOCK
volumes:
- ./data/esdata1:/usr/share/elasticsearch/data
ports:
- 9200:9200
restart: always
healthcheck:
test: ['CMD', 'curl', '-f', '-u', 'elastic:changeme', 'http://localhost:9200']