For setup a full featured paperless ngx docker setup, follow this steps:
- Copy
docker-compose.env.dist
todocker-compose.env
- Generate a random string with
openssl rand -hex 64
and set result toPAPERLESS_SECRET_KEY
- Copy
.env.dist
to.env
- Generate a random string with
openssl rand -hex 64
and set result toPAPERLESS_DBPASS
- Change
PAPERLESS_ROOT_DIR
andPAPERLESS_CONSUME_DIR
to your requirements. - Maybe you have to change
DOCKER_*_VERSION
to current published versions - Then execute the following commands directly one after the other in the shell:
source .env
sudo mkdir -p ${PAPERLESS_ROOT_DIR}/redis
sudo chmod 777 ${PAPERLESS_ROOT_DIR}/redis
Run docker compose pull
. This will pull the image from the GitHub container registry.
After that you can start the container with docker compose up -d
.
To be able to login, you will need a "superuser". To create it, execute the following command:
docker compose run --rm webserver createsuperuser
Here you will find a list of available commands: https://docs.paperless-ngx.com/administration/