diff --git a/README.md b/README.md index 68514cf..c32a6a1 100644 --- a/README.md +++ b/README.md @@ -82,11 +82,17 @@ end First, you'll need to build the test database. -```elixir -MIX_ENV=test mix ecto.reset +```bash +MIX_ENV=test mix db.reset ``` -This task assumes you have postgres installed and that the `postgres` user can create / drop databases. If you'd prefer to use a different user, you can specify it with the environment variable `SCRIVENER_ECTO_DB_USER`. +This task assumes you have Postgres installed and that the `postgres` user can create / drop databases. If you'd prefer to use a different user, you can specify it with the environment variable `SCRIVENER_ECTO_DB_USER`. + +Alternatively, if you prefer to use Docker for database setup. + +```bash +docker-compose up +``` With the database built, you can now run the tests. diff --git a/docker-compose.yaml b/docker-compose.yaml index 82c08a7..eca629e 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -1,7 +1,7 @@ version: "3" services: db: - image: "postgres:13" + image: "docker.io/postgres:latest" ports: - "127.0.0.1:5432:5432" environment: