Guest User

Untitled

a guest
Aug 19th, 2018
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. #
  2. # Rsync command
  3. # ----------------------------------------------------------------------------------------------------
  4. DESTINATION_SERVER=ubuntu@192.168.1.11
  5. DESTINATION_PATH=/deploy/bilyric
  6.  
  7. RSYNC_PARAMS = -rlv --exclude="mongo-data" --exclude="postgres-data" --exclude="*.log" --exclude="*/log" --exclude=".git" --exclude="venv"
  8.  
  9. upload:
  10. rsync $(RSYNC_PARAMS) ./ $(DESTINATION_SERVER):$(DESTINATION_PATH)
  11.  
  12. download:
  13. rsync $(RSYNC_PARAMS) $(DESTINATION_SERVER):$(DESTINATION_PATH) ./
  14.  
  15. #
  16. # Docker stack command
  17. # ----------------------------------------------------------------------------------------------------
  18. create-network:
  19. docker network create -d overlay bilyric-net
  20.  
  21. stack-deploy:
  22. docker stack deploy --compose-file=docker-compose.staging.yml bilyric
  23.  
  24. stack-rm:
  25. docker stack rm bilyric
Add Comment
Please, Sign In to add comment