Skip to content

Instantly share code, notes, and snippets.

@thbkrkr
Created June 24, 2015 09:24
Show Gist options
  • Save thbkrkr/0c2fa253951e24601a85 to your computer and use it in GitHub Desktop.
Save thbkrkr/0c2fa253951e24601a85 to your computer and use it in GitHub Desktop.
Notes: Run Docker Compose in Docker on any machine (created using Docker Machine)

Tree

Create compose/ and machines/ directories:

├── compose
│   ├── my-app.yml
│   ├── ...
│   └── ci.yml
├── machines
│   ├── node-ci
│   │   ├── ca.pem
│   │   ├── ...
│   │   └── server.pem
│   └── node-1-int
│       ├── ca.pem
│       ├── ...
│       └── server.pem
├── Dockerfile
└── Makefile
FROM krkr/dc
COPY . /
build:
docker build --rm -t deploy .
run: build
docker run -e NAME=my-app -e MACHINE=node-1-int deploy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment