forked from danielberkompas/elasticsearch-elixir
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
43 lines (39 loc) · 909 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'
services:
db:
image: postgres
ports:
- "5432:5432"
environment:
POSTGRES_HOST_AUTH_METHOD: "trust"
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.9.0
environment:
- discovery.type=single-node
- xpack.security.enabled=false
- http.cors.enabled=true
- http.cors.allow-origin=*
- http.cors.allow-headers=Authorization
- indices.query.bool.max_clause_count=1024
volumes:
- esdata:/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:
esdata: