2019-07-16 06:13:28 +00:00
|
|
|
version: "3"
|
|
|
|
services:
|
|
|
|
uoj-db:
|
2022-09-19 08:48:45 +00:00
|
|
|
image: git.m.ac/baoshuo/s2oj-db
|
2019-07-16 06:13:28 +00:00
|
|
|
container_name: uoj-db
|
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
- ./uoj_data/db/mysql:/var/lib/mysql
|
|
|
|
environment:
|
|
|
|
- MYSQL_DATABASE=app_uoj233
|
|
|
|
- MYSQL_ROOT_PASSWORD=root
|
|
|
|
|
|
|
|
uoj-judger:
|
2022-09-19 08:48:45 +00:00
|
|
|
image: git.m.ac/baoshuo/s2oj-judger
|
2019-07-16 06:13:28 +00:00
|
|
|
container_name: uoj-judger
|
|
|
|
restart: always
|
|
|
|
stdin_open: true
|
|
|
|
tty: true
|
|
|
|
cap_add:
|
|
|
|
- SYS_PTRACE
|
|
|
|
volumes:
|
2022-03-16 09:00:39 +00:00
|
|
|
- ./uoj_data/judger/log:/opt/uoj_judger/log
|
2022-09-19 08:58:09 +00:00
|
|
|
- ./uoj_data/judger/data:/opt/uoj_judger/uoj_judger/data
|
2019-07-16 06:13:28 +00:00
|
|
|
environment:
|
|
|
|
- UOJ_PROTOCOL=http
|
|
|
|
- UOJ_HOST=uoj-web
|
|
|
|
- JUDGER_NAME=compose_judger
|
|
|
|
- JUDGER_PASSWORD=_judger_password_
|
|
|
|
- SOCKET_PORT=2333
|
|
|
|
- SOCKET_PASSWORD=_judger_socket_password_
|
|
|
|
|
|
|
|
uoj-web:
|
2022-09-19 08:48:45 +00:00
|
|
|
image: git.m.ac/baoshuo/s2oj-web
|
2019-07-16 06:13:28 +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
|
2022-09-18 04:06:30 +00:00
|
|
|
- ./uoj_data/web/storage:/opt/uoj/web/app/storage
|
2019-07-16 06:13:28 +00:00
|
|
|
ports:
|
|
|
|
- "80:80"
|
2022-09-18 23:54:41 +00:00
|
|
|
environment:
|
|
|
|
- DATABASE_HOST=uoj-db
|
|
|
|
- DATABASE_PASSWORD=root
|
|
|
|
- JUDGER_SOCKET_PORT=2333
|
|
|
|
- JUDGER_SOCKET_PASSWORD=_judger_socket_password_
|
|
|
|
- SALT_0=salt_0
|
|
|
|
- SALT_1=salt_1
|
|
|
|
- SALT_2=salt_2
|
|
|
|
- SALT_3=salt_3
|