Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 2468

Raspberry Pi OS • Re: Start Docker and server at boot

$
0
0
docker-compose has a --detach option, have a look at that.
And lave a look at this as well (goes in the docker-compose.yaml file):

Code:

restart: always
There's more here:
https://stackoverflow.com/questions/436 ... m-start-up

Thank you add to the docker-compose.yaml file

and I have add to the .bashrc

Code:

echo Running at bootcd /home/johan/Documents/server/raspberry_pi_server/raspberry_pi_server_serverdart bin/main.dart --apply-migrationse

Thank you all for the help

Statistics: Posted by Johan F Scheepers — Tue Oct 08, 2024 8:46 am



Viewing all articles
Browse latest Browse all 2468

Trending Articles