😸

Self-Hosting Outline with Docker Compose & Traefik

に公開

After discovering Outline—a team knowledge base tool—on n8n's workflow automation list, I decided to self-host it using Docker Compose and Traefik as a reverse proxy.

Why Self-Host?

  • Cost savings vs. SaaS subscriptions
  • Full control over your data
  • Ideal for small teams or individuals (though Outline offers cloud hosting if needed later).

Installation Steps

I used Docker Compose with secrets managed via Doppler. Here’s a snippet of my config:

version: "3"  
services:  
  outline:  
    image: docker.getoutline.com/outlinewiki/outline:0.69.2  
    ports:  
      - "3000:3000"  
    depends_on:  
      - postgres  
      - redis  
    networks:  
      - traefik  
    labels:  
      - traefik.enable=true  
      - traefik.http.routers.outline.rule=Host(`outline.example.com`)  
      - traefik.http.routers.outline.entrypoints=websecure  

  redis:  
    image: redis  

  postgres:  
    image: postgres  
    volumes:  
      - ./data/database-data:/var/lib/postgresql/data  

networks:  
  traefik:  
    external: true  

Key Notes

  • Environment variables can be set via .env or Doppler.
  • Traefik handles HTTPS automatically (ensure your domain is set in labels).
  • Backups: Included tiredofit/db-backup for database recovery.

For full details, including the full docker compose file, check the original article.
Let me know if you'd like guides for other tools! 🚀

Discussion