Open-source status page, incident response and uptime monitoring
TypeScript alertingincident-managementmcpmcp-servermonitoringmonitoring-as-codeobservabilityon-callopen-sourcesrestatus-pagestatuspagesynthetic-monitoringterraformtinybirdtursouptimeuptime-checkeruptime-monitor
ignore:
- node_modules
builders:
install:
fromImage: node:26.8.1-slim
workdir: /app/
labels:
org.opencontainers.image.stage: install
bind:
- pnpm-workspace.yaml
- pnpm-lock.yaml
- package.json
- packages/db/package.json
- packages/assertions/package.json
- packages/locales/package.json
- packages/regions/package.json
- packages/theme-store/package.json
- packages/utils/package.json
run:
# Node 25+ no longer bundles corepack
- npm install -g [email protected]
- corepack enable pnpm
- pnpm install --prod --frozen-lockfile --filter=@openstatus/db... --loglevel debug
cache:
- /root/.local/share/pnpm/store
# One-shot migration runner: drizzle's migrator reads drizzle/ from disk at
# runtime, so the image ships source + node_modules instead of a compiled binary.
fromImage: node:26.8.1-slim
# libsql's native TLS reads the system CA store, which the slim image lacks.
root:
run:
# One chained command: dofigen emits a heredoc RUN, which doesn't stop on a failed line
- apt-get update && apt-get install -y --no-install-recommends ca-certificates && rm -rf /var/lib/apt/lists/*
workdir: /app/packages/db
labels:
org.opencontainers.image.title: OpenStatus DB Migrate
org.opencontainers.image.description: One-shot database migration runner for OpenStatus
org.opencontainers.image.source: https://github.com/openstatusHQ/openstatus
org.opencontainers.image.vendor: OpenStatus
org.opencontainers.image.authors: OpenStatus Team
# Workspace package sources ship too (not just their node_modules) so pnpm's
# @openstatus/* symlinks resolve and seed.mts can run via the same image.
copy:
- packages/db /app/packages/db
- packages/assertions /app/packages/assertions
- packages/locales /app/packages/locales
- packages/regions /app/packages/regions
- packages/theme-store /app/packages/theme-store
- packages/utils /app/packages/utils
- fromBuilder: install
source: /app/node_modules
target: /app/node_modules
- fromBuilder: install
source: /app/packages
target: /app/packages
# npm run keeps package.json's migrate script the single source of truth.
entrypoint:
- npm
- run
- migrate