{"id":14067479,"url":"https://github.com/Chrisjb/rstudio-dev-docker","last_synced_at":"2025-07-30T01:31:15.470Z","repository":{"id":126243353,"uuid":"258343838","full_name":"Chrisjb/rstudio-dev-docker","owner":"Chrisjb","description":"Rstudio development environment using docker compose","archived":false,"fork":false,"pushed_at":"2020-04-24T01:52:24.000Z","size":527,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-04T07:37:53.986Z","etag":null,"topics":["docker","docker-compose","nginx","plumber-api","postgresql","r","rstudio"],"latest_commit_sha":null,"homepage":null,"language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Chrisjb.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2020-04-23T22:18:01.000Z","updated_at":"2022-06-02T08:33:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"26979564-3afa-413c-92df-3861f42b3f0b","html_url":"https://github.com/Chrisjb/rstudio-dev-docker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Chrisjb/rstudio-dev-docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chrisjb%2Frstudio-dev-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chrisjb%2Frstudio-dev-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chrisjb%2Frstudio-dev-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chrisjb%2Frstudio-dev-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Chrisjb","download_url":"https://codeload.github.com/Chrisjb/rstudio-dev-docker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chrisjb%2Frstudio-dev-docker/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267792592,"owners_count":24144929,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","docker-compose","nginx","plumber-api","postgresql","r","rstudio"],"created_at":"2024-08-13T07:05:37.105Z","updated_at":"2025-07-30T01:31:15.185Z","avatar_url":"https://github.com/Chrisjb.png","language":"R","funding_links":[],"categories":["R"],"sub_categories":[],"readme":"# Rstudio with api and postgresql\nA containerised Rstudio instance with a linked api and db. An R studio instance will open with postgreSQL and a plumber API already set up and a persistent volume will be set up for postgres storage.\n\n![The Rstudio environment running in localhost](config/readme-files/app-screenshot.png)\n\n\nRstudio and the plumber API use `nginx` reverse proxy which is accessible on port 5500.\n\nRstudio is hosted at:\nhttp://localhost:5500/\n\nThe API can be accessed at:\nhttp://localhost:5500/api/test?x=1\u0026y=2\n\nThe environment comes with PostgreSQL preconfigured with postgis with connection details in `test-script.R`. The postgres username and password each default to 'postgres' and can be changed in `docker-compose.yaml`.\n\n\n\n## Running with docker\n1. clone the repo `git clone https://github.com/Chrisjb/rstudio-dev-docker.git` \n2. `cd` to our project folder\n3. run `docker-compose up`\n4. when finished run `docker-compose down`\n\n\nIf you see the error:\n\n\u003eError in postgresqlNewConnection(drv, ...) : \n\u003e  RS-DBI driver: (could not connect postgres@db:5432 on dbname \"dev\": could not connect to server: Connection refused\n\u003e\tIs the server running on host \"db\" (172.26.0.2) and accepting\n\u003e\tTCP/IP connections on port 5432?\n\u003e)\n\nThe database has likely not finished building yet. This can take some time the first time the container is run. The api will also refuse to connect initially for the same reason.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FChrisjb%2Frstudio-dev-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FChrisjb%2Frstudio-dev-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FChrisjb%2Frstudio-dev-docker/lists"}