A PostgreSQL DB containing a simple pre-populate users table
3.6K
This image contains a sample DB, containing a single 'users' table that is being populate upon running the container.
When running the image, you should supply DB credentials and the DB name in the environment variables
docker run -d -p 5432:5432 --name sample-pg -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=password -e DB_NAME=sample buildsecurity/sample-postgres-db
The data being populated in the table is of the below structure:
| "id" | "name" | "email" | "is_active" | "last_login" | "role" |
|---|---|---|---|---|---|
| "027c7da1-6bd1-dd4a-322c-78eb3bb8fb9a" | "Lev Steele" | "[email protected]" | false | "2021-08-15 15:33:12+00" | "admin" |
| "033cf963-2f15-64d2-007f-13ba400149db" | "Judah Harrell" | "[email protected]" | true | "2021-06-18 09:53:31+00" | "developer" |
Content type
Image
Digest
Size
109.4 MB
Last updated
almost 6 years ago
docker pull buildsecurity/sample-postgres-db