Ashton Wiersdorf via public-inbox
Quick-and-easy mix task to spin up a PostgreSQL database for development.
Phoenix uses PostgreSQL as its database by default. For development, running a database inside of a container is often convenient. This little package adds a simple mix task to make spinning up a Docker container with a PostgreSQL database running in it a piece of cake.
If available in Hex, the package can be installed
by adding docker_dev_db
to your list of dependencies in mix.exs
:
def deps do
[
{:docker_dev_db, "~> 0.1.0", only: :dev}
]
end
Add the following to your config/dev.exs
file:
config :docker_db,
project_slug: "my_cool_app"