hoàn thành tích hợp FSRS

This commit is contained in:
2026-04-26 19:31:29 +07:00
parent a573acedd0
commit 8459801ca9
33 changed files with 997 additions and 185 deletions
+12 -10
View File
@@ -1,38 +1,40 @@
services:
docmost:
image: docmost/docmost:latest
image: ghcr.io/victorphan03/docmost:v1.0.0
depends_on:
- db
- redis
environment:
APP_URL: 'http://localhost:3000'
APP_SECRET: 'REPLACE_WITH_LONG_SECRET'
# THAY ĐỔI: Địa chỉ IP hoặc Domain của server mới
APP_URL: 'http://your-server-ip:3000'
# THAY ĐỔI: Một chuỗi ký tự ngẫu nhiên dài để bảo mật
APP_SECRET: '32_KY_TU_NGAU_NHIEN_BAT_KY'
DATABASE_URL: 'postgresql://docmost:STRONG_DB_PASSWORD@db:5432/docmost'
REDIS_URL: 'redis://redis:6379'
ports:
- "3000:3000"
restart: unless-stopped
volumes:
- docmost:/app/data/storage
- docmost_data:/app/data/storage
db:
image: postgres:18
image: postgres:16-alpine
environment:
POSTGRES_DB: docmost
POSTGRES_USER: docmost
POSTGRES_PASSWORD: STRONG_DB_PASSWORD
restart: unless-stopped
volumes:
- db_data:/var/lib/postgresql
- postgres_data:/var/lib/postgresql/data
redis:
image: redis:8
command: ["redis-server", "--appendonly", "yes", "--maxmemory-policy", "noeviction"]
image: redis:7-alpine
command: ["redis-server", "--appendonly", "yes"]
restart: unless-stopped
volumes:
- redis_data:/data
volumes:
docmost:
db_data:
docmost_data:
postgres_data:
redis_data: