87d0e5e59d
All 51 docker-compose.yml: replaced hardcoded subdomain.${DOMAIN}
with ${SUBDOMAIN}.${DOMAIN} in Traefik labels, app env vars, and
comments.
All 51 .felhom.yml: added SUBDOMAIN deploy field (type: subdomain)
with default matching existing subdomain metadata value.
Works with felhom-controller v0.27.0 which validates and stores the
user-chosen subdomain in app.yaml. Existing deployed apps get
SUBDOMAIN auto-injected via InjectMissingFields() on next sync.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
109 lines
3.0 KiB
YAML
109 lines
3.0 KiB
YAML
# Docmost - Modern Wiki / Documentation (Notion-like)
|
|
# Domain: ${SUBDOMAIN}.${DOMAIN}
|
|
# Database: PostgreSQL + Redis
|
|
# RAM: ~200MB (mem_limit: 768M total — docmost 384M + postgres 256M + redis 128M) | Pi-compatible: No (heavy)
|
|
#
|
|
# Environment variables:
|
|
# DOMAIN - Your domain (e.g., demo-felhom.eu)
|
|
# APP_SECRET - Random secret for session signing (auto-generated)
|
|
# DB_PASSWORD - PostgreSQL password (auto-generated)
|
|
#
|
|
# First-time setup:
|
|
# First registered user becomes admin.
|
|
|
|
services:
|
|
docmost:
|
|
image: docmost/docmost:0.25.3
|
|
container_name: docmost
|
|
restart: unless-stopped
|
|
depends_on:
|
|
docmost-postgres:
|
|
condition: service_healthy
|
|
docmost-redis:
|
|
condition: service_healthy
|
|
environment:
|
|
- APP_SECRET=${APP_SECRET}
|
|
- DATABASE_URL=postgresql://docmost:${DB_PASSWORD}@docmost-postgres:5432/docmost
|
|
- REDIS_URL=redis://docmost-redis:6379
|
|
- APP_URL=https://${SUBDOMAIN}.${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
|
|
timeout: 5s
|
|
retries: 3
|
|
start_period: 30s
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.docmost.rule=Host(`${SUBDOMAIN}.${DOMAIN}`)"
|
|
- "traefik.http.routers.docmost.entrypoints=websecure"
|
|
- "traefik.http.routers.docmost.tls=true"
|
|
- "traefik.http.routers.docmost.tls.certresolver=letsencrypt"
|
|
- "traefik.http.services.docmost.loadbalancer.server.port=3000"
|
|
|
|
docmost-postgres:
|
|
image: postgres:16-alpine
|
|
container_name: docmost-postgres
|
|
restart: unless-stopped
|
|
environment:
|
|
- 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
|
|
timeout: 5s
|
|
retries: 5
|
|
start_period: 20s
|
|
|
|
docmost-redis:
|
|
image: redis:7-alpine
|
|
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
|
|
timeout: 5s
|
|
retries: 3
|
|
|
|
volumes:
|
|
docmost_storage:
|
|
docmost_postgres_data:
|
|
docmost_redis_data:
|
|
|
|
networks:
|
|
traefik-public:
|
|
external: true
|
|
docmost-internal:
|