I'm trying to set up Syncthing to upload files to my JellyFin server, both of which are running inside Docker containers on a single LXC. Although the containers are functioning well, I'm struggling to share files between them. I've modified my docker-compose.yml file to add volumes for Syncthing that are associated with JellyFin, but it doesn't seem to be working. Here's a snippet of my configuration to give you an idea of how it's set up: [insert parts of the docker-compose file here]
3 Answers
Have you tried making your volume declaration its own entity? If you've declared it outside of your compose file, just set it to external: true. You might also want to check out a managed file transfer platform to facilitate the file exchanges between your services.
You'll need to adjust your volume mounts. The period in front means it's considering the current directory inside Docker, so remove that if you're specifying a host path. For example, use "hostpath/shows:/shows" to bind the host path correctly with the Docker path.
Keeping all services in one docker-compose file can lead to complications, especially when you only want to change one container. It's often better to separate them. Consider creating a network for Nginx Proxy Manager and linking to separate compose files in that network. For your volume issue, absolute paths usually work better than relative ones. Make sure you're using something like "/path/to/my/folder" instead of just ". /path" for clarity.
Related Questions
Fix Not Being Able To Add New Categories With Intuitive Category Checklist For Wordpress
Get Real User IP Without Installing Cloudflare Apache Module
How to Get Total Line Count In Visual Studio 2013 Without Addons
Install and Configure PhpMyAdmin on Centos 7
How To Setup PostfixAdmin With Dovecot and Postfix Virtual Mailbox
Dovecot Error Unknown database driver mysql