From 10b13fea84eb2ca80fd1dacd9fa92792827fd7b0 Mon Sep 17 00:00:00 2001 From: Sung Date: Sat, 1 Nov 2025 15:00:28 -0700 Subject: [PATCH] Update self-hosting doc --- SELF_HOSTING.md | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/SELF_HOSTING.md b/SELF_HOSTING.md index 3638cb01..e67df891 100644 --- a/SELF_HOSTING.md +++ b/SELF_HOSTING.md @@ -6,27 +6,28 @@ Please see the [doc](https://www.getdnote.com/docs/server) for more. 1. Install [Docker](https://docs.docker.com/install/). 2. Install Docker [Compose plugin](https://docs.docker.com/compose/install/linux/). -3. Download the [compose.yml](https://raw.githubusercontent.com/dnote/dnote/master/host/docker/compose.yml) file by running: +3. Create a `compose.yml` file with the following content: -``` -curl https://raw.githubusercontent.com/dnote/dnote/master/host/docker/compose.yml > compose.yml +```yaml +services: + dnote: + image: dnote/dnote:latest + container_name: dnote + ports: + - 3001:3001 + volumes: + - ./dnote_data:/data + restart: unless-stopped ``` -4. Run the following to download the images and run the containers +4. Run the following to download the image and start the container ``` -docker compose pull docker compose up -d ``` Visit http://localhost:3001 in your browser to see Dnote running. -### Supported platform - -Currently, the official Docker image for Dnote supports Linux running AMD64 CPU architecture. - -If you run ARM64, please install Dnote server by downloading a binary distribution (see below). - ## Manual Installation Download from [releases](https://github.com/dnote/dnote/releases), extract, and run: @@ -34,7 +35,7 @@ Download from [releases](https://github.com/dnote/dnote/releases), extract, and ```bash tar -xzf dnote-server-$version-$os.tar.gz mv ./dnote-server /usr/local/bin -dnote-server start --webUrl=https://your.server +dnote-server start --baseUrl=https://your.server ``` You're up and running. Database: `~/.local/share/dnote/server.db` (customize with `--dbPath`). Run `dnote-server start --help` for options.