Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 65 additions & 0 deletions blueprints/foliowiki/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
services:
foliowiki:
image: ghcr.io/evergreen-it-dev/folio:v0.4.6
restart: unless-stopped
environment:
NODE_ENV: production
PORT: '4870'
DATABASE_URL: postgresql://folio:${POSTGRES_PASSWORD}@postgres:5432/folio
REDIS_URL: redis://redis:6379
PUBLIC_URL: ${PUBLIC_URL}
ASSET_BACKEND: local
FOLIO_SECRET: ${FOLIO_SECRET}
GOOGLE_CLIENT_ID: ${GOOGLE_CLIENT_ID:-}
GOOGLE_CLIENT_SECRET: ${GOOGLE_CLIENT_SECRET:-}
GOOGLE_ALLOWED_DOMAINS: ${GOOGLE_ALLOWED_DOMAINS:-}
CURSOR_API_KEY: ${CURSOR_API_KEY:-}
CURSOR_AGENT_WORKSPACE_ROOT: /app/data/assistant/workspaces
CURSOR_AGENT_STATE_DIR: /app/data/assistant/state
volumes:
- folio-data:/app/data
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
healthcheck:
test:
- CMD
- node
- -e
- "fetch('http://127.0.0.1:4870/api/health').then((r)=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))"
interval: 30s
timeout: 5s
retries: 3
start_period: 60s

postgres:
image: postgres:17-alpine
restart: unless-stopped
environment:
POSTGRES_USER: folio
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: folio
volumes:
- folio-pg:/var/lib/postgresql/data
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U folio -d folio']
interval: 5s
timeout: 5s
retries: 20

# Transient data only (presence, rate limits): persistence is off on purpose.
redis:
image: redis:7-alpine
restart: unless-stopped
command: redis-server --save '' --appendonly no
healthcheck:
test: ['CMD', 'redis-cli', 'ping']
interval: 5s
timeout: 5s
retries: 20

volumes:
folio-data: {}
folio-pg: {}
26 changes: 26 additions & 0 deletions blueprints/foliowiki/foliowiki.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions blueprints/foliowiki/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"id": "foliowiki",
"name": "Folio Wiki",
"version": "v0.4.6",
"description": "Folio (foliowiki) is a git-native collaborative wiki with a built-in AI assistant and an MCP server for AI agents: pages are plain files in a Git repository, edited together in real time, with access rights and history.",
"logo": "foliowiki.svg",
"links": {
"github": "https://github.com/evergreen-it-dev/folio",
"website": "https://foliowiki.online",
"docs": "https://github.com/evergreen-it-dev/folio/blob/main/docs/INSTALL.md"
},
"tags": ["ai", "wiki", "knowledge-base", "self-hosted"]
}
21 changes: 21 additions & 0 deletions blueprints/foliowiki/template.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[variables]
main_domain = "${domain}"
postgres_password = "${hash:24}"
folio_secret = "${hash:32}"

[config]
env = [
"PUBLIC_URL=https://${main_domain}",
"POSTGRES_PASSWORD=${postgres_password}",
"FOLIO_SECRET=${folio_secret}",
"GOOGLE_CLIENT_ID=",
"GOOGLE_CLIENT_SECRET=",
"GOOGLE_ALLOWED_DOMAINS=",
"CURSOR_API_KEY=",
]
mounts = []

[[config.domains]]
serviceName = "foliowiki"
port = 4870
host = "${main_domain}"
Loading