Container unresponsive and Failed to start app

Hi!
I have a problem about “Failed to start app…” error. I have docker-compose.yml and application.yml files. These files include their necessary properties shown as below. After I applied “docker-compose up -d” command, I am displaying the browser on http://localhost:8080 and it shows the interface of ShinyProxy. But once I want to enter my app, it says “Failed to start app…”. And after I apply “docker logs shinyproxy” on Terminal, it says “2025-06-26T16:10:28.610Z WARN 1 — [ProxyService-16] e.o.shinyproxy.ShinyProxyTestStrategy : [user=14ce9d3d-a7dd-4f91-a83f-251b9dd63375 proxyId=5e69d433-3181-4fbd-bf66-821a8ae891bd specId=dtcomb] Container unresponsive, trying again (18/20): http://localhost:20000” How can I solve this?

proxy:
  title: dtComb Shiny Uygulaması
  port: 8080
  authentication: none
  docker:
   inetnal-networking: true

  specs:
    - id: dtcomb
      display-name: dtComb Shiny App
      description: Genetik Veri Analiz Uygulaması
      container-cmd: ["R", "-e", "shiny::runApp('/srv/shiny-server', port=3838, host='0.0.0.0')"]
      container-image: dtcomb
      container-port: 3838

logging:
  file:
    shinyproxy.log
version: "3.9"
services:
 shinyproxy:
    image: openanalytics/shinyproxy:latest 
    container_name: shinyproxy
    restart: unless-stopped
    ports:
      - "8080:8080" 
    volumes:
      - ./application.yml:/opt/shinyproxy/application.yml 
      - /var/run/docker.sock:/var/run/docker.sock 
    environment:
      - JAVA_OPTS=-Dserver.port=8080
    user: root

Hi

If you are running ShinyProxy in a container, you must create a docker network and specify this network in the configuration of the app.

You can find more info here: shinyproxy-config-examples/02-containerized-docker-engine at master · openanalytics/shinyproxy-config-examples · GitHub

So the app would look like:

    - id: dtcomb
      display-name: dtComb Shiny App
      description: Genetik Veri Analiz Uygulaması
      container-cmd: ["R", "-e", "shiny::runApp('/srv/shiny-server', port=3838, host='0.0.0.0')"]
      container-image: dtcomb
      container-port: 3838
      container-network: sp-example-net

To use the network with docker compose, you can use:

services:
  shinyproxy:
    image: openanalytics/shinyproxy:latest 
    networks:
     - sp-example-net
networks:
  network1:
    name: sp-example-net
    external: true

Hope this helps!