|
|
@ -8,7 +8,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
- name: Create directories for volume mounting
|
|
|
|
- name: Create directories for volume mounting
|
|
|
|
ansible.builtin.file:
|
|
|
|
ansible.builtin.file:
|
|
|
|
path: /mnt/lotus-land-story/paperless/{{ item }}
|
|
|
|
path: /mnt/lotus-land-story/paperless-ngx/{{ item }}
|
|
|
|
state: directory
|
|
|
|
state: directory
|
|
|
|
mode: "0700"
|
|
|
|
mode: "0700"
|
|
|
|
loop:
|
|
|
|
loop:
|
|
|
@ -21,7 +21,7 @@
|
|
|
|
ansible.builtin.copy:
|
|
|
|
ansible.builtin.copy:
|
|
|
|
content: |
|
|
|
|
content: |
|
|
|
|
url_prefix = "/flower/"
|
|
|
|
url_prefix = "/flower/"
|
|
|
|
dest: /mnt/lotus-land-story/paperless/flowerconfig.py
|
|
|
|
dest: /mnt/lotus-land-story/paperless-ngx/flowerconfig.py
|
|
|
|
mode: "0644"
|
|
|
|
mode: "0644"
|
|
|
|
|
|
|
|
|
|
|
|
- name: Get docker network
|
|
|
|
- name: Get docker network
|
|
|
@ -33,7 +33,7 @@
|
|
|
|
- name: Run Paperless-ngx
|
|
|
|
- name: Run Paperless-ngx
|
|
|
|
community.docker.docker_container:
|
|
|
|
community.docker.docker_container:
|
|
|
|
restart: true
|
|
|
|
restart: true
|
|
|
|
name: paperless
|
|
|
|
name: paperless-ngx
|
|
|
|
image: ghcr.io/paperless-ngx/paperless-ngx:{{ version }}
|
|
|
|
image: ghcr.io/paperless-ngx/paperless-ngx:{{ version }}
|
|
|
|
env:
|
|
|
|
env:
|
|
|
|
PAPERLESS_ENABLE_FLOWER: "true"
|
|
|
|
PAPERLESS_ENABLE_FLOWER: "true"
|
|
|
@ -43,14 +43,14 @@
|
|
|
|
PAPERLESS_TASK_WORKERS: "1"
|
|
|
|
PAPERLESS_TASK_WORKERS: "1"
|
|
|
|
PAPERLESS_THREADS_PER_WORKER: "1"
|
|
|
|
PAPERLESS_THREADS_PER_WORKER: "1"
|
|
|
|
PAPERLESS_TIME_ZONE: America/Los_Angeles
|
|
|
|
PAPERLESS_TIME_ZONE: America/Los_Angeles
|
|
|
|
PAPERLESS_URL: https://paperless.{{ domain }}
|
|
|
|
PAPERLESS_URL: https://docs.{{ domain }}
|
|
|
|
PAPERLESS_WEBSERVER_WORKERS: "1"
|
|
|
|
PAPERLESS_WEBSERVER_WORKERS: "1"
|
|
|
|
volumes:
|
|
|
|
volumes:
|
|
|
|
- /mnt/lotus-land-story/paperless/data:/usr/src/paperless/data
|
|
|
|
- /mnt/lotus-land-story/paperless-ngx/data:/usr/src/paperless/data
|
|
|
|
- /mnt/lotus-land-story/paperless/media:/usr/src/paperless/media
|
|
|
|
- /mnt/lotus-land-story/paperless-ngx/media:/usr/src/paperless/media
|
|
|
|
- /mnt/lotus-land-story/paperless/export:/usr/src/paperless/export
|
|
|
|
- /mnt/lotus-land-story/paperless-ngx/export:/usr/src/paperless/export
|
|
|
|
- /mnt/lotus-land-story/paperless/consume:/usr/src/paperless/consume
|
|
|
|
- /mnt/lotus-land-story/paperless-ngx/consume:/usr/src/paperless/consume
|
|
|
|
- /mnt/lotus-land-story/paperless/flowerconfig.py:/usr/src/paperless/src/paperless/flowerconfig.py:ro
|
|
|
|
- /mnt/lotus-land-story/paperless-ngx/flowerconfig.py:/usr/src/paperless/src/paperless/flowerconfig.py:ro
|
|
|
|
restart_policy: unless-stopped
|
|
|
|
restart_policy: unless-stopped
|
|
|
|
networks:
|
|
|
|
networks:
|
|
|
|
- name: lotus_land_story
|
|
|
|
- name: lotus_land_story
|