forked from blackav/ejudge
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (35 loc) · 769 Bytes
/
docker-compose.yml
File metadata and controls
38 lines (35 loc) · 769 Bytes
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
version: "3.8"
services:
mariadb:
restart: always
image: "mariadb"
container_name: "mariadb"
ports:
- "127.0.0.1:3307:3306"
environment:
- MARIADB_ROOT_PASSWORD=blabla
- MARIADB_DATABASE=ejudge
- MARIADB_USER=ejudge
- MARIADB_PASSWORD=blabla
volumes:
- mysql_data:/var/lib/mysql
ejudge:
build:
context: .
restart: always
image: "ejudge:latest"
container_name: "ejudge"
ports:
- "127.0.0.1:90:80"
environment:
- EJUDGE_MYSQL_USER=ejudge
- EJUDGE_MYSQL_PASSWORD=blabla
- EJUDGE_MYSQL_DATABASE=ejudge
- EJUDGE_MYSQL_HOST=mariadb
volumes:
- ejudge_data:/home/judges
depends_on:
- mariadb
volumes:
mysql_data:
ejudge_data: