Docker image for Plyo database
This image runs PostgreSQL server, creates a database which name is specified in DB_NAME env var and number of users:
postgres- root for PostgreSQLadmin- your db owner, this user has full access to the created database and can be used for migrations. You can adjust user name with ADMIN_ROLE_NAME env varapp- user which can't modify schema of the db. You can adjust user name with APP_ROLE_NAME env var
To run it locally just use docker-compose:
In EXTENSIONS env var you can list extensions which will be pre-installed at the moment of first start of the container. See example in docker-compose.yml
$ docker-compose upThat's all, you can connect to the running DB using psql, DataGrip or any other tools.