Skip to content

How I setup my local postgres database using docker-compose to run a postgres service + RStudio service

Notifications You must be signed in to change notification settings

rsangole/postgres

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

How I setup my local postgres database using docker-compose to run a postgres service + RStudio service

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published