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.

64 lines
2.2 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
  33. image: redis:6.0
  34. restart: unless-stopped
  35. webserver:
  36. container_name: paperless_core
  37. image: jonaswinkler/paperless-ng:latest
  38. restart: unless-stopped
  39. depends_on:
  40. - broker
  41. ports:
  42. - <host-ip-address>: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=<username>
  51. PAPERLESS_ADMIN_PASSWORD=<password>
  52. PAPERLESS_REDIS: redis://broker:6379
  53. PAPERLESS_DBHOST=<hostname>
  54. PAPERLESS_DBPORT=<port>
  55. PAPERLESS_DBNAME=<name>
  56. PAPERLESS_DBUSER=<name>
  57. PAPERLESS_DBPASS=<password>
  58. volumes:
  59. data:
  60. media: