services: shiny: build: . container_name: standrews_shiny restart: always ports: - "127.0.0.1:${PORT}:3838" environment: - SHINY_LOG_STDERR=1 volumes: - .:/srv/shiny-server # Prevents local renv library from shadowing the container's library - /srv/shiny-server/renv/library healthcheck: test: ["CMD", "curl", "-f", "http://localhost:3838/"] interval: 1m timeout: 10s retries: 3