add uptimekit

This commit is contained in:
iRazz
2026-05-15 04:13:23 +03:00
parent 1cde3fac82
commit eaff380d77
3 changed files with 122 additions and 0 deletions

View File

@@ -0,0 +1,95 @@
services:
dash:
image: ghcr.io/uptimekit/dash:latest
ports:
- "${DASH_PORT:-3000}:3000"
env_file:
- .env
environment:
- DATABASE_URL=postgresql://postgres:postgres@db:5432/uptimekit
- CLICKHOUSE_URL=http://clickhouse:8123
- CLICKHOUSE_USER=default
- CLICKHOUSE_PASSWORD=clickhouse
- REDIS_URL=redis://redis:6379
depends_on:
db:
condition: service_healthy
redis:
condition: service_started
healthcheck:
test:
[
"CMD-SHELL",
"IP=$$(hostname -i | awk '{print $$1}'); wget -qO- \"http://$$IP:3000/api/health\" >/dev/null 2>&1",
]
interval: 5s
timeout: 5s
retries: 12
start_period: 20s
restart: always
status-page:
image: ghcr.io/uptimekit/status-page:latest
ports:
- "${STATUS_PAGE_PORT:-3001}:3001"
env_file:
- .env
environment:
- DATABASE_URL=postgresql://postgres:postgres@db:5432/uptimekit
- CLICKHOUSE_URL=http://clickhouse:8123
- CLICKHOUSE_USER=default
- CLICKHOUSE_PASSWORD=clickhouse
- REDIS_URL=redis://redis:6379
depends_on:
db:
condition: service_healthy
redis:
condition: service_started
clickhouse:
condition: service_started
dash:
condition: service_healthy
restart: always
db:
image: postgres:18-alpine
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: uptimekit
volumes:
- db_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d uptimekit"]
interval: 5s
timeout: 5s
retries: 12
start_period: 10s
restart: always
redis:
image: redis:8.0-alpine
volumes:
- redis_data:/data
restart: always
clickhouse:
image: clickhouse/clickhouse-server:latest
volumes:
- clickhouse_data:/var/lib/clickhouse
environment:
CLICKHOUSE_DB: uptimekit
CLICKHOUSE_USER: default
CLICKHOUSE_PASSWORD: clickhouse
CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT: 1
user: "root"
ulimits:
nofile:
soft: 262144
hard: 262144
restart: always
volumes:
db_data:
clickhouse_data:
redis_data:

View File

@@ -0,0 +1,24 @@
[variables]
main_domain = "${domain}"
second_domain = "${domain}"
secret_base = "${base64:64}"
[config]
[[config.domains]]
serviceName = "dash"
port = 3000
host = "${main_domain}"
[[config.domains]]
serviceName = "status-page"
port = 3001
host = "${second_domain}"
[config.env]
BETTER_AUTH_SECRET = "${secret_base}"
BETTER_AUTH_URL = "${main_domain}"
NEXT_PUBLIC_URL = "${main_domain}"
DASH_PORT=3000
STATUS_PAGE_PORT=3001
[[config.mounts]]

View File

@@ -0,0 +1,3 @@
<svg width="1500" height="1715" viewBox="0 0 1500 1715" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M300 142.917C134.314 142.917 0 270.889 0 428.75V1286.25C0 1444.11 134.314 1572.08 300 1572.08H1200C1365.69 1572.08 1500 1444.11 1500 1286.25V428.75C1500 270.889 1365.69 142.917 1200 142.917H300ZM412.5 696.719H786.169L346.209 1115.9L478.793 1242.22L918.75 823.039V1179.06H1106.25V607.396C1106.25 558.065 1064.28 518.073 1012.5 518.073H412.5V696.719Z" fill="white"/>
</svg>

After

Width:  |  Height:  |  Size: 525 B