Skip to content

Instantly share code, notes, and snippets.

@dahse89
Created April 29, 2022 10:55
Show Gist options
  • Save dahse89/744741b81fdd95a83642ee9131695d19 to your computer and use it in GitHub Desktop.
Save dahse89/744741b81fdd95a83642ee9131695d19 to your computer and use it in GitHub Desktop.
Simple docker deployment
#!/bin/bash
docker context create remote --docker "host=ssh://user@remotemachine"
docker-compose -f docker-compose.production.yml --context remote up -d --no-deps --build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment