-
Notifications
You must be signed in to change notification settings - Fork 62
/
docker-compose.yaml
62 lines (56 loc) · 1.12 KB
/
docker-compose.yaml
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
55
56
57
58
59
60
61
62
version: '3'
services:
phpmyadmin:
image: phpmyadmin/phpmyadmin
ports:
- 8888:80
depends_on:
- mysql
environment:
PMA_USER: root
PMA_PASSWORD: 123456
links:
- mysql:db
mysql:
image: mysql:latest
restart: always
volumes:
- ./data/mysql:/var/lib/mysql
environment:
MYSQL_DATABASE: jnoj
MYSQL_ROOT_PASSWORD: 123456
TZ: Asia/Shanghai
judge:
build:
context: .
dockerfile: docker/Dockerfile
restart: always
command: bash -c "make && ./dispatcher -d"
privileged: true
volumes:
- ./judge:/sandbox
links:
- mysql:mysql
polygon:
build:
context: .
dockerfile: docker/Dockerfile
command: bash -c "make && ./polygon -d"
restart: always
privileged: true
volumes:
- ./polygon:/sandbox
links:
- mysql:mysql
php:
image: yiisoftware/yii2-php:8.1-fpm
volumes:
- ./:/app:delegated
web:
image: phundament/nginx-one:1.9-5.1.1
environment:
- FASTCGI_PASS_HOST=php
ports:
- '8100:80'
volumes:
- ./:/app:delegated