~ashton314/docker_dev_db

Elixir Mix task to quickly spin up a PostgreSQL database in a docker container for easy development

Ashton Wiersdorf via public-inbox

2 months ago
2 months ago

#DockerDevDb

Quick-and-easy mix task to spin up a PostgreSQL database for development.

#Description

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.

#Installation

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

#Configuration

Add the following to your config/dev.exs file:

config :docker_db,
  project_slug: "my_cool_app"

#Authors