---
title: Outline
url: 'https://www.handtrixxx.com/de/wiki/self-hosted/outline'
markdown: 'https://www.handtrixxx.com/de/wiki/self-hosted/outline.md'
lang: de
date: '2026-03-17'
description: 'Outline Installation Volumes mkdir data mkdir db mkdir redis compose.yml services: outline: image: docker.getoutline.com/outlinewiki/outline:latest env_file: ./.env volumes: - ./data:/var/lib/outline/data depends_on: - postgres - redis networks: - defa…'
---

#  Outline 

![](https://www.handtrixxx.com/user/pages/wiki/02.self-hosted/outline/outline.png)

# Installation

## Volumes

```bash
mkdir data
mkdir db
mkdir redis
```

## compose.yml

```yaml
<span class="hljs-attr">services:</span>
  <span class="hljs-attr">outline:</span>
    <span class="hljs-attr">image:</span> <span class="hljs-string">docker.getoutline.com/outlinewiki/outline:latest</span>
    <span class="hljs-attr">env_file:</span> <span class="hljs-string">./.env</span>
    <span class="hljs-attr">volumes:</span>
      <span class="hljs-bullet">-</span> <span class="hljs-string">./data:/var/lib/outline/data</span>
    <span class="hljs-attr">depends_on:</span>
      <span class="hljs-bullet">-</span> <span class="hljs-string">postgres</span>
      <span class="hljs-bullet">-</span> <span class="hljs-string">redis</span>
    <span class="hljs-attr">networks:</span>
      <span class="hljs-bullet">-</span> <span class="hljs-string">default</span>
      <span class="hljs-bullet">-</span> <span class="hljs-string">caddy</span>

  <span class="hljs-attr">redis:</span>
    <span class="hljs-attr">image:</span> <span class="hljs-string">redis</span>
    <span class="hljs-attr">env_file:</span> <span class="hljs-string">./.env</span>
    <span class="hljs-attr">volumes:</span>
      <span class="hljs-bullet">-</span> <span class="hljs-string">./redis:/redis.conf</span>
    <span class="hljs-attr">command:</span> <span class="hljs-string">["redis-server",</span> <span class="hljs-string">"/redis.conf"</span><span class="hljs-string">]</span>
    <span class="hljs-attr">healthcheck:</span>
      <span class="hljs-attr">test:</span> <span class="hljs-string">["CMD",</span> <span class="hljs-string">"redis-cli"</span><span class="hljs-string">,</span> <span class="hljs-string">"ping"</span><span class="hljs-string">]</span>
      <span class="hljs-attr">interval:</span> <span class="hljs-string">10s</span>
      <span class="hljs-attr">timeout:</span> <span class="hljs-string">30s</span>
      <span class="hljs-attr">retries:</span> <span class="hljs-number">3</span>
    <span class="hljs-attr">networks:</span>
      <span class="hljs-bullet">-</span> <span class="hljs-string">default</span>

  <span class="hljs-attr">postgres:</span>
    <span class="hljs-attr">image:</span> <span class="hljs-string">postgres</span>
    <span class="hljs-attr">env_file:</span> <span class="hljs-string">./.env</span>
    <span class="hljs-attr">user:</span> <span class="hljs-string">"1000:1000"</span>
    <span class="hljs-attr">volumes:</span>
      <span class="hljs-bullet">-</span> <span class="hljs-string">./db:/var/lib/postgresql</span>
    <span class="hljs-attr">healthcheck:</span>
      <span class="hljs-attr">test:</span> <span class="hljs-string">["CMD",</span> <span class="hljs-string">"pg_isready"</span><span class="hljs-string">,</span> <span class="hljs-string">"-d"</span><span class="hljs-string">,</span> <span class="hljs-string">"outline"</span><span class="hljs-string">,</span> <span class="hljs-string">"-U"</span><span class="hljs-string">,</span> <span class="hljs-string">"user"</span><span class="hljs-string">]</span>
      <span class="hljs-attr">interval:</span> <span class="hljs-string">30s</span>
      <span class="hljs-attr">timeout:</span> <span class="hljs-string">20s</span>
      <span class="hljs-attr">retries:</span> <span class="hljs-number">3</span>
    <span class="hljs-attr">networks:</span>
      <span class="hljs-bullet">-</span> <span class="hljs-string">default</span>
<span class="hljs-attr">networks:</span>
    <span class="hljs-attr">caddy:</span>
        <span class="hljs-attr">external:</span> <span class="hljs-literal">true</span>
```

## .env

```bash
NODE_ENV=production

<span class="hljs-comment"># This URL should point to the fully qualified, publicly accessible, URL. If using a</span>
<span class="hljs-comment"># proxy this will be the proxy's URL.</span>
URL=https://docs.niklas-stephan.de

<span class="hljs-comment"># The port to expose the Outline server on, this should match what is configured</span>
<span class="hljs-comment"># in your docker-compose.yml</span>
PORT=80

<span class="hljs-comment"># See [documentation](docs/SERVICES.md) on running a separate collaboration</span>
<span class="hljs-comment"># server, for normal operation this does not need to be set.</span>
COLLABORATION_URL=

<span class="hljs-comment"># If using a Cloudfront/Cloudflare distribution or similar it can be set below.</span>
<span class="hljs-comment"># This will cause paths to javascript, stylesheets, and images to be updated to</span>
<span class="hljs-comment"># the hostname defined in CDN_URL. In your CDN configuration the origin server</span>
<span class="hljs-comment"># should be set to the same as URL.</span>
CDN_URL=

<span class="hljs-comment"># How many processes should be spawned. As a reasonable rule divide your servers</span>
<span class="hljs-comment"># available memory by 512 for a rough estimate</span>
WEB_CONCURRENCY=2

<span class="hljs-comment"># Generate a hex-encoded 32-byte random key. Use `openssl rand -hex 32` in your</span>
<span class="hljs-comment"># terminal to generate a random value.</span>
SECRET_KEY=SETKEY

<span class="hljs-comment"># Generate a unique random key. The format is not important but you could still use</span>
<span class="hljs-comment"># `openssl rand -hex 32` in your terminal to generate a random value.</span>
UTILS_SECRET=SETKEY

<span class="hljs-comment"># The default interface language. See translate.getoutline.com for a list of</span>
<span class="hljs-comment"># available language codes and their rough percentage translated.</span>
DEFAULT_LANGUAGE=en_US

<span class="hljs-comment"># ––––––––––––––––––––––––––––––––––––––</span>
<span class="hljs-comment"># –––––––––––––  DATABASE  –––––––––––––</span>
<span class="hljs-comment"># ––––––––––––––––––––––––––––––––––––––</span>

<span class="hljs-comment"># The database URL for your production database, including username, password, and database name.</span>
DATABASE_URL=postgres://user:password@postgres:5432/db

<span class="hljs-comment"># The in-memory database pool per-process settings. Ensure that the pool size that will not exceed</span>
<span class="hljs-comment"># the maximum number of connections allowed by your database. Defaults to 0 and 5.</span>
DATABASE_CONNECTION_POOL_MIN=
DATABASE_CONNECTION_POOL_MAX=

<span class="hljs-comment"># Uncomment this line if you will not use SSL for connecting to Postgres. This is acceptable</span>
<span class="hljs-comment"># if the database and the application are on the same machine.</span>
<span class="hljs-comment"># PGSSLMODE=disable</span>

POSTGRES_USER=USER
POSTGRES_PASSWORD=PASSWORD
POSTGRES_DB=DB
PGSSLMODE=<span class="hljs-built_in">disable</span>

<span class="hljs-comment"># ––––––––––––––––––––––––––––––––––––––</span>
<span class="hljs-comment"># ––––––––––––––  REDIS  –––––––––––––––</span>
<span class="hljs-comment"># ––––––––––––––––––––––––––––––––––––––</span>

<span class="hljs-comment"># The Redis URL for your environment you can either specify an ioredis compatible url or a Base64</span>
<span class="hljs-comment"># encoded configuration object.</span>
<span class="hljs-comment"># DOCS: https://docs.getoutline.com/s/hosting/doc/redis-LGM4BFXYp4</span>
REDIS_URL=redis://redis:6379

<span class="hljs-comment"># ––––––––––––––––––––––––––––––––––––––</span>
<span class="hljs-comment"># –––––––––––  FILE STORAGE  –––––––––––</span>
<span class="hljs-comment"># ––––––––––––––––––––––––––––––––––––––</span>

<span class="hljs-comment"># Specify what storage system to use. Possible value is one of "s3" or "local".</span>
<span class="hljs-comment"># For "local" images and document attachments will be saved on local disk, for "s3" they</span>
<span class="hljs-comment"># will be stored in an S3-compatible network store.</span>
<span class="hljs-comment"># DOCS: https://docs.getoutline.com/s/hosting/doc/file-storage-N4M0T6Ypu7</span>
FILE_STORAGE=<span class="hljs-built_in">local</span>

<span class="hljs-comment"># If "local" is configured for FILE_STORAGE above, then this sets the parent directory under</span>
<span class="hljs-comment"># which all attachments/images are stored. Make sure that the process has permissions to</span>
<span class="hljs-comment"># create this path and also to write files to it.</span>
FILE_STORAGE_LOCAL_ROOT_DIR=/var/lib/outline/data

<span class="hljs-comment"># Maximum allowed size for the uploaded attachment.</span>
FILE_STORAGE_UPLOAD_MAX_SIZE=262144000

<span class="hljs-comment"># Override the maximum size of document imports, generally this should be lower</span>
<span class="hljs-comment"># than the document attachment maximum size.</span>
FILE_STORAGE_IMPORT_MAX_SIZE=

<span class="hljs-comment"># Override the maximum size of workspace imports, these can be especially large</span>
<span class="hljs-comment"># and the files are temporary being automatically deleted after a period of time.</span>
FILE_STORAGE_WORKSPACE_IMPORT_MAX_SIZE=

<span class="hljs-comment"># To support uploading of images for avatars and document attachments in a distributed</span>
<span class="hljs-comment"># architecture, an s3-compatible storage can be configured if FILE_STORAGE=s3 above.</span>
AWS_ACCESS_KEY_ID=get_a_key_from_aws
AWS_SECRET_ACCESS_KEY=get_the_secret_of_above_key
AWS_REGION=xx-xxxx-x
AWS_S3_ACCELERATE_URL=
AWS_S3_UPLOAD_BUCKET_URL=http://s3:4569
AWS_S3_UPLOAD_BUCKET_NAME=bucket_name_here
AWS_S3_FORCE_PATH_STYLE=<span class="hljs-literal">true</span>
AWS_S3_ACL=private

<span class="hljs-comment"># ––––––––––––––––––––––––––––––––––––––</span>
<span class="hljs-comment"># ––––––––––––––––  SSL  –––––––––––––––</span>
<span class="hljs-comment"># ––––––––––––––––––––––––––––––––––––––</span>

<span class="hljs-comment"># Base64 encoded private key and certificate for HTTPS termination. This is one</span>
<span class="hljs-comment"># of three ways to configure SSL and can be left empty.</span>
<span class="hljs-comment"># DOCS: https://docs.getoutline.com/s/hosting/doc/ssl-pzk7WO8d1n</span>
SSL_KEY=
SSL_CERT=

<span class="hljs-comment"># Auto-redirect to https in production. The default is true but you may set to</span>
<span class="hljs-comment"># false if you can be sure that SSL is terminated at an external loadbalancer.</span>
FORCE_HTTPS=<span class="hljs-literal">true</span>

<span class="hljs-comment"># ––––––––––––––––––––––––––––––––––––––</span>
<span class="hljs-comment"># ––––––––––  AUTHENTICATION  ––––––––––</span>
<span class="hljs-comment"># ––––––––––––––––––––––––––––––––––––––</span>

<span class="hljs-comment"># Third party signin credentials, at least ONE OF EITHER Google, Slack,</span>
<span class="hljs-comment"># Discord, or Microsoft is required for a working installation or you'll</span>
<span class="hljs-comment"># have no sign-in options.</span>

<span class="hljs-comment"># Slack sign-in provider</span>
<span class="hljs-comment"># DOCS: https://docs.getoutline.com/s/hosting/doc/slack-sgMujR8J9J</span>
SLACK_CLIENT_ID=get_a_key_from_slack
SLACK_CLIENT_SECRET=get_the_secret_of_above_key

<span class="hljs-comment"># Google sign-in provider</span>
<span class="hljs-comment"># DOCS: https://docs.getoutline.com/s/hosting/doc/google-hOuvtCmTqQ</span>
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=

<span class="hljs-comment"># Microsoft Entra / Azure AD sign-in provider</span>
<span class="hljs-comment"># DOCS: https://docs.getoutline.com/s/hosting/doc/microsoft-entra-UVz6jsIOcv</span>
AZURE_CLIENT_ID=
AZURE_CLIENT_SECRET=
AZURE_RESOURCE_APP_ID=

<span class="hljs-comment"># Discord sign-in provider</span>
<span class="hljs-comment"># DOCS: https://docs.getoutline.com/s/hosting/doc/discord-g4JdWFFub6</span>
DISCORD_CLIENT_ID=
DISCORD_CLIENT_SECRET=
DISCORD_SERVER_ID=
DISCORD_SERVER_ROLES=

<span class="hljs-comment"># Generic OIDC provider</span>
<span class="hljs-comment"># DOCS: https://docs.getoutline.com/s/hosting/doc/oidc-8CPBm6uC0I</span>

OIDC_CLIENT_ID=CLIENT_ID
OIDC_CLIENT_SECRET=CLIENT_SECRET
OIDC_AUTH_URI=https://auth.handtrixxx.com/application/o/authorize/
OIDC_TOKEN_URI=https://auth.handtrixxx.com/application/o/token/
OIDC_USERINFO_URI=https://auth.handtrixxx.com/application/o/userinfo/
OIDC_LOGOUT_URI=https://auth.handtrixxx.com/application/o/outline/end-session/

<span class="hljs-comment"># Specify which claims to derive user information from</span>
<span class="hljs-comment"># Supports any valid JSON path with the JWT payload</span>
OIDC_USERNAME_CLAIM=preferred_username

<span class="hljs-comment"># Display name for OIDC authentication</span>
OIDC_DISPLAY_NAME=authentik

<span class="hljs-comment"># Space separated auth scopes.</span>
OIDC_SCOPES=openid profile email

<span class="hljs-comment"># ––––––––––––––––––––––––––––––––––––––</span>
<span class="hljs-comment"># ––––––––––––––  EMAIL  –––––––––––––––</span>
<span class="hljs-comment"># ––––––––––––––––––––––––––––––––––––––</span>

<span class="hljs-comment"># To support sending outgoing transactional emails such as "document updated" or</span>
<span class="hljs-comment"># email sign-in you'll need to connect an SMTP server. Service can be configured</span>
<span class="hljs-comment"># with any service from this list: https://community.nodemailer.com/2-0-0-beta/setup-smtp/well-known-services/</span>
<span class="hljs-comment"># DOCS: https://docs.getoutline.com/s/hosting/doc/smtp-cqCJyZGMIB</span>
SMTP_SERVICE=
SMTP_USERNAME=
SMTP_PASSWORD=
SMTP_FROM_EMAIL=

<span class="hljs-comment"># ––––––––––––––––––––––––––––––––––––––</span>
<span class="hljs-comment"># ––––––––––  RATE LIMITER  ––––––––––––</span>
<span class="hljs-comment"># ––––––––––––––––––––––––––––––––––––––</span>

<span class="hljs-comment"># Whether the rate limiter is enabled or not</span>
RATE_LIMITER_ENABLED=<span class="hljs-literal">true</span>

<span class="hljs-comment"># Individual endpoints have hardcoded rate limits that are enabled</span>
<span class="hljs-comment"># with the above setting, however this is a global rate limiter</span>
<span class="hljs-comment"># across all requests</span>
RATE_LIMITER_REQUESTS=1000
RATE_LIMITER_DURATION_WINDOW=60

<span class="hljs-comment"># ––––––––––––––––––––––––––––––––––––––</span>
<span class="hljs-comment"># –––––––––––  INTEGRATIONS  –––––––––––</span>
<span class="hljs-comment"># ––––––––––––––––––––––––––––––––––––––</span>

<span class="hljs-comment"># The GitHub integration allows previewing issue and pull request links</span>
<span class="hljs-comment"># DOCS: https://docs.getoutline.com/s/hosting/doc/github-GchT3NNxI9</span>
GITHUB_CLIENT_ID=
GITHUB_CLIENT_SECRET=
GITHUB_WEBHOOK_SECRET=
GITHUB_APP_NAME=
GITHUB_APP_ID=
GITHUB_APP_PRIVATE_KEY=

<span class="hljs-comment"># The Linear integration allows previewing issue links as rich mentions</span>
LINEAR_CLIENT_ID=
LINEAR_CLIENT_SECRET=

<span class="hljs-comment"># For a complete Slack integration with search and posting to channels the</span>
<span class="hljs-comment"># following configs are also needed in addition to Slack authentication:</span>
<span class="hljs-comment"># DOCS: https://docs.getoutline.com/s/hosting/doc/slack-G2mc8DOJHk</span>
SLACK_VERIFICATION_TOKEN=your_token
SLACK_APP_ID=A0XXXXXXX
SLACK_MESSAGE_ACTIONS=<span class="hljs-literal">true</span>

<span class="hljs-comment"># For Dropbox integration, follow these instructions to get the key https://www.dropbox.com/developers/embedder#setup</span>
<span class="hljs-comment"># and do not forget to whitelist your domain name in the app settings</span>
DROPBOX_APP_KEY=

<span class="hljs-comment"># Optionally enable Sentry (sentry.io) to track errors and performance,</span>
<span class="hljs-comment"># DOCS: https://docs.getoutline.com/s/hosting/doc/sentry-jxcFttcDl5</span>
SENTRY_DSN=
SENTRY_TUNNEL=

<span class="hljs-comment"># Enable importing pages from a Notion workspace</span>
<span class="hljs-comment"># DOCS: https://docs.getoutline.com/s/hosting/doc/notion-2v6g7WY3l3</span>
NOTION_CLIENT_ID=
NOTION_CLIENT_SECRET=

<span class="hljs-comment"># The Iframely integration allows previews of third-party content within Outline.</span>
<span class="hljs-comment"># For example, hovering over an external link will show a preview.</span>
<span class="hljs-comment"># DOCS: https://docs.getoutline.com/s/hosting/doc/iframely-HwLF1EZ9mo</span>
IFRAMELY_URL=
IFRAMELY_API_KEY=

<span class="hljs-comment"># ––––––––––––––––––––––––––––––––––––––</span>
<span class="hljs-comment"># –––––––––––––  DEBUGGING  ––––––––––––</span>
<span class="hljs-comment"># ––––––––––––––––––––––––––––––––––––––</span>

<span class="hljs-comment"># Have the installation check for updates by sending anonymized statistics to</span>
<span class="hljs-comment"># the maintainers</span>
ENABLE_UPDATES=<span class="hljs-literal">true</span>

<span class="hljs-comment"># Debugging categories to enable – you can remove the default "http" value if</span>
<span class="hljs-comment"># your proxy already logs incoming http requests and this ends up being duplicative</span>
DEBUG=

<span class="hljs-comment"># Configure lowest severity level for server logs. Should be one of</span>
<span class="hljs-comment"># error, warn, info, http, verbose, debug, or silly</span>
LOG_LEVEL=warn

PUID=1000
PGID=1000
```

## Webhooks

### Get the Webhook ID

```bash
docker <span class="hljs-built_in">exec</span> -it outline-postgres psql -U outuser -d outland -c <span class="hljs-string">"SELECT id, name, url FROM webhook_subscriptions;"</span>
```

## Reverse Proxy

Für Caddy:

```bash

```

# Alternativen

- [Wiki.js](https://www.handtrixxx.com/de/wiki/self-hosted/wikijs)

# Quellen / Links

- <https://www.getoutline.com>
- <https://github.com/outline/outline>

 self-hosteddocsknowledgeretired

---

## Navigation

- Parent: [Selbst gehostet](https://www.handtrixxx.com/de/wiki/self-hosted.md)
- Previous: [Open Cloud](https://www.handtrixxx.com/de/wiki/self-hosted/open-cloud.md)
- Next: [Radicale](https://www.handtrixxx.com/de/wiki/self-hosted/radicale.md)
