Skip to content

Check if database is present on every run, not just on init #173

Closed as not planned
@rudyryk

Description

@rudyryk

As far as I can see from the docker-entrypoint.sh it checks for the presence of database only on the first container start.

I suggest performing this check on every start.

I see some possible scenarios:

  1. Database was dropped for cleanup, we'd expect it to be just re-created
  2. Database name was changed via ${POSTGRES_DB}, so we'd expect the new database to be created

So In both cases, we just should check if the database already exists and if not then create a new one.

I'm not good at shell programming, not sure if I can make a PR :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    RequestRequest for image modification or feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions