Skip to content

Commit

Permalink
feat: add checkmate template
Browse files Browse the repository at this point in the history
  • Loading branch information
DJKnaeckebrot committed Dec 30, 2024
1 parent 638fbe1 commit 931f3fc
Show file tree
Hide file tree
Showing 4 changed files with 87 additions and 0 deletions.
Binary file added apps/dokploy/public/templates/checkmate.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
47 changes: 47 additions & 0 deletions apps/dokploy/templates/checkmate/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
services:
client:
image: bluewaveuptime/uptime_client:latest
restart: always
environment:
UPTIME_APP_API_BASE_URL: "http://${DOMAIN}/api/v1"
ports:
- 80
- 443
depends_on:
- server
networks:
- dokploy-network
server:
image: bluewaveuptime/uptime_server:latest
restart: always
ports:
- 5000
depends_on:
- redis
- mongodb
environment:
- DB_CONNECTION_STRING=mongodb://mongodb:27017/uptime_db
- REDIS_HOST=redis
networks:
- dokploy-network
# volumes:
# - /var/run/docker.sock:/var/run/docker.sock:ro
redis:
image: bluewaveuptime/uptime_redis:latest
restart: always
ports:
- 6379
volumes:
- ./redis/data:/data
networks:
- dokploy-network
mongodb:
image: bluewaveuptime/uptime_database_mongo:latest
restart: always
volumes:
- ./mongo/data:/data/db
command: ["mongod", "--quiet"]
ports:
- 27017
networks:
- dokploy-network
25 changes: 25 additions & 0 deletions apps/dokploy/templates/checkmate/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import {
type DomainSchema,
type Schema,
type Template,
generateRandomDomain,
} from "../utils";

export function generate(schema: Schema): Template {
const mainDomain = generateRandomDomain(schema);

const envs = [`DOMAIN=${mainDomain}`];

const domains: DomainSchema[] = [
{
host: mainDomain,
port: 80,
serviceName: "client",
},
];

return {
domains,
envs,
};
}
15 changes: 15 additions & 0 deletions apps/dokploy/templates/templates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1166,4 +1166,19 @@ export const templates: TemplateData[] = [
tags: ["self-hosted", "networking"],
load: () => import("./unifi/index").then((m) => m.generate),
},
{
id: "checkmate",
name: "Checkmate",
version: "2.0.1",
description:
"Checkmate is an open-source, self-hosted tool designed to track and monitor server hardware, uptime, response times, and incidents in real-time with beautiful visualizations.",
logo: "checkmate.png",
links: {
github: "https://github.com/bluewave-labs/checkmate",
website: "https://bluewavelabs.ca",
docs: "https://bluewavelabs.gitbook.io/checkmate",
},
tags: ["self-hosted", "monitoring", "uptime"],
load: () => import("./checkmate/index").then((m) => m.generate),
},
];

0 comments on commit 931f3fc

Please sign in to comment.