server icon indicating copy to clipboard operation
server copied to clipboard

Add "restart: always" option in docker-compose.yml

Open arno974 opened this issue 3 years ago • 1 comments

Would it be relevant to add the restart: always option on every docker service listed in docker-compose.yml ? So if the server stop or restart, mergin docker service will be available on restart.

arno974 avatar Aug 30 '21 05:08 arno974

Hi @arno974, just adding my 2 cents here.

On my side, I'm more on the restart: unless-stopped side, but also have all the env variables defined in a .env referenced in the docker-compose.yml with a env_file: docker/.env directive

gilles-morain avatar Nov 29 '21 18:11 gilles-morain

It was added https://github.com/MerginMaps/mergin/blob/master/docker-compose.yml.

varmar05 avatar Apr 03 '23 12:04 varmar05