- Vite + React + Tailwind SPA reading from PocketBase - Realtime subscriptions on workflows + executions collections - Coolify-ready Dockerfile (multi-stage node build → nginx serve) - PocketBase URL configurable via VITE_POCKETBASE_URL build arg - Schema import (workflows, executions) included
28 lines
1 KiB
YAML
28 lines
1 KiB
YAML
# Coolify-ready compose for the n8n Workflow Monitor dashboard.
|
|
#
|
|
# In Coolify:
|
|
# 1. New Resource → Docker Compose
|
|
# 2. Point it at this file
|
|
# 3. Set the VITE_POCKETBASE_URL env var (in Coolify's env tab) to your real PB URL
|
|
# 4. Deploy — Coolify injects Traefik labels automatically
|
|
#
|
|
# Standalone (docker compose up):
|
|
# 1. Copy .env.example to .env at this dir root and set VITE_POCKETBASE_URL
|
|
# 2. docker compose up --build
|
|
# 3. Open http://localhost:8080
|
|
|
|
services:
|
|
n8n-monitor-dashboard:
|
|
build:
|
|
context: ./dashboard
|
|
dockerfile: Dockerfile
|
|
args:
|
|
# Falls back to localhost if env var isn't set; Coolify should set this.
|
|
- VITE_POCKETBASE_URL=${VITE_POCKETBASE_URL:-http://127.0.0.1:8090}
|
|
image: n8n-monitor-dashboard:latest
|
|
container_name: n8n-monitor-dashboard
|
|
restart: unless-stopped
|
|
# Map container port 80 → host 8080. Coolify will override routing via Traefik labels.
|
|
# If you're using Coolify, you can delete this ports block — Coolify sets its own.
|
|
ports:
|
|
- "8080:80"
|