Skip to content
studioliftPublic

About

OSX Docker development environment

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Dream

The Awesome-Docker-Development-Environment-With-Resolving-Domains-Super-Fantastic Dream Machine (for OSX)

Requirements

You must install an appropriate Docker runtime before running the bootstrap.

Visit https://www.docker.com/products/overview for more details.

Instructions

Clone and cd to this repo, then run the bootstrapper to get things going

./bootstrap.sh

This does the following:

  • Add a resolver entry, pointing at the local Docker install
  • Boots up two core service containers:

Usage

A container with the environment variable VIRTUAL_HOST=hello.dream will be accessible at http://hello.dream. This is due to nginx-proxy automatically proxying these virtual hosts and dnsmasq forwarding the requests on to the proxy. The resolver configuration on your host machine allows your browser/terminal to access them.

Basic example to demonstrate this:

docker run --rm -e VIRTUAL_HOST=hello.dream -p 80 tutum/hello-world

Using docker-compose you can easily set pre-configured VIRTUAL_HOST settings for your applications using the environment key:

app:
  build: .
  command: bundle exec rails s -p 3000 -b '0.0.0.0'
  volumes:
    - .:/app
  ports:
    - "3000"
  environment:
    - VIRTUAL_HOST=myapp.dream

About

OSX Docker development environment

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages