mirror of
https://github.com/dnote/dnote
synced 2026-03-14 22:45:50 +01:00
Update self-hosting doc
This commit is contained in:
parent
f1d7123596
commit
10b13fea84
1 changed files with 14 additions and 13 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue