-2

I would need how to create the yaml to deploy the stack making sure it has alll these libraries and that it uses these ports
Libraries:
1.1- openxlsx
1.2- xml2
1.3- rdflib
1.4- jsonld
1.5- jsonlite
1.6- tools
1.7- logger
2- shiny-server
2.1- shiny
2.2- bs4Dash
2.3- shinyWidgets
2.4- fresh
2.5- highlighter
2.6- dplyr
2.7- echarts4r
2.8- shinyalert
2.9- shinybusy

Ports: for rstudio "8787:8787" and for the siny server "3838:3838"

This is what i've been doing but i don't know if it is correct

ersion: '3.8' services: rstudio: image: rocker/rstudio:latest container_name: rstudio_ejecucion_r restart: unless-stopped environment: - PASSWORD= ports: - "8787:8787" volumes: - ./proyecto:/home/rstudio/proyecto command: > bash -c " R -e 'install.packages( c(\"openxlsx\", \"xml2\", \"rdflib\", \"jsonld\", \"jsonlite\", \"logger\", \"shiny\", \"bs4Dash\", \"shinyWidgets\", \"fresh\", \"highlighter\", \"dplyr\", \"echarts4r\", \"shinyalert\", \"shinybusy\"), repos=\"https://cloud.r-project.org\")' && /init" shiny: image: rocker/shiny:latest container_name: shiny_server ports: - "3838:3838" volumes: - ./proyecto:/srv/shiny-server/proyecto restart: unless-stopped 
3
  • 2
    "but i don't know if it is correct" ... what happens when you try to deploy and access it? Commented Nov 5 at 16:56
  • When accesing it i says that you cannot access the website and it pops the typical google error ERR_CONNECTION_REFUSED. I tried looking if i was already using those ports and lloking into the logs it also cannot implement correctly some of the libraries Commented Nov 11 at 11:58
  • For "refused", it can be a lot of things, we need to know the host OS, and are you using a specific docker network (host or custom). For the packages, yeah, nothing we can do without error messages. Your question is missing just about everything we need to help you with this, please edit it, keep the yml, and add everything else Commented Nov 11 at 12:05

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.