You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

63 lines
2.4 KiB

  1. # docker-compose file for running paperless from the Docker Hub.
  2. # This file contains everything paperless needs to run.
  3. # Paperless supports amd64, arm and arm64 hardware.
  4. #
  5. # All compose files of paperless configure paperless in the following way:
  6. #
  7. # - Paperless is (re)started on system boot, if it was running before shutdown.
  8. # - Docker volumes for storing data are managed by Docker.
  9. # - Folders for importing and exporting files are created in the same directory
  10. # as this file and mounted to the correct folders inside the container.
  11. # - Paperless listens on port 8000.
  12. #
  13. # In addition to that, this docker-compose file adds the following optional
  14. # configurations:
  15. #
  16. # - Instead of SQLite (default), PostgreSQL is used as the database server.
  17. #
  18. # To install and update paperless with this file, do the following:
  19. #
  20. # - Copy this file as 'docker-compose.yml' and the files 'docker-compose.env'
  21. # and '.env' into a folder.
  22. # - Run 'docker-compose pull'.
  23. # - Run 'docker-compose run --rm webserver createsuperuser' to create a user.
  24. # - Run 'docker-compose up -d'.
  25. #
  26. # For more extensive installation and update instructions, refer to the
  27. # documentation.
  28. # https://paperless-ng.readthedocs.io/en/latest/configuration.html
  29. version: "3.4"
  30. services:
  31. broker:
  32. container_name: ${PAPERLESS_BROKER_CONTAINER_NAME:-paperless_broker}
  33. image: redis:6.0
  34. restart: unless-stopped
  35. core:
  36. container_name: ${PAPERLESS_CORE_CONTAINER_NAME:-paperless_core}
  37. image: jonaswinkler/paperless-ng:${PAPERLESS_VERSION:-latest}
  38. restart: unless-stopped
  39. depends_on:
  40. - broker
  41. ports:
  42. - ${PAPERLESS_HOST_IP_ADDRESS:-127.0.0.1}:${PAPERLESS_HOST_PORT:-8800}:8000
  43. volumes:
  44. - data:/usr/src/paperless/data
  45. - media:/usr/src/paperless/media
  46. - ./export:/usr/src/paperless/export
  47. - ./consume:/usr/src/paperless/consume
  48. env_file: docker-compose.env
  49. environment:
  50. PAPERLESS_ADMIN_USER: ${PAPERLESS_ADMIN_USER:-sysadmin}
  51. PAPERLESS_ADMIN_PASSWORD: ${PAPERLESS_ADMIN_PASSWORD:-password}
  52. PAPERLESS_REDIS: redis://broker:6379
  53. PAPERLESS_DBHOST: ${PAPERLESS_DB_HOST:?err}
  54. PAPERLESS_DBPORT: ${PAPERLESS_DB_PORT:?err}
  55. PAPERLESS_DBNAME: ${PAPERLESS_DB_NAME:?err}
  56. PAPERLESS_DBUSER: ${PAPERLESS_DB_USER:?err}
  57. PAPERLESS_DBPASS: ${PAPERLESS_DB_PASSWORD:?err}
  58. volumes:
  59. data:
  60. media: