-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
46 lines (42 loc) · 1.01 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
version: '2.1'
networks:
nod-newscrawler:
services:
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: