0

I have a web app that have appsettings.json like:

rclone_path: "D:\\blabla\\rclone.exe"

I created a container and image for that web app and I created a docker compose file. I build docker file for Linux by the way.

The docker-compose.yaml looks like:

version: '3.4'

services:
    rclone_backup:
        image: rclone/rclone:latest
        container_name: rclone_backup
        restart: unless-stopped
        volumes:
            - ./rclone/config:/config/rclone
        user: "${UID}:${GID}"
        command: tail -f /dev/null

    myweb.blazor:
        depends_on: 
            - rclone_backup
        environment:
            - ASPNETCORE_ENVIRONMENT=Development
            - ASPNETCORE_URLS=https://+:443;http://+:80
            - rclone_path=????
        ports:
            - "80"
            - "443"
        volumes:
            - ${APPDATA}/Microsoft/UserSecrets:/root/.microsoft/usersecrets:ro
            - ${APPDATA}/ASP.NET/Https:/root/.aspnet/https:ro

I want to pass path to rclone_path (in myweb.blazor) using path from rclone_backup service.

It is possible ? I'm newbie in docker world. Maybe sharing same volume would work ? I have no idea there how to check...

Snake Eyes
  • 16,287
  • 34
  • 113
  • 221
  • You've set your `rclone_backup` container to do nothing; it might be more effective to just delete it from the configuration. In the other container, what is the setting `rclone_path` supposed to do? (You can never directly call a binary in one container from another; for example, [Docker : Can a container A call an executable located on an other container B?](https://stackoverflow.com/questions/43442276/docker-can-a-container-a-call-an-executable-located-on-an-other-container-b)) – David Maze Nov 15 '22 at 11:38

0 Answers0