We strongly recommend deploying using Docker.
- Download
git clone https://github.com/sirius-zyj/douyin-server.git
- Generate binary file
- Take your own aliyun OSS and set OSSAK\OSSSK in config/config.yml and docker/microservices/etcd/config.yml
sh run.sh
cd rpc
sh build_all_service.sh
cd docker
sh copy.sh
- Deploy
-
Make sure that ports 3306, 2379, 6379, 8080, and 8880-8886 are not occupied on your local machine.
3306:mysql
2379:redis
6370:etcd
8080:router
8880-8886:microservices -
Make suer that you have set up docker and docker-compose
cd docker
sudo docker-compose up -d