N8N-DASHBOARD/docker-compose.yml

30 lines
1.1 KiB
YAML
Raw Permalink Normal View History

# 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 and VITE_N8N_URL env vars (in Coolify's env tab)
# 4. Deploy — Coolify injects Traefik labels automatically
#
# Standalone (docker compose up):
# 1. Copy .env.example to .env at this dir root and set the URLs
# 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}
- VITE_N8N_URL=${VITE_N8N_URL:-http://localhost:5678}
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"