Skip to content

add uptimekit - #863

Merged
Siumauricio merged 5 commits into
Dokploy:canaryfrom
iRazvan2745:canary
Jul 8, 2026
Merged

Siumauricio merged 5 commits into
Dokploy:canaryfrom
iRazvan2745:canary

Conversation

@iRazvan2745

Copy link
Copy Markdown
Contributor

What is this PR about?

New PR of Uptimekit

Checklist

Before submitting this PR, please make sure that:

Issues related (if applicable)

Close automatically the related issues using the keywords: closes #ISSUE_NUMBER

Screenshots or Videos

@dosubot dosubot Bot added size:S This PR changes 10-29 lines, ignoring generated files. new-template labels May 15, 2026
@github-actions

github-actions Bot commented May 15, 2026 •

Copy link
Copy Markdown
built with Refined Cloudflare Pages Action

⚡ Cloudflare Pages Deployment

Name Status Preview Last Commit
templates ✅ Ready (View Log) Visit Preview 495f22c

@Siumauricio

Copy link
Copy Markdown
Contributor

Automated template check 🤖

This PR's template was imported into a test Dokploy instance (using the docker-compose.yml + template.toml from the PR head) and deployed, and its configured domains were then checked over HTTP.

Result: ❌ some issues need attention

uptimekit

  • Deploy: error (86s)
  • Container states at failure time: status-page-1: created · dash-1: created · redis-1: running · db-1: restarting · clickhouse-1: running
  • Issues:
    • the deployment finished with ERROR (see log below)
  • Deploy log (tail):
Container compose-reboot-wireless-program-9r8dkh-db-1 Error dependency db failed to start
dependency failed to start: container compose-reboot-wireless-program-9r8dkh-db-1 is unhealthy
Error: ❌ Docker command failed
Error occurred ❌, check the logs for details.

The test service is removed automatically after verification. Happy to re-test once the PR is updated.

The postgres:18-alpine image moved PGDATA from /var/lib/postgresql/data
to /var/lib/postgresql, so mounting the volume at the old path made the
entrypoint abort and the db container restart forever, failing the
service_healthy dependency for dash and status-page.

- Mount db_data at /var/lib/postgresql (postgres 18 layout)
- Remove host port mappings (Dokploy routes via domains/Traefik)
- Generate POSTGRES_PASSWORD and CLICKHOUSE_PASSWORD with ${password:32}
  instead of hardcoded credentials
- Drop unused DASH_PORT/STATUS_PAGE_PORT env and dangling empty
  [[config.mounts]] section in template.toml

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@Siumauricio

Copy link
Copy Markdown
Contributor

Tested this template on a live Dokploy instance and fixed the deploy failure. Pushed the fix to this branch (495f22c).

Root cause: the db service uses postgres:18-alpine, and the Postgres 18 official image moved PGDATA from /var/lib/postgresql/data to /var/lib/postgresql. Mounting the volume at the old path made the entrypoint abort, so the container restarted forever and the service_healthy dependency failed with dependency db failed to start.

Changes:

  • Mount db_data at /var/lib/postgresql (Postgres 18 layout)
  • Removed host port mappings — Dokploy routes traffic through domains/Traefik, so published ports are unnecessary and can collide
  • Replaced hardcoded postgres/clickhouse passwords with generated ${password:32} template variables wired through POSTGRES_PASSWORD / CLICKHOUSE_PASSWORD
  • Cleaned up unused DASH_PORT/STATUS_PAGE_PORT env vars and a dangling empty [[config.mounts]] section in template.toml

Verified: deploy completes successfully; dash responds with HTTP 200 ("UptimeKit") on its domain and status-page serves "Status Page | UptimeKit" (404 at root is expected until a status page is created).

@iRazvan2745

Copy link
Copy Markdown
Contributor Author

Oh, I thought I pushed a fix for the Postgres issue, so sorry. Also now there are 2 versions, one using timescaledb and one with clickhouse, shall I add both?

@Siumauricio
Siumauricio merged commit 8ffc5ef into Dokploy:canary Jul 8, 2026
4 checks passed

This branch was successfully deployed

1 active deployment
Preview — 495f22c5 Deployed Jul 8, 2026 by github-actions[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new-template size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants