Trying to get ente photos to start up upon system boot but cannot figure it out
I am trying my best to get the docker container to start when the server boots up but there are no clear guides on how to do this on the internet, and everything I have tried does not seem to work. How do you do this if you used the quickstart method? Thanks
Also this is my first self hosted server so please excuse my lack of expertise
8 Replies
I'm sorry, I couldn't find the answer in the documentation.
-# If your issue is resolved, feel free to use the /solved command to close this thread. If you'd like to ask me another question use /docsearch
I should also add why I want this, I've set my ubuntu server to restart every day at 4am and I want the docker compose up command to send automatically right when the restart is finished (or equivalent command/config)
im on the same boat
you can do this with systemctl services
assuming you are using debian/linux
they can execute any program
Docker has a daemon built in (the daemon is the background service/program that actually runs your containers), have that run on start-up (ie. enable the service)
Thank you so much!!
-# If your issue is resolved, you can use the /solved command to close the thread. If not, use /unsolve to cancel.
https://askubuntu.com/questions/1459175/how-to-run-a-docker-compose-as-a-systemd-service this tutorial helped me get system md up to speed for anyone else looking to solve the same issue
Ask Ubuntu
How to run a docker-compose as a systemd service?
I found this question, but that one uses cron - I'd like to use a systemd service instead. My docker-compose.yml is in /home/me, and I run it with sudo docker compose up (and just keep it running i...
Thread marked as solved. It will be closed in <t:1761105214:R>.
This thread is now closed.