mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-08-28 05:27:41 +00:00
feat(deploy): healthcheck on /health, compose uses GHCR image
railway.toml: point Railway's healthcheck at /health. Fabro's server returns 200 for any unknown path (SPA fallback) so /healthz would have been a false-positive check that never catches failures. /health is the real endpoint exposed by fabro-server and documented in the OpenAPI spec. docker-compose.yaml: swap `build: Dockerfile` for `image: ghcr.io/fabro-sh/fabro:nightly`. A fresh clone's `docker compose up` previously failed because the Dockerfile expects pre-built binaries under `docker-context/` that only the release workflow populates. Pulling the published image gives new users a 5-second boot and mirrors the Railway deployment shape. Pin to linux/amd64 until the arm64 image variant is fixed.
This commit is contained in:
parent
184cddf8e0
commit
d9596f2bc4
2 changed files with 3 additions and 4 deletions
|
|
@ -1,9 +1,7 @@
|
|||
services:
|
||||
fabro:
|
||||
image: fabro
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
image: ghcr.io/fabro-sh/fabro:nightly
|
||||
platform: linux/amd64
|
||||
ports:
|
||||
- "32276:32276"
|
||||
volumes:
|
||||
|
|
|
|||
|
|
@ -3,5 +3,6 @@ builder = "dockerfile"
|
|||
dockerfilePath = "Dockerfile.deploy"
|
||||
|
||||
[deploy]
|
||||
healthcheckPath = "/health"
|
||||
restartPolicyType = "on_failure"
|
||||
restartPolicyMaxRetries = 5
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue