Skip to content

mrc-ide/auth-db

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Entrypoints

  1. scripts/build-db.sh. This builds an image called auth-db containing a postgres database called auth with user auth and password changeme.
  2. scripts/build-migrations.sh. This builds an image called auth-migrations which can be run to apply migrations to the database, including the first migration which creates an initial schema. For more details see the README in the migrations folder.
  3. scripts/start.sh. Takes two command line parameters, the version of the image you want to run, and the port you want to expose the database on (the latter defaults to 5432). Starts the database and runs migrations. Requires the images to already exist on your machine.
  4. scripts/stop.sh. Stops a running db image.
  5. scripts/build-and-run.sh. First builds the images and then executes start.sh.
  6. scripts/clear-docker.sh. Stops and cleans up any running docker processes.

Data

For persistent data, mount a volume into the database image at /pgdata.

About

A dockerised postgres database with a schema to support authentication and authorization for any app

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published