diff --git a/forgejo/compose.yaml b/forgejo/compose.yaml index 4b47f87..4be1d60 100644 --- a/forgejo/compose.yaml +++ b/forgejo/compose.yaml @@ -8,6 +8,7 @@ services: FORGEJO__server__ROOT_URL: "${FORGEJO_ROOT_URL:-http://localhost:3000}" FORGEJO__server__SSH_PORT: "${FORGEJO_SSH_PORT:-2223}" FORGEJO__server__LFS_START_SERVER: "true" + FORGEJO__database__SQLITE_JOURNAL_MODE: "WAL" ports: - "${FORGEJO_HTTP_PORT:-3000}:3000" - "${FORGEJO_SSH_PORT:-2223}:22" @@ -16,9 +17,9 @@ services: - /etc/timezone:/etc/timezone:ro - /etc/localtime:/etc/localtime:ro healthcheck: - test: ["CMD", "curl", "-fSs", "http://localhost:3000/api/healthz"] + test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000/api/healthz"] interval: 30s - timeout: 5s - retries: 3 - start_period: 30s + timeout: 10s + retries: 5 + start_period: 60s restart: unless-stopped