-
Notifications
You must be signed in to change notification settings - Fork 184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Presistent setup of Rocker with docker-compose #464
Comments
About bind mount, we need detailed information about the host computer running Docker. In general, it is not recommended to bind-mount the whole services:
rstudio:
image: rocker/verse:4
env_file: .env
ports:
- "8787:8787"
volumes:
- ./.rstudio_config:/home/rstudio/.config
- ./works:/home/rstudio/works I also recommend that you try it in a minimal configuration and share that with us so that we can reproduce the procedure. |
Thanks for your answer! Caddy should not have any impact here. So the correct way would be. rstudio:
image: rocker/verse:4.1.3
volumes:
- /data/rstudio/home:/home
- /data/rstudio/site-library:/usr/local/lib/R/site-library
- ./rstudio/rserver.conf:/etc/rstudio/rserver.conf
restart: always
depends_on:
- caddy
environment:
- PASSWORD=$PASSWORD
- ROOT=true
- USERID=$USERID
- USER=$USER
networks:
- rstudio_network
ports:
# Debug access
- 3000:8787 also overwriting the Now that you mention it. Where can I find an example of the |
Containers created with docker compose are not destroyed until you explicitly run the And, if you are rebuilding a container from a new image, the R and apt packages are expected to be updated on the new image, so you don't want to inherit the R packages from the old container, do you?
RStudio configuration files modified on the RStudio GUI are saved in |
Hello everyone, I am trying to setup a RStudio Server using rocker on my own server to host it via Caddy. I would like the data, packages, and so on to persist on my Server via bind mounts. However I get strange server startup behaviour when trying to mount local folders insider the
rocker/verse:4.1.3
conatiner.My docker-compose currently looks like this.
the folder
data/rstudio
is fully owned by the user that I pass with env vars to my docker compose setup.as
what file permissions do I need in order for the mount to succeed?
If I change the bind mount to a docker volume the server starts up good - although I do not prefer using volumes since they might be excidentely deleted ^^
Happy to hear you comments and happy to see how you host
rocker
via docker-compose.The text was updated successfully, but these errors were encountered: