-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.nod.yml
80 lines (72 loc) · 1.76 KB
/
docker-compose.nod.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
version: '2.1'
networks:
nod-newscrawler:
services:
crawler:
image: uhhlt/newscrawler
restart: on-failure
networks:
nod-newscrawler:
volumes:
- ${PWD}/out:/app/out
environment:
- ELASTIC_URL=http://elasticsearch:9200
- ELASTIC_USER=elastic
- ELASTIC_PASSWORD=changeme
- CRAWLER_FEEDS_FILE=/app/data/feeds_de.txt
- CRAWLER_LANGUAGE=german
- CRAWLER_TIMEZONE=Europe/Berlin
elasticsearch:
image: elasticsearch:5.5.2-alpine
networks:
nod-newscrawler:
volumes:
- ${PWD}/elasticsearch-data:/usr/share/elasticsearch/data
ports:
- 9200:9200
kibana:
image: kibana:5.5.2
networks:
nod-newscrawler:
ports:
- 5601:5601
environment:
- ELASTICSEARCH_URL=http://elasticsearch:9200
nodcore:
image: uhhlt/nodcore
volumes:
- ${PWD}/out/nod/german:/app/content
depends_on:
db:
condition: service_healthy
networks:
nod-newscrawler:
nodweb:
image: uhhlt/nodweb
restart: always
ports:
- 10008:9000
depends_on:
db:
condition: service_healthy
networks:
nod-newscrawler:
db:
image: mariadb
environment:
- MYSQL_RANDOM_ROOT_PASSWORD=yes
- MYSQL_DATABASE=nodcore
- MYSQL_USER=nod
- MYSQL_PORT=3306
- MYSQL_PASSWORD=nod
volumes:
- ${PWD}/nod-data/:/var/lib/mysql
- ./mycustom.cnf:/etc/mysql/conf.d/custom.cnf
command: ["--character-set-server=utf8", "--collation-server=utf8_bin"]
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost", "-pnod", "-unod"]
interval: 20s
timeout: 10s
retries: 10
networks:
nod-newscrawler: