<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/outline-install-it-with-docker-compose-and-traefik-eihbrdjfx" -->

---
title: Outline: Install it with docker compose and Traefik
description: A step-by-step guide walks through self-hosting Outline, a Notion-like team knowledge base, using Docker Compose with Traefik as a reverse proxy for SSL...
canonical: https://daily.dev/posts/outline-install-it-with-docker-compose-and-traefik-eihbrdjfx
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Outline: Install it with docker compose and Traefik | daily.dev
og:description: A step-by-step guide walks through self-hosting Outline, a Notion-like team knowledge base, using Docker Compose with Traefik as a reverse proxy for SSL...
og:url: https://daily.dev/posts/outline-install-it-with-docker-compose-and-traefik-eihbrdjfx
og:image: https://api.daily.dev/og/posts/EiHBrDjfx.png
og:image:alt: Outline: Install it with docker compose and Traefik
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Outline: Install it with docker compose and Traefik

**[Daniel Petrica](https://daily.dev/sources/danielpetrica)** · 4 min read · 0 upvotes · 0 comments

## Summary

A step-by-step guide walks through self-hosting Outline, a Notion-like team knowledge base, using Docker Compose with Traefik as a reverse proxy for SSL termination. It covers using Doppler or a .env file to manage secrets, setting up separate internal and public-facing Docker networks, and adding database backups via tiredofit/db-backup. The post also mentions an unused Minio service configured for future file storage integration.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://danielpetrica.com/posts/host-outline-with-docker-compose-and-traefik>

## Questions this post answers

### How do I set up SSL and networking for Outline when self-hosting it with Docker Compose and Traefik?

Configure two Docker networks: a public-facing traefik network for the reverse proxy and an internal network for Outline's own services. Traefik labels on the containers trigger automatic SSL certificate generation and expose the app over HTTPS on the specified domain, while secrets can be injected via Doppler or a standard .env file following outline/outline's .env.sample format.

_Developers wiring up Traefik and Docker Compose stacks like this often compare notes on daily.dev._

### How can I back up the database when self-hosting Outline with Docker Compose?

Add the tiredofit/db-backup container to the Docker Compose stack to periodically save the database automatically. This provides a basic recovery option, though offloading the backup folder to a separate storage location is recommended as a further safety step, which was left as a future improvement in the described setup.

_Anyone hardening a self-hosted stack's backup strategy can track similar setups on daily.dev._

## Similar posts on daily.dev

- [The best self-hosted Notion alternative isn't AFFiNE or AppFlowy, it's something way simpler](https://daily.dev/posts/the-best-self-hosted-notion-alternative-isn-t-affine-or-appflowy-it-s-something-way-simpler-xdn2izneb) · XDA Developers · 5 upvotes · 0 comments
- [How I Built a Production-Ready CI/CD Pipeline for a Monorepo-Based Microservices System with Jenkins, Docker Compose, and Traefik](https://daily.dev/posts/how-i-built-a-production-ready-ci-cd-pipeline-for-a-monorepo-based-microservices-system-with-jenkins-pc85kpwji) · freeCodeCamp · 18 upvotes · 2 comments
- [How I Organize My Self-Hosted Apps and Dev Environment](https://daily.dev/posts/how-i-organize-my-self-hosted-apps-and-dev-environment-xlt9ry2an) · Noted · 21 upvotes · 2 comments

---

Tags: [#infrastructure](https://daily.dev/tags/infrastructure), [#self-hosting](https://daily.dev/tags/self-hosting), [#docker-compose](https://daily.dev/tags/docker-compose)

[View this post on daily.dev](https://daily.dev/posts/outline-install-it-with-docker-compose-and-traefik-eihbrdjfx)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Outline: Install it with docker compose and Traefik","url":"https://daily.dev/posts/outline-install-it-with-docker-compose-and-traefik-eihbrdjfx","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/outline-install-it-with-docker-compose-and-traefik-eihbrdjfx"},"datePublished":"2026-09-29T12:32:29.673Z","dateModified":"2026-09-29T12:33:06.491Z","description":"A step-by-step guide walks through self-hosting Outline, a Notion-like team knowledge base, using Docker Compose with Traefik as a reverse proxy for SSL...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/649e73e27ddbeb933bd7b778655013f1?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/649e73e27ddbeb933bd7b778655013f1?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Daniel Petrica","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Daniel Petrica","logo":"https://media.daily.dev/image/upload/s--jkfwlnJz--/f_auto,q_auto/v1774964393/logos/danielpetrica?_a=BAMAMiWQ0","url":"https://daily.dev/sources/danielpetrica"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/outline-install-it-with-docker-compose-and-traefik-eihbrdjfx","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"infrastructure,self-hosting,docker-compose","timeRequired":"PT4M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Daniel Petrica","item":"https://daily.dev/sources/danielpetrica"},{"@type":"ListItem","position":3,"name":"Outline: Install it with docker compose and Traefik"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/outline-install-it-with-docker-compose-and-traefik-eihbrdjfx#faq","mainEntity":[{"@type":"Question","name":"How do I set up SSL and networking for Outline when self-hosting it with Docker Compose and Traefik?","acceptedAnswer":{"@type":"Answer","text":"Configure two Docker networks: a public-facing traefik network for the reverse proxy and an internal network for Outline's own services. Traefik labels on the containers trigger automatic SSL certificate generation and expose the app over HTTPS on the specified domain, while secrets can be injected via Doppler or a standard .env file following outline/outline's .env.sample format. Developers wiring up Traefik and Docker Compose stacks like this often compare notes on daily.dev."}},{"@type":"Question","name":"How can I back up the database when self-hosting Outline with Docker Compose?","acceptedAnswer":{"@type":"Answer","text":"Add the tiredofit/db-backup container to the Docker Compose stack to periodically save the database automatically. This provides a basic recovery option, though offloading the backup folder to a separate storage location is recommended as a further safety step, which was left as a future improvement in the described setup. Anyone hardening a self-hosted stack's backup strategy can track similar setups on daily.dev."}}]}
```

