updated app templates
This commit is contained in:
@@ -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