From 681a21a2388ffe4e06cd58eac55ad3e8d35ac1d0 Mon Sep 17 00:00:00 2001 From: Philipinho <16838612+Philipinho@users.noreply.github.com> Date: Fri, 28 Jun 2024 17:29:46 +0100 Subject: [PATCH] Update readme * Rename storage volume --- Dockerfile | 4 +- README.md | 95 +++++++++++++++++----------------------------- docker-compose.yml | 7 ++-- 3 files changed, 40 insertions(+), 66 deletions(-) diff --git a/Dockerfile b/Dockerfile index 78dd4cb7..3062ae1c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ FROM node:21-alpine AS base -FROM base as builder +FROM base AS builder WORKDIR /app @@ -10,7 +10,7 @@ RUN npm install -g pnpm RUN pnpm install --frozen-lockfile RUN pnpm build -FROM base as installer +FROM base AS installer RUN apk add --no-cache curl bash diff --git a/README.md b/README.md index 758dadd9..42445494 100644 --- a/README.md +++ b/README.md @@ -1,60 +1,35 @@ - -## Description -WIP - -## Installation -Make sure you have pnpm installed `npm install -g pnpm` - -```bash -$ git clone https://github.com/docmost/docmost -$ pnpm install -``` - -## Running the app - -### Development - -#### Frontend -```bash -$ pnpm nx run client:dev -``` -#### Backend -```bash -# build extension package first -$ nx run @docmost/editor-ext:build - -# development -$ pnpm nx run server:start - -# watch mode -$ pnpm nx run server:start:dev - -``` - -### Production -```bash -$ pnpm run build - -$ pnpm nx run server:start:prod -``` -The server will be available on `http://localhost:3000` - -## Migrations - -```bash -# This creates a new empty migration file named 'init' -$ pnpm nx run server:migration:create init - -# Generates 'init' migration file from existing entities to update the database schema -$ pnpm nx run server:migration:generate init - -# Runs all pending migrations to update the database schema -$ pnpm nx run server:migration:run - -# Reverts the last executed migration -$ pnpm nx run server:migration:revert - -# Shows the list of executed and pending migrations -$ pnpm nx run server:migration:show - -``` +
+

Docmost

+

+ Open-source collaborative wiki and documentation software. +
+ Website | + Documentation +

+
+
+ +> [!NOTE] +> Docmost is currently in **beta**. We value your feedback as we progress towards a stable release. + +## Getting started +To get started with Docmost, please refer to our [documentation](https://docmost.com/docs). + +## Features +- Real-time collaboration +- Spaces +- Permissions management +- Groups +- Comments +- Page history +- Search +- File attachment + +#### Screenshots +

+home +editor +

+ +### Contributing +See the [development doc](https://docmost.com/docs/self-hosting/development) diff --git a/docker-compose.yml b/docker-compose.yml index 5201ee0a..858b4434 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,7 +2,7 @@ version: '3' services: docmost: - image: docker.io/library/docmost:latest + image: docmost/docmost:latest depends_on: - db - redis @@ -11,12 +11,11 @@ services: APP_SECRET: 'REPLACE_WITH_LONG_SECRET' DATABASE_URL: 'postgresql://postgres:password@db:5432/docmost?schema=public' REDIS_URL: 'redis://redis:6379' - STORAGE_DRIVER: 'local' ports: - "3000:3000" restart: unless-stopped volumes: - - local_storage:/app/data/storage + - docmost:/app/data/storage db: image: postgres:16-alpine @@ -35,6 +34,6 @@ services: - redis_data:/data volumes: - local_storage: + docmost: db_data: redis_data: