OnlineJudge/dockerfiles/test_case_rsync/docker-compose.example.yml
2016-05-12 20:18:18 +08:00

20 lines
528 B
YAML

oj_rsync_master:
image: oj_rsync
volumes:
- /home/OnlineJudge:/OnlineJudge
- /home/test_case:/OnlineJudge/test_case
- /home/log:/OnlineJudge/log
ports:
- "0.0.0.0:873:873"
environment:
- RSYNC_MODE=master
oj_rsync_slave:
image: oj_rsync
volumes:
- /home/OnlineJudge:/OnlineJudge
- /home/test_case:/OnlineJudge/test_case
- /home/log:/OnlineJudge/log
environment:
- RSYNC_MODE=slave
- RSYNC_MASTER_ADDR={YOUR_MASTER_ADDR}