updated app templates
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
# =============================================================================
|
||||
# .felhom.yml — App metadata for felhom-controller
|
||||
# =============================================================================
|
||||
# Place alongside docker-compose.yml in each stack directory:
|
||||
# /opt/docker/stacks/docmost/.felhom.yml
|
||||
# =============================================================================
|
||||
|
||||
# --- Display info (shown on dashboard) ---
|
||||
display_name: "Docmost"
|
||||
description: "Modern wiki és dokumentáció platform (Notion-szerű)"
|
||||
category: "productivity"
|
||||
subdomain: "docs"
|
||||
|
||||
# --- Asset slug ---
|
||||
slug: "docmost"
|
||||
|
||||
# --- Resource hints (displayed on deploy screen) ---
|
||||
resources:
|
||||
mem_request: "200M"
|
||||
mem_limit: "768M"
|
||||
pi_compatible: false
|
||||
needs_hdd: false
|
||||
|
||||
# --- Deploy fields ---
|
||||
deploy_fields:
|
||||
- env_var: DOMAIN
|
||||
label: "Domain"
|
||||
type: domain
|
||||
description: "A szerver domain neve"
|
||||
locked_after_deploy: true
|
||||
|
||||
- env_var: APP_SECRET
|
||||
label: "Alkalmazás titkosítási kulcs"
|
||||
type: secret
|
||||
generate: "hex:32"
|
||||
locked_after_deploy: true
|
||||
|
||||
- env_var: DB_PASSWORD
|
||||
label: "Adatbázis jelszó"
|
||||
type: secret
|
||||
generate: "password:24"
|
||||
locked_after_deploy: true
|
||||
@@ -1,12 +1,12 @@
|
||||
# Docmost - Modern Wiki / Documentation (Notion-like)
|
||||
# Domain: docs.${DOMAIN}
|
||||
# Database: PostgreSQL + Redis
|
||||
# RAM: ~200MB | Pi-compatible: Heavy but possible
|
||||
# RAM: ~200MB (mem_limit: 768M total — docmost 384M + postgres 256M + redis 128M) | Pi-compatible: No (heavy)
|
||||
#
|
||||
# Environment variables (set in Portainer):
|
||||
# Environment variables:
|
||||
# DOMAIN - Your domain (e.g., demo-felhom.eu)
|
||||
# APP_SECRET - Random secret for session signing (generate with: openssl rand -hex 32)
|
||||
# DB_PASSWORD - PostgreSQL password
|
||||
# APP_SECRET - Random secret for session signing (auto-generated)
|
||||
# DB_PASSWORD - PostgreSQL password (auto-generated)
|
||||
#
|
||||
# First-time setup:
|
||||
# First registered user becomes admin.
|
||||
@@ -28,11 +28,16 @@ services:
|
||||
- APP_URL=https://docs.${DOMAIN}
|
||||
- STORAGE_DRIVER=local
|
||||
- FILE_UPLOAD_SIZE_LIMIT=50mb
|
||||
- TZ=Europe/Budapest
|
||||
volumes:
|
||||
- docmost_storage:/app/data/storage
|
||||
networks:
|
||||
- traefik-public
|
||||
- docmost-internal
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
memory: 384M
|
||||
healthcheck:
|
||||
test: ["CMD", "node", "-e", "const http = require('http'); http.get('http://localhost:3000/', (r) => { process.exit(r.statusCode === 200 ? 0 : 1) }).on('error', () => process.exit(1))"]
|
||||
interval: 30s
|
||||
@@ -55,10 +60,15 @@ services:
|
||||
- POSTGRES_USER=docmost
|
||||
- POSTGRES_PASSWORD=${DB_PASSWORD}
|
||||
- POSTGRES_DB=docmost
|
||||
- TZ=Europe/Budapest
|
||||
volumes:
|
||||
- docmost_postgres_data:/var/lib/postgresql/data
|
||||
networks:
|
||||
- docmost-internal
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
memory: 256M
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U docmost -d docmost"]
|
||||
interval: 10s
|
||||
@@ -71,10 +81,16 @@ services:
|
||||
container_name: docmost-redis
|
||||
restart: unless-stopped
|
||||
command: redis-server --appendonly yes
|
||||
environment:
|
||||
- TZ=Europe/Budapest
|
||||
volumes:
|
||||
- docmost_redis_data:/data
|
||||
networks:
|
||||
- docmost-internal
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
memory: 128M
|
||||
healthcheck:
|
||||
test: ["CMD", "redis-cli", "ping"]
|
||||
interval: 10s
|
||||
@@ -89,4 +105,4 @@ volumes:
|
||||
networks:
|
||||
traefik-public:
|
||||
external: true
|
||||
docmost-internal:
|
||||
docmost-internal:
|
||||
|
||||
Reference in New Issue
Block a user