-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
84 lines (79 loc) · 1.8 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
version: '2'
networks:
net:
driver: bridge
services:
kibana:
image: docker.elastic.co/kibana/kibana:5.4.1
container_name: kibana
build:
context: .
dockerfile: kibana-Dockerfile
restart: unless-stopped
depends_on:
- elasticsearch
ports:
- "5601:5601"
environment:
- "ELASTICSEARCH_URL=http://elasticsearch:9200"
networks:
- net
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:5.4.1
container_name: elasticsearch
build:
context: .
dockerfile: elasticsearch-Dockerfile
restart: unless-stopped
environment:
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms1g -Xmx1g"
- "xpack.security.enabled=false"
- "xpack.monitoring.enabled=false"
- "xpack.graph.enabled=false"
- "xpack.watcher.enabled=false"
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
mem_limit: 2g
cap_add:
- IPC_LOCK
volumes:
- es_data:/usr/share/elasticsearch/data
ports:
- 9200:9200
- 9300:9300
networks:
- net
pyspider:
image: my/pyspider
container_name: pyspider
build:
context: .
dockerfile: pyspider-Dockerfile
restart: unless-stopped
depends_on:
- elasticsearch
entrypoint:
- "wait-for-it.sh"
- "elasticsearch:9200"
- "--"
- "pyspider"
- "--resultdb"
- "elasticsearch+resultdb://elasticsearch:9200/?index=pyspider_willhaben_resultdb"
# - "--projectdb"
# - "local+projectdb:///opt/pyspider_scripts/*"
ports:
- 5000:5000
volumes:
- pyspider_data:/opt/pyspider
# - ./pyspider_scripts:/opt/pyspider_scripts
networks:
- net
volumes:
es_data: {}
pyspider_data: {}