Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 655 Bytes

README.md

File metadata and controls

13 lines (10 loc) · 655 Bytes

README

How to setup a local dockerized Postgres database from scratch

  1. Pull postgres docker image using docker pull postgres:13.3
  2. Edit 00-postgres-init.sh with your custom settings
  3. Run ./00-postgres-init.sh, this sets up new roles + new databases
  4. Check the configuration in docker-compose.yml for your postgres database settings and docker images
  5. To run RStudio and Postgres together, run docker-compose up -d
  6. Connect to RStudio in a browser using localhost:8787
  7. Test your database by running postgres.R

As a short cut to run docker & open a browser for RStudio, run docker-compose up -d; firefox localhost:8787