mirror of
https://github.com/dnote/dnote
synced 2026-03-14 22:45:50 +01:00
Compare commits
1 commit
master
...
selfhostdo
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
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/).
|
1. Install [Docker](https://docs.docker.com/install/).
|
||||||
2. Install Docker [Compose plugin](https://docs.docker.com/compose/install/linux/).
|
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:
|
||||||
|
|
||||||
```
|
```yaml
|
||||||
curl https://raw.githubusercontent.com/dnote/dnote/master/host/docker/compose.yml > compose.yml
|
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
|
docker compose up -d
|
||||||
```
|
```
|
||||||
|
|
||||||
Visit http://localhost:3001 in your browser to see Dnote running.
|
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
|
## Manual Installation
|
||||||
|
|
||||||
Download from [releases](https://github.com/dnote/dnote/releases), extract, and run:
|
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
|
```bash
|
||||||
tar -xzf dnote-server-$version-$os.tar.gz
|
tar -xzf dnote-server-$version-$os.tar.gz
|
||||||
mv ./dnote-server /usr/local/bin
|
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.
|
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