Requirements:
- Docker
- Docker Compose
Featuring:
- Elixir 1.4
- Phoenix 1.3
cd docker-phoenix
docker-compose build
docker-compose run web bash /initiate.sh
This will probably change in the future but for now
sudo chown -R $USER ./app
Change
./app/config/dev.exs
adapter: Ecto.Adapters.Postgres,
username: "postgres",
password: "postgres",
database: "my_db",
hostname: "postgres",
pool_size: 10
**Note: You'll also need to modify
./app/config/test.exs
if you want to be able to run tests
Run
docker-compose run web mix ecto.create
docker-compose up
Any command can be run using run syntax
e.g.
docker-compose run web iex -S mix
If you want to start your project with a clean git history
rm -rf ./git
git init