- cross-posted to:
- linux@lemmy.world
- cross-posted to:
- linux@lemmy.world
cross-posted from: https://jemmy.jeena.net/post/185617
I had a hard time setting up the new sync server for Firefox which is written in Rust because the documentation is very bad.
After a lot of try and error and reading comments of people in the issue tracker I finally was able to set it up and run it successfully.
Mostly for my future self, but perhaps it also helps other people I documented it with help of a README and a docker-compose.yaml which makes it easy for me to upgrade if necessary and also to store all the other config files with examples.
What is the reason for the systemd service? Looks to me like it only supplements the standard docker restart function. Can it be run without it? Then maybe mark it as optional while pointing out the benefits
In my world the standard way of starting and stopping services on Linux is systemd, that is why I added it. I never used the docker way and am not really familiar with it.
But I will try to update it a bit, it’s a good point overall.
Docker run commands or docker-compose.yml files offer a restart-policy flag that offer various levels of restart behavior which trigger when the container crashes, is stopped or when the Docker service starts (eg after a reboot)