Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #
- # Rsync command
- # ----------------------------------------------------------------------------------------------------
- DESTINATION_SERVER=ubuntu@192.168.1.11
- DESTINATION_PATH=/deploy/bilyric
- RSYNC_PARAMS = -rlv --exclude="mongo-data" --exclude="postgres-data" --exclude="*.log" --exclude="*/log" --exclude=".git" --exclude="venv"
- upload:
- rsync $(RSYNC_PARAMS) ./ $(DESTINATION_SERVER):$(DESTINATION_PATH)
- download:
- rsync $(RSYNC_PARAMS) $(DESTINATION_SERVER):$(DESTINATION_PATH) ./
- #
- # Docker stack command
- # ----------------------------------------------------------------------------------------------------
- create-network:
- docker network create -d overlay bilyric-net
- stack-deploy:
- docker stack deploy --compose-file=docker-compose.staging.yml bilyric
- stack-rm:
- docker stack rm bilyric
Add Comment
Please, Sign In to add comment