Skip to content

fix: update compose example #16

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 8 additions & 10 deletions docs/self-hosting/installation/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,27 +60,25 @@ The downloaded `docker-compose.yml` file should contain the template below with
:::

```yaml title="docmost/docker-compose.yml"
version: "3"

services:
docmost:
image: docmost/docmost:latest
depends_on:
- db
- redis
- valkey
environment:
APP_URL: "http://localhost:3000"
APP_SECRET: "REPLACE_WITH_LONG_SECRET"
DATABASE_URL: "postgresql://docmost:STRONG_DB_PASSWORD@db:5432/docmost?schema=public"
REDIS_URL: "redis://redis:6379"
REDIS_URL: "redis://valkey:6379"
ports:
- "3000:3000"
restart: unless-stopped
volumes:
- docmost:/app/data/storage

db:
image: postgres:16-alpine
image: postgres:17-alpine
environment:
POSTGRES_DB: docmost
POSTGRES_USER: docmost
Expand All @@ -89,16 +87,16 @@ services:
volumes:
- db_data:/var/lib/postgresql/data

redis:
image: redis:7.2-alpine
valkey:
image: valkey/valkey:alpine
restart: unless-stopped
volumes:
- redis_data:/data
- valkey_data:/data

volumes:
docmost:
db_data:
redis_data:
valkey_data:
```

For health check, a dedicated endpoint is available at `YOUR_URL/api/health`.
Expand Down Expand Up @@ -153,7 +151,7 @@ To upgrade to the latest Docmost version, run the following commands:

```shell
docker pull docmost/docmost:latest
docker compose up --force-recreate --build docmost -d
docker compose up --force-recreate -d
```

## Helpful docker commands
Expand Down