.
├── LICENSE
├── README.md
├── deploy.sh
├── single-node-docker-compose.yml
└── init
└── mysql
└── init.sql
2 directories, 5 files
git clone https://github.com/shuoj/deploy.git
cd deploy
git clone https://github.com/shuoj/shu-online-judge-fe.git
export LOCAL_HOST=192.168.3.225 # your local/public ip address, DO NOT use localhost
sudo docker-compose -f single-node-docker-compose.yml up -d --build # --build is necessary when update frontend code
# cd xx/deploy
cd shu-online-judge-fe
git pull -v --rebase origin master
cd ..
export LOCAL_HOST=192.168.3.225 # your local/public ip address, DO NOT use localhost
sudo docker-compose -f single-node-docker-compose.yml up -d --build # --build is necessary when update frontend code
# ...
backend:
image: registry.cn-hangzhou.aliyuncs.com/kastnerorz/shu-online-judge:v1.0-rc2 # change to latest version
# ...
export LOCAL_HOST=192.168.3.225 # your local/public ip address, DO NOT use localhost
sudo docker-compose -f single-node-docker-compose.yml up -d