Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save jaredlockhart/ffd0ae3f41cdbd44104e142c10d3b1c1 to your computer and use it in GitHub Desktop.

Select an option

Save jaredlockhart/ffd0ae3f41cdbd44104e142c10d3b1c1 to your computer and use it in GitHub Desktop.
# individual machine
docker-machine create -d amazonec2 \
--amazonec2-access-key=asdf \
--amazonec2-secret-key=asdf \
--amazonec2-region=us-east-1 \
--amazonec2-zone=c \
--amazonec2-vpc-id=asdf \
--amazonec2-subnet-id=asdf \
--amazonec2-instance-type="m4.xlarge" \
mymachine1
@jaredlockhart

Copy link
Copy Markdown
Author

Step 1) Create a VPC with 1 public subnet and an internet gateway using the VPC wizard
Step 2) capture the VPC ID and subnet ID, and hte region and zone of the vpc
Step 3) issue that command to docker machine
Step 4) eval $(docker-machine env mymachine1)
Step 5) docker-compose up

et voila

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment