Direkt zum Hauptinhalt

Installation in Docker

Beschreibung:

Hier wird ein Docker container erzeiugt, das Volumes benötigt. Weil die ordner spezielle Benutzerrechte haben.

Installtion

Einmal die Environment Datei, wo Sprache zeitzone und das Datenbank Passwort festgelegt werden

docker-compose.env

# The UID and GID of the user used to run paperless in the container.
#USERMAP_UID=1000
#USERMAP_GID=1000

# Additional languages to install for text recognition.
#PAPERLESS_OCR_LANGUAGES=tur ces

# Paperless-specific settings
#PAPERLESS_URL=https://paperless.example.com
#PAPERLESS_SECRET_KEY=change-me
#PAPERLESS_TIME_ZONE=America/Los_Angeles
#PAPERLESS_OCR_LANGUAGE=eng
#PAPERLESS_FORCE_SCRIPT_NAME=/PATHPREFIX
#PAPERLESS_STATIC_URL=/PATHPREFIX/static/

# Database settings
PAPERLESS_DBUSER=your_db_username
PAPERLESS_DBPASS=your_db_password

Deutsch angepasste env Datei

# The UID and GID of the user used to run paperless in the container.
#USERMAP_UID=1000
#USERMAP_GID=1000

# Additional languages to install for text recognition.
PAPERLESS_OCR_LANGUAGES=ger

# Paperless-specific settings
#PAPERLESS_URL=https://paperless.example.com
#PAPERLESS_SECRET_KEY=change-me
PAPERLESS_TIME_ZONE=Europe/Berlin
PAPERLESS_OCR_LANGUAGE=ger
#PAPERLESS_FORCE_SCRIPT_NAME=/PATHPREFIX
#PAPERLESS_STATIC_URL=/PATHPREFIX/static/

# Database settings
PAPERLESS_DBUSER=your_db_username
PAPERLESS_DBPASS=your_db_password

Nun die docker-compose Datei

webserver:
  image: ghcr.io/paperless-ngx/paperless-ngx:latest
  restart: unless-stopped
  depends_on:
    - db
    - broker
  ports:
    - "8000:8000"
  volumes:
    - data:/usr/src/paperless/data
    - media:/usr/src/paperless/media
    - ./export:/usr/src/paperless/export
    - ./consume:/usr/src/paperless/consume
  env_file: docker-compose.env
  environment:
    PAPERLESS_REDIS: redis://broker:6379
    PAPERLESS_DBENGINE: mariadb
    PAPERLESS_DBHOST: db
    PAPERLESS_DBPORT: 3306