forked from DOMjudge/domjudge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
35 lines (34 loc) · 1.06 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
# Note: this docker compose stack should only be used for development purposes.
# Do not use it for production deployments. If you want to deploy DOMjudge in
# production with Docker, see https://hub.docker.com/r/domjudge/domserver.
# It is recommended to use `docker compose up` to start this stack. Note, don't
# use sudo or the legacy docker-compose.
services:
mariadb:
image: docker.io/mariadb
environment:
- MYSQL_ROOT_PASSWORD=domjudge
- MYSQL_USER=domjudge
- MYSQL_PASSWORD=domjudge
- MYSQL_DATABASE=domjudge
ports:
# Useful to connect a local MySQL client / GUI
- 127.0.0.1:13306:3306
command: --max-connections=1000 --max-allowed-packet=512M
volumes:
- /var/lib/mysql
domjudge:
image: docker.io/domjudge/domjudge-contributor
hostname: domjudge-contributor
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup
- .:${PWD}:cached
- /chroot
links:
- mariadb:mariadb
ports:
- 12345:80
privileged: true
working_dir: ${PWD}
environment:
- PROJECT_DIR=${PWD}