Skip to content

Commit e76f1d5

Browse files
committed
Link to example compose file
The current documentation at Docker Hub uses the harder to use vanilla docker. Current standard for deploying multiple containers is docker-compose which is now added. I've left judgehosts out of the compose as for these one would use other machines where just running 1 container might actually be easier.
1 parent 97b5c7b commit e76f1d5

File tree

3 files changed

+29
-2
lines changed

3 files changed

+29
-2
lines changed

website/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ SHELL = /bin/bash
33
WWWDIR = /srv/http/domjudge
44

55
install:
6-
cp *.shtml *.css *.ico *.svg *.pdf $(WWWDIR)/
6+
cp *.shtml *.css *.ico *.svg *.pdf *.yml $(WWWDIR)/
77

88
# This takes the docs from the latest (by string sorting) release and copies
99
# these to the directory serving files under www.domjudge.org/docs/.

website/docker-compose.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
version: '3'
2+
3+
services:
4+
mariadb:
5+
image: docker.io/mariadb
6+
hostname: mariadb
7+
environment:
8+
- MYSQL_ROOT_PASSWORD=domjudge
9+
- MYSQL_USER=domjudge
10+
- MYSQL_PASSWORD=djpw
11+
- MYSQL_DATABASE=domjudge
12+
ports:
13+
- 13306:3306
14+
command: --max-connections=1000 --max-allowed-packet=512M
15+
volumes:
16+
- /var/lib/mysql
17+
domjudge:
18+
image: docker.io/domjudge/domserver
19+
hostname: domserver
20+
environment:
21+
- MYSQL_ROOT_PASSWORD=domjudge
22+
- MYSQL_USER=domjudge
23+
- MYSQL_PASSWORD=djpw
24+
- MYSQL_DATABASE=domjudge
25+
- MYSQL_HOST=mariadb
26+
ports:
27+
- 8080:80

website/download.shtml

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ mailing list</a>.</p>
4242

4343
<p>Official Docker images for both the domserver and judgehost are also available.
4444
See the <a href="https://hub.docker.com/r/domjudge/domserver/">Docker Hub
45-
repository for the DOMserver</a> to get started.
45+
repository for the DOMserver</a> to get started or use the example <a href="docker-compose.yml">docker-compose</a> setup.
4646
</p>
4747

4848
<h3>Debian Packages</h3>

0 commit comments

Comments
 (0)