Advertisement
Guest User

docker-compose.yml File

a guest
Apr 14th, 2024
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.26 KB | None | 0 0
  1. # This file contains everything paperless needs to run.
  2. # Paperless supports amd64, arm and arm64 hardware.
  3. #
  4. # All compose files of paperless configure paperless in the following way:
  5. #
  6. # - Paperless is (re)started on system boot, if it was running before shutdown.
  7. # - Docker volumes for storing data are managed by Docker.
  8. # - Folders for importing and exporting files are created in the same directory
  9. # as this file and mounted to the correct folders inside the container.
  10. # - Paperless listens on port 8000.
  11. #
  12. # In addition to that, this Docker Compose file adds the following optional
  13. # configurations:
  14. #
  15. # - Instead of SQLite (default), PostgreSQL is used as the database server.
  16. #
  17. # To install and update paperless with this file, do the following:
  18. #
  19. # - Copy this file as 'docker-compose.yml' and the files 'docker-compose.env'
  20. # and '.env' into a folder.
  21. # - Run 'docker compose pull'.
  22. # - Run 'docker compose run --rm webserver createsuperuser' to create a user.
  23. # - Run 'docker compose up -d'.
  24. #
  25. # For more extensive installation and update instructions, refer to the
  26. # documentation.
  27.  
  28. version: "3.4"
  29. services:
  30. broker:
  31. image: docker.io/library/redis:7
  32. restart: unless-stopped
  33. volumes:
  34. - redisdata:/data
  35.  
  36. db:
  37. image: docker.io/library/postgres:15
  38. restart: unless-stopped
  39. volumes:
  40. - /home/admpaperless/paperlessinstall/db:/var/lib/postgresql/data
  41. environment:
  42. PAPERLESS_CONSUMER_RECURSIVE: true
  43. PAPERLESS_CONSUMER_SUBDIRS_AS_TAGS: true
  44.  
  45. webserver:
  46. image: ghcr.io/paperless-ngx/paperless-ngx:latest
  47. restart: unless-stopped
  48. depends_on:
  49. - db
  50. - broker
  51. ports:
  52. - "7474:8000"
  53. volumes:
  54. - /home/admpaperless/paperlessinstall/data:/usr/src/paperless/data
  55. - /home/admpaperless/paperlessinstall/media:/usr/src/paperless/media
  56. - ./export:/usr/src/paperless/export
  57. - /home/admpaperless/paperlessinstall/paperless-ngx/consume:/usr/src/paperless/consume
  58. env_file: docker-compose.env
  59. environment:
  60. PAPERLESS_REDIS: redis://broker:6379
  61. PAPERLESS_DBHOST: db
  62. PAPERLESS_CONSUMER_POLLING: 15
  63. POSTGRES_DB: paperless
  64. POSTGRES_USER: paperless
  65. POSTGRES_PASSWORD: paperless
  66.  
  67. volumes:
  68. redisdata:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement