This guide shows a minimal Docker Compose deployment for Docspell.
sudo mkdir -p /opt/docspell
cd /opt/docspell
docker-compose.ymlservices:
postgres:
image: postgres:16
restart: unless-stopped
environment:
POSTGRES_DB: docspell
POSTGRES_USER: docspell
POSTGRES_PASSWORD: change-me
volumes:
- ./postgres/data:/var/lib/postgresql/data
solr:
image: solr:9
restart: unless-stopped
docspell-rest:
image: ghcr.io/eikek/docspell-restserver:latest
restart: unless-stopped
depends_on:
- postgres
- solr
ports:
- "7880:7880"
Note: Docspell supports both Apache Solr and PostgreSQL as full-text search backends. The above uses Solr; to use PostgreSQL instead, omit the Solr service and configure the search backend accordingly.
docker compose up -d
Any questions?
Feel free to contact us. Find all contact information on our contact page.