How can I share files between two Docker containers using Syncthing?

0
7
Asked By CoolGamer123 On

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

Answered By FileNinja99 On

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.

Answered By TechieTina On

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.

Answered By DockerDude42 On

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

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.