mirror of
https://github.com/Dokploy/templates.git
synced 2026-11-10 01:33:12 -06:00
Compare commits
25
Commits
@@ -0,0 +1,184 @@
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:15-alpine
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
POSTGRES_USER: oneuptime
|
||||
POSTGRES_PASSWORD: ${DATABASE_PASSWORD}
|
||||
POSTGRES_DB: oneuptime
|
||||
volumes:
|
||||
- postgres_data:/var/lib/postgresql/data
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U oneuptime"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
redis:
|
||||
image: redis:7-alpine
|
||||
restart: unless-stopped
|
||||
command: redis-server --requirepass ${REDIS_PASSWORD}
|
||||
environment:
|
||||
REDISCLI_AUTH: ${REDIS_PASSWORD}
|
||||
volumes:
|
||||
- redis_data:/data
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "redis-cli ping"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
clickhouse:
|
||||
image: clickhouse/clickhouse-server:23.8-alpine
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
CLICKHOUSE_DB: oneuptime
|
||||
CLICKHOUSE_USER: default
|
||||
CLICKHOUSE_PASSWORD: ${CLICKHOUSE_PASSWORD}
|
||||
CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT: 1
|
||||
volumes:
|
||||
- clickhouse_data:/var/lib/clickhouse
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "clickhouse-client --query 'SELECT 1'"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
home:
|
||||
image: oneuptime/home:${ONEUPTIME_VERSION}
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
DATABASE_HOST: postgres
|
||||
DATABASE_PORT: 5432
|
||||
DATABASE_USERNAME: oneuptime
|
||||
DATABASE_PASSWORD: ${DATABASE_PASSWORD}
|
||||
DATABASE_NAME: oneuptime
|
||||
REDIS_HOST: redis
|
||||
REDIS_PORT: 6379
|
||||
REDIS_PASSWORD: ${REDIS_PASSWORD}
|
||||
CLICKHOUSE_HOST: clickhouse
|
||||
CLICKHOUSE_PORT: 8123
|
||||
CLICKHOUSE_USER: default
|
||||
CLICKHOUSE_PASSWORD: ${CLICKHOUSE_PASSWORD}
|
||||
CLICKHOUSE_DATABASE: oneuptime
|
||||
SERVER_URL: http://${ONEUPTIME_HOST}
|
||||
ENCRYPTION_SECRET: ${ENCRYPTION_SECRET}
|
||||
ONEUPTIME_SECRET: ${ONEUPTIME_SECRET}
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
redis:
|
||||
condition: service_healthy
|
||||
clickhouse:
|
||||
condition: service_healthy
|
||||
|
||||
dashboard:
|
||||
image: oneuptime/dashboard:${ONEUPTIME_VERSION}
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
DATABASE_HOST: postgres
|
||||
DATABASE_PORT: 5432
|
||||
DATABASE_USERNAME: oneuptime
|
||||
DATABASE_PASSWORD: ${DATABASE_PASSWORD}
|
||||
DATABASE_NAME: oneuptime
|
||||
REDIS_HOST: redis
|
||||
REDIS_PORT: 6379
|
||||
REDIS_PASSWORD: ${REDIS_PASSWORD}
|
||||
SERVER_URL: http://${ONEUPTIME_HOST}
|
||||
ONEUPTIME_SECRET: ${ONEUPTIME_SECRET}
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
redis:
|
||||
condition: service_healthy
|
||||
|
||||
accounts:
|
||||
image: oneuptime/accounts:${ONEUPTIME_VERSION}
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
DATABASE_HOST: postgres
|
||||
DATABASE_PORT: 5432
|
||||
DATABASE_USERNAME: oneuptime
|
||||
DATABASE_PASSWORD: ${DATABASE_PASSWORD}
|
||||
DATABASE_NAME: oneuptime
|
||||
REDIS_HOST: redis
|
||||
REDIS_PORT: 6379
|
||||
REDIS_PASSWORD: ${REDIS_PASSWORD}
|
||||
SERVER_URL: http://${ONEUPTIME_HOST}
|
||||
ONEUPTIME_SECRET: ${ONEUPTIME_SECRET}
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
redis:
|
||||
condition: service_healthy
|
||||
|
||||
status-page:
|
||||
image: oneuptime/status-page:${ONEUPTIME_VERSION}
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
DATABASE_HOST: postgres
|
||||
DATABASE_PORT: 5432
|
||||
DATABASE_USERNAME: oneuptime
|
||||
DATABASE_PASSWORD: ${DATABASE_PASSWORD}
|
||||
DATABASE_NAME: oneuptime
|
||||
REDIS_HOST: redis
|
||||
REDIS_PORT: 6379
|
||||
REDIS_PASSWORD: ${REDIS_PASSWORD}
|
||||
SERVER_URL: http://${ONEUPTIME_HOST}
|
||||
ONEUPTIME_SECRET: ${ONEUPTIME_SECRET}
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
redis:
|
||||
condition: service_healthy
|
||||
|
||||
app:
|
||||
image: oneuptime/app:${ONEUPTIME_VERSION}
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
DATABASE_HOST: postgres
|
||||
DATABASE_PORT: 5432
|
||||
DATABASE_USERNAME: oneuptime
|
||||
DATABASE_PASSWORD: ${DATABASE_PASSWORD}
|
||||
DATABASE_NAME: oneuptime
|
||||
REDIS_HOST: redis
|
||||
REDIS_PORT: 6379
|
||||
REDIS_PASSWORD: ${REDIS_PASSWORD}
|
||||
CLICKHOUSE_HOST: clickhouse
|
||||
CLICKHOUSE_PORT: 8123
|
||||
CLICKHOUSE_USER: default
|
||||
CLICKHOUSE_PASSWORD: ${CLICKHOUSE_PASSWORD}
|
||||
CLICKHOUSE_DATABASE: oneuptime
|
||||
SERVER_URL: http://${ONEUPTIME_HOST}
|
||||
ENCRYPTION_SECRET: ${ENCRYPTION_SECRET}
|
||||
ONEUPTIME_SECRET: ${ONEUPTIME_SECRET}
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
redis:
|
||||
condition: service_healthy
|
||||
clickhouse:
|
||||
condition: service_healthy
|
||||
|
||||
probe:
|
||||
image: oneuptime/probe:${ONEUPTIME_VERSION}
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
DATABASE_HOST: postgres
|
||||
DATABASE_PORT: 5432
|
||||
DATABASE_USERNAME: oneuptime
|
||||
DATABASE_PASSWORD: ${DATABASE_PASSWORD}
|
||||
DATABASE_NAME: oneuptime
|
||||
SERVER_URL: http://${ONEUPTIME_HOST}
|
||||
ONEUPTIME_URL: http://${ONEUPTIME_HOST}
|
||||
ONEUPTIME_SECRET: ${ONEUPTIME_SECRET}
|
||||
PROBE_KEY: ${PROBE_KEY}
|
||||
PROBE_NAME: ${PROBE_NAME}
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
|
||||
volumes:
|
||||
postgres_data:
|
||||
redis_data:
|
||||
clickhouse_data:
|
||||
@@ -0,0 +1,25 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="512" height="512">
|
||||
<defs>
|
||||
<linearGradient id="gradient" x1="0%" y1="0%" x2="100%" y2="100%">
|
||||
<stop offset="0%" style="stop-color:#4F46E5;stop-opacity:1" />
|
||||
<stop offset="100%" style="stop-color:#7C3AED;stop-opacity:1" />
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<!-- Background circle -->
|
||||
<circle cx="256" cy="256" r="240" fill="url(#gradient)"/>
|
||||
<!-- Uptime arrow/chart icon -->
|
||||
<g fill="white">
|
||||
<!-- Base line -->
|
||||
<rect x="120" y="340" width="272" height="12" rx="6"/>
|
||||
<!-- Vertical bars representing uptime -->
|
||||
<rect x="140" y="260" width="40" height="80" rx="8"/>
|
||||
<rect x="200" y="200" width="40" height="140" rx="8"/>
|
||||
<rect x="260" y="160" width="40" height="180" rx="8"/>
|
||||
<rect x="320" y="140" width="40" height="200" rx="8"/>
|
||||
<!-- Up arrow -->
|
||||
<path d="M 380 180 L 420 200 L 420 240 L 400 240 L 400 280 L 360 280 L 360 240 L 340 240 L 340 200 Z" opacity="0.9"/>
|
||||
</g>
|
||||
<!-- Check/tick mark overlay -->
|
||||
<circle cx="380" cy="150" r="45" fill="#10B981"/>
|
||||
<path d="M 360 150 L 375 165 L 400 140" stroke="white" stroke-width="8" stroke-linecap="round" stroke-linejoin="round" fill="none"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.2 KiB |
@@ -0,0 +1,30 @@
|
||||
[variables]
|
||||
main_domain = "${domain}"
|
||||
oneuptime_version = "release"
|
||||
database_password = "${password:32}"
|
||||
redis_password = "${password:32}"
|
||||
clickhouse_password = "${password:32}"
|
||||
encryption_secret = "${password:64}"
|
||||
oneuptime_secret = "${password:64}"
|
||||
probe_key = "${password:32}"
|
||||
probe_name = "Dokploy Probe"
|
||||
|
||||
|
||||
[config]
|
||||
env = [
|
||||
"ONEUPTIME_HOST=${main_domain}",
|
||||
"ONEUPTIME_VERSION=${oneuptime_version}",
|
||||
"DATABASE_PASSWORD=${database_password}",
|
||||
"REDIS_PASSWORD=${redis_password}",
|
||||
"CLICKHOUSE_PASSWORD=${clickhouse_password}",
|
||||
"ENCRYPTION_SECRET=${encryption_secret}",
|
||||
"ONEUPTIME_SECRET=${oneuptime_secret}",
|
||||
"PROBE_KEY=${probe_key}",
|
||||
"PROBE_NAME=${probe_name}",
|
||||
]
|
||||
mounts = []
|
||||
|
||||
[[config.domains]]
|
||||
serviceName = "home"
|
||||
port = 3002
|
||||
host = "${main_domain}"
|
||||
@@ -4260,6 +4260,25 @@
|
||||
"secure"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "oneuptime",
|
||||
"name": "OneUptime",
|
||||
"version": "release",
|
||||
"description": "Complete open-source observability platform with uptime monitoring, status pages, incident management, and on-call scheduling.",
|
||||
"logo": "logo.svg",
|
||||
"links": {
|
||||
"github": "https://github.com/OneUptime/oneuptime",
|
||||
"website": "https://oneuptime.com/",
|
||||
"docs": "https://oneuptime.com/docs"
|
||||
},
|
||||
"tags": [
|
||||
"monitoring",
|
||||
"uptime",
|
||||
"observability",
|
||||
"status-page",
|
||||
"incident-management"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "ontime",
|
||||
"name": "Ontime",
|
||||
|
||||
Reference in New Issue
Block a user