From 6bba87e804c29fe44c909ada7d964caf8a703317 Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Sat, 1 Apr 2023 16:04:26 +0200 Subject: [PATCH] restart forgejo when docker restarts --- forgejo.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forgejo.sh b/forgejo.sh index ad7f13d..7c55717 100755 --- a/forgejo.sh +++ b/forgejo.sh @@ -28,7 +28,7 @@ function wait_for() { function run() { local image="$1" - docker run --name ${CONTAINER} \ + docker run --restart unless-stopped --name ${CONTAINER} \ -e "RUN_MODE=dev" \ -e "FORGEJO__security__INSTALL_LOCK=true" \ -e "FORGEJO__log__LEVEL=debug" \