I use docker-transmission container with docker-compose to run transmission app. The docker-compose file contains the following simple volume mapping:
volumes:
- ./data:/config
The transmission app configuration file is stored in /config/settings.json and is created every time the container restarts. I need to make certain customization into the configuration. If I do it manually, it's overwritten with the default config when the container restarts. What is the proper way to either prevent the config file to be rewritten or to replace the newly created default config file with my custom one? Prbably the latter should be the preferred way... Or mabe there're options 3, 4, 5...
You can try to set the bind mount to read only. This will prevent the container from being able to write to it.