setup.sh 445 B

123456789101112131415
  1. docker load -i helloxz-imgurl.tar
  2. git clone https://github.com/helloxz/imgurl.git
  3. cd imgurl
  4. chmod 777 data
  5. chmod 777 imgs
  6. sed -i 's/build: ./# build: ./g' docker-compose.yml
  7. #Mac: 注释上一句,取消注释下一句
  8. #sed -i '' 's/build: ./# build: ./g' docker-compose.yml
  9. sed -i 's/8080:80/80:80/g' docker-compose.yml
  10. #Mac: 注释上一句,取消注释下一句
  11. #sed -i '' 's/8080:80/80:80/g' docker-compose.yml
  12. docker-compose up -d