Skip to content

Instantly share code, notes, and snippets.

@RemiBou
Created June 25, 2020 07:21
Show Gist options
  • Save RemiBou/8ab640ce038690ce79dc3b93ee49b133 to your computer and use it in GitHub Desktop.
Save RemiBou/8ab640ce038690ce79dc3b93ee49b133 to your computer and use it in GitHub Desktop.
#!/bin/bash
export COMPOSE_PROJECT_NAME=franceremote
docker context use default
docker-compose build || exit 1
docker-compose push || exit 1
docker context use fr
docker-compose pull || (docker context use default && exit 1)
docker-compose up -d || (docker context use default && exit 1)
docker-compose logs -f web
docker context use default
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment