#719·paperless

Docker 安装: 错误: 容器 "a713bc3650c5" 状态不良。

作者: ostpol创建于 2021年1月22日更新于 2021年1月22日

version: '2.1'

services: webserver: build: ./ # uncomment the following line to start automatically on system boot restart: always ports: # You can adapt the port you want Paperless to listen on by # modifying the part before the :. - "8008:8000" healthcheck: test: ["CMD", "curl" , "-f", "http://localhost:8000"] interval: 30s timeout: 10s retries: 5 volumes: - /media/documents/store:/usr/src/paperless/data - /media/documents/media:/usr/src/paperless/media # You have to adapt the local path you want the consumption directory to mount to by modifying the part before the ':'. - /media/documents/inbox:/consume env_file: Docker-compose.env # The reason the line is here is so that the webserver that doesn't do # any text recognition and doesn't have to install unnecessary # languages the user might have set in the env-file by overwriting the # value with nothing. environment: - PAPERLESS_OCR_LANGUAGES= command: ["gunicorn", "-b", "0.0.0.0:8000"]

consumer: build: ./ # uncomment the following line to start automatically on system boot restart: always depends_on: webserver: condition: service_healthy volumes: - /media/documents/store:/usr/src/paperless/data - /media/documents/media:/usr/src/paperless/media # Likewise, you can add a local path to mount a directory for # exporting. This is not strictly needed for paperless to # function, only if you're exporting your files: uncomment # it and fill in a local path if you know you're going …

内容来源: the-paperless-project/paperless