2022-09-19 08:48:45 +00:00
|
|
|
version: "3"
|
|
|
|
services:
|
|
|
|
uoj-db:
|
|
|
|
build:
|
|
|
|
context: ./db/
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
container_name: uoj-db
|
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
- ./uoj_data/db/mysql:/var/lib/mysql
|
|
|
|
environment:
|
|
|
|
- MYSQL_DATABASE=app_uoj233
|
|
|
|
- MYSQL_ROOT_PASSWORD=root
|
2022-10-13 05:34:55 +00:00
|
|
|
|
|
|
|
phpmyadmin:
|
|
|
|
image: phpmyadmin
|
|
|
|
restart: always
|
|
|
|
ports:
|
|
|
|
- 28080:80
|
|
|
|
environment:
|
|
|
|
- PMA_ARBITRARY=1
|
2022-09-19 08:48:45 +00:00
|
|
|
|
|
|
|
uoj-judger:
|
|
|
|
build:
|
|
|
|
context: ./judger/
|
|
|
|
dockerfile: Dockerfile
|
2022-11-06 02:26:21 +00:00
|
|
|
args:
|
|
|
|
- USE_MIRROR=1
|
2022-09-19 08:48:45 +00:00
|
|
|
container_name: uoj-judger
|
|
|
|
restart: always
|
|
|
|
stdin_open: true
|
|
|
|
tty: true
|
|
|
|
cap_add:
|
|
|
|
- SYS_PTRACE
|
|
|
|
volumes:
|
|
|
|
- ./uoj_data/judger/log:/opt/uoj_judger/log
|
|
|
|
environment:
|
|
|
|
- UOJ_PROTOCOL=http
|
|
|
|
- UOJ_HOST=uoj-web
|
|
|
|
- JUDGER_NAME=compose_judger
|
|
|
|
- JUDGER_PASSWORD=_judger_password_
|
|
|
|
- SOCKET_PORT=2333
|
|
|
|
- SOCKET_PASSWORD=_judger_socket_password_
|
|
|
|
|
2023-01-19 13:26:59 +00:00
|
|
|
uoj-remote-judger:
|
|
|
|
build:
|
|
|
|
context: ./remote_judger/
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
args:
|
|
|
|
- USE_MIRROR=1
|
|
|
|
container_name: uoj-remote-judger
|
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
- ./uoj_data/judger/log:/opt/uoj_judger/log
|
2023-01-20 08:35:02 +00:00
|
|
|
env_file:
|
|
|
|
- remote-judger.development.env
|
2023-01-19 13:26:59 +00:00
|
|
|
environment:
|
2023-01-20 08:35:02 +00:00
|
|
|
- DEV=true
|
2023-01-19 13:26:59 +00:00
|
|
|
- UOJ_PROTOCOL=http
|
|
|
|
- UOJ_HOST=uoj-web
|
2023-01-20 08:35:02 +00:00
|
|
|
- UOJ_JUDGER_NAME=remote_judger
|
|
|
|
- UOJ_JUDGER_PASSWORD=_judger_password_
|
2023-01-19 13:26:59 +00:00
|
|
|
|
2022-09-19 08:48:45 +00:00
|
|
|
uoj-web:
|
|
|
|
build:
|
|
|
|
context: ./
|
|
|
|
dockerfile: web/Dockerfile
|
2022-11-06 02:26:21 +00:00
|
|
|
args:
|
|
|
|
- USE_MIRROR=1
|
2022-09-19 08:48:45 +00:00
|
|
|
container_name: uoj-web
|
|
|
|
restart: always
|
|
|
|
stdin_open: true
|
|
|
|
tty: true
|
|
|
|
cap_add:
|
|
|
|
- SYS_PTRACE
|
|
|
|
depends_on:
|
|
|
|
- uoj-db
|
|
|
|
- uoj-judger
|
|
|
|
volumes:
|
|
|
|
- ./uoj_data/web/data:/var/uoj_data
|
|
|
|
- ./uoj_data/web/storage:/opt/uoj/web/app/storage
|
2023-01-15 11:59:17 +00:00
|
|
|
- ./.config.development.php:/opt/uoj/web/app/.config.php
|
2022-09-19 08:48:45 +00:00
|
|
|
ports:
|
|
|
|
- "80:80"
|