frappe_docker icon indicating copy to clipboard operation
frappe_docker copied to clipboard

docker startup problem

Open louishot opened this issue 2 years ago • 3 comments

Hello,

compose.traefik.yaml and single-server-example.md did not add startup for production? for example restart: always inside yaml I see only docs/compose/compose.mariadb-shared.yaml have restart: unless-stopped option

Thanks

louishot avatar Oct 04 '22 07:10 louishot

you can add what you want and send PR.

revant avatar Oct 04 '22 12:10 revant

I see only docs/compose/compose.mariadb-shared.yaml have restart: unless-stopped option

Ok I just want to know if I'm not turning a certain knob so did not apply startup option to the compose yaml file or still no knob at all

louishot avatar Oct 04 '22 20:10 louishot

if it works then it works!

Send PR if it works.

no is the default restart policy, and it does not restart a container under any circumstance. When always is specified, the container always restarts. The on-failure policy restarts a container if the exit code indicates an on-failure error. unless-stopped always restarts a container, except when the container is stopped (manually or otherwise).

more about restart: https://docs.docker.com/compose/compose-file/compose-file-v3/#restart

revant avatar Oct 05 '22 12:10 revant

This issue has been automatically marked as stale. You have a week to explain why you believe this is an error.

github-actions[bot] avatar Dec 06 '22 00:12 github-actions[bot]