-
Notifications
You must be signed in to change notification settings - Fork 73
/
docker-compose.yml
42 lines (42 loc) · 920 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
version: "3.2"
services:
db:
image: postgres
ports:
- "5432:5432"
environment:
POSTGRES_HOST_AUTH_METHOD: "trust"
elasticsearch:
# image: docker.elastic.co/elasticsearch/elasticsearch:7.10.2
image: docker.elastic.co/elasticsearch/elasticsearch:6.8.13
environment:
- node.name=es01
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- data:/usr/share/elasticsearch/data
ports:
- "9200:9200"
code:
container_name: "elasticsearch_elixir"
build: .
volumes:
- type: bind
source: .
target: /app
consistency: delegated
environment:
- "DATABASE_HOST=db"
- "ELASTICSEARCH_HOST=elasticsearch"
depends_on:
- db
- elasticsearch
links:
- db:postgres
volumes:
data:
driver: local