- Pull postgres docker image using
docker pull postgres:13.3
- Edit
00-postgres-init.sh
with your custom settings - Run
./00-postgres-init.sh
, this sets up new roles + new databases - Check the configuration in
docker-compose.yml
for your postgres database settings and docker images - To run RStudio and Postgres together, run
docker-compose up -d
- Connect to RStudio in a browser using
localhost:8787
- 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