forked from DOMjudge/domjudge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
35 lines (33 loc) · 959 Bytes
/
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.
version: '3'
services:
mariadb:
image: 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: domjudge/domjudge-contributor
hostname: domjudge-contributor
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
- .:${PWD}:cached
- /chroot
links:
- mariadb:mariadb
ports:
- 12345:80
privileged: true
working_dir: ${PWD}
environment:
- PROJECT_DIR=${PWD}