OnlineJudge/deploy/test_case_rsync/docker-compose.yml
2017-12-01 13:58:37 +08:00

25 lines
574 B
YAML

version: "3"
services:
oj-rsync-master:
image: oj_rsync
container_name: oj-rsync
volumes:
- $PWD/data/backend/test_case:/test_case:ro
- $PWD/data/rsync_master:/log
environment:
- RSYNC_MODE=master
- RSYNC_USER=ojrsync
- RSYNC_PASSWORD=CHANGE_THIS_PASSWORD
ports:
- "0.0.0.0:873:873"
oj-rsync-slave:
image: oj-rsync
volumes:
- $PWD/test_case:/test_case
- $PWD/rsync_slave:/log
environment:
- RSYNC_MODE=slave
- RSYNC_USER=ojrsync
- RSYNC_PASSWORD=CHANGE_THIS_PASSWORD