Heavily based on Starting a Phoenix Project with Docker by Robert Beene
mkdir my_project
cd my_project
curl -L https://github.com/Stratouklos/dockerized_phoenix/releases/download/0.1/dockerized-phoenix.tar.gz | tar xvz
./init my_project
Subsequent init executions start the project and run ecto.create
- Creates a Phoenix image based on the official elixir:1.3.4
- Gets the deps and npm installs
- Starts a db container based on postgres:9.6-alpine
- Configures config/dev.exs to talk to the db container
- Creates the db with ecto.create
- Starts a web container serving out of localhost:4000
git archive --format=tar.gz master > dockerized-phoenix.tar.gz