-
Notifications
You must be signed in to change notification settings - Fork 11
/
docker-compose.yml
54 lines (51 loc) · 1.21 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
version: "3.8"
services:
mysql:
image: mysql/mysql-server:8.0
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_USER: crawl
MYSQL_PASSWORD: crawl
MYSQL_DATABASE: tournament
volumes:
- mysql:/var/lib/mysql
networks:
- tourney
ports:
- "3306:3306"
# The first option uses MySQL 5.x era authentication. The rest are performance
# optimisation.
command: "--default-authentication-plugin=mysql_native_password --skip_log_bin --innodb-flush-log-at-trx-commit=0"
loaddb:
build:
context: .
dockerfile: Dockerfile.loaddb
networks:
- tourney
command:
- python
- ./loaddb.py
- --db-host=mysql
- --db-pass=crawl
- --db-retry-connect
- --validate-database
environment:
BASEDIR: /root
WEB_BASE: "http://localhost:8080"
volumes:
- ./logfiles:/usr/src/app/logfiles
- ./milestones:/usr/src/app/milestones
- ./rcfiles:/usr/src/app/rcfiles
- ./html.tourney0.32:/usr/src/app/html.tourney0.32
depends_on:
- mysql
web:
image: nginx
ports:
- 8080:80
volumes:
- ./html.tourney0.32:/usr/share/nginx/html:ro
networks:
tourney:
volumes:
mysql: