forked from openeduhub/oeh-search-etl
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose-dev.yml
98 lines (93 loc) · 2.23 KB
/
docker-compose-dev.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
version: "3.4"
services:
elasticsearch:
image: elasticsearch:7.4.2
environment:
- "discovery.type=single-node"
#- ELASTIC_PASSWORD=changethisinproduction
#- xpack.security.enabled=true
- http.port=9200
- http.cors.enabled=true
- http.cors.allow-origin=*
- http.cors.allow-headers=X-Requested-With,X-Auth-Token,Content-Type,Content-Length,Authorization,Access-Control-Allow-Headers,Accept
- http.cors.allow-credentials=true
- bootstrap.memory_lock=true
- 'ES_JAVA_OPTS=-Xms2g -Xmx4g'
networks:
- elasticnet
ports:
- "127.0.0.1:9200:9200"
restart: on-failure
volumes:
- es-data:/usr/share/elasticsearch/data
kibana:
image: docker.elastic.co/kibana/kibana:7.4.2
networks:
- elasticnet
depends_on:
- elasticsearch
ports:
- "5601:5601" # exposte to host
postgres:
build:
context: ./postgres
dockerfile: postgres.Dockerfile
environment:
- "POSTGRES_USER=search"
- "POSTGRES_PASSWORD=admin"
- "POSTGRES_DB=search"
networks:
- elasticnet
ports:
- "127.0.0.1:5432:5432"
restart: always
volumes:
- pg-data:/var/lib/postgresql/data
valuespace_converter:
build:
context: ./etl/valuespace_converter
dockerfile: valuespace_converter.Dockerfile
networks:
- elasticnet
ports:
- "5010:5010" # exposte to host
restart: on-failure
logstash:
build:
context: ./logstash
dockerfile: logstash_psql.Dockerfile
environment:
- LS_JAVA_OPTS=-Xmx4g
networks:
- elasticnet
depends_on:
- elasticsearch
- postgres
restart: on-failure
valuespaces:
image: laocoon667/oer-flask-api:dev
networks:
- elasticnet
ports:
- "127.0.0.1:5000:5000"
restart: on-failure
splash:
image: scrapinghub/splash
networks:
- elasticnet
command: --maxrss 4000
restart: always
ports:
- "127.0.0.1:8050:8050"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8050/_ping"]
interval: 30s
timeout: 5s
retries: 3
networks:
elasticnet:
volumes:
pg-data:
driver: local
es-data:
driver: local