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...