app-store/apps/paperless-ngx/docker-compose.yml
sclaren 136ff1b408
Paperless ngx (#392)
* Added paperless-ngx with Tika support

* Squashed commit of the following:

commit 1c0b3abb0d
Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Date:   Wed Apr 26 08:08:49 2023 -0400

    chore(deps): update grafana/grafana-oss docker tag to v9.5.1 (#398)

    * chore(deps): update grafana/grafana-oss docker tag to v9.5.1

    * Update app version

    ---------

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    Co-authored-by: github-action update-app-version <githubaction@githubaction.com>

commit c86bbe9161
Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Date:   Wed Apr 26 08:06:37 2023 -0400

    chore(deps): update lscr.io/linuxserver/jackett docker tag to v0.20.3996 (#396)

    * chore(deps): update lscr.io/linuxserver/jackett docker tag to v0.20.3996

    * Update app version

    ---------

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    Co-authored-by: github-action update-app-version <githubaction@githubaction.com>

commit fe1dcaefed
Author: DrMxrcy <58747968+DrMxrcy@users.noreply.github.com>
Date:   Tue Apr 25 16:30:29 2023 -0400

    Add Package Rules to ignore Dependency Images (#394)

commit c0e1bcc18b
Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Date:   Tue Apr 25 15:21:45 2023 -0400

    chore(deps): update 1dev/server docker tag to v8.1.3 (#389)

    * chore(deps): update 1dev/server docker tag to v8.1.3

    * Update app version

    ---------

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    Co-authored-by: github-action update-app-version <githubaction@githubaction.com>

commit 8779ff2f3a
Author: imgbot[bot] <31301654+imgbot[bot]@users.noreply.github.com>
Date:   Tue Apr 25 15:20:45 2023 -0400

    [ImgBot] Optimize images (#391)

    *Total -- 176.57kb -> 165.21kb (6.43%)

    /apps/lidarr-deemix/metadata/logo.jpg -- 111.09kb -> 102.11kb (8.09%)
    /apps/kanboard/metadata/logo.jpg -- 52.36kb -> 50.06kb (4.4%)
    /apps/actual-budget/metadata/logo.jpg -- 13.11kb -> 13.05kb (0.49%)

    Signed-off-by: ImgBotApp <ImgBotHelp@gmail.com>
    Co-authored-by: ImgBotApp <ImgBotHelp@gmail.com>

commit 8f51624561
Author: DrMxrcy <58747968+DrMxrcy@users.noreply.github.com>
Date:   Tue Apr 25 13:11:00 2023 -0400

    Update Homarr to v0.12.1 (#393)

* chore(paperless-ngx): update logo and container name

---------

Co-authored-by: Sascha Claren <sascha@saschas-macbook-pro.local>
Co-authored-by: DrMxrcy <drmxrcy@gmail.com>
2023-04-26 13:49:16 -04:00

75 lines
2.4 KiB
YAML

version: '3.7'
services:
# Redis
broker:
image: docker.io/library/redis:7
restart: unless-stopped
volumes:
- ${APP_DATA_DIR}/data/redis:/data
networks:
- tipi_main_network
# Postgres SQL
db:
image: docker.io/library/postgres:13
restart: unless-stopped
volumes:
- ${APP_DATA_DIR}/data/postgres:/var/lib/postgresql/data
environment:
POSTGRES_DB: paperless
POSTGRES_USER: paperless
POSTGRES_PASSWORD: paperless
networks:
- tipi_main_network
gotenberg:
image: docker.io/gotenberg/gotenberg:7.8
restart: unless-stopped
# The gotenberg chromium route is used to convert .eml files. We do not
# want to allow external content like tracking pixels or even javascript.
command:
- "gotenberg"
- "--chromium-disable-javascript=true"
- "--chromium-allow-list=file:///tmp/.*"
networks:
- tipi_main_network
tika:
image: ghcr.io/paperless-ngx/tika:latest
restart: unless-stopped
networks:
- tipi_main_network
paperless-ngx:
container_name: paperless-ngx
image: ghcr.io/paperless-ngx/paperless-ngx:1.14
restart: unless-stopped
depends_on:
- db
- broker
ports:
- ${APP_PORT}:8000
volumes:
- ${APP_DATA_DIR}/data/paperless_data:/usr/src/paperless/data
- ${APP_DATA_DIR}/data/paperless_media:/usr/src/paperless/media
- ${APP_DATA_DIR}/data/paperless_export:/usr/src/paperless/export
- ${APP_DATA_DIR}/data/paperless_consume:/usr/src/paperless/consume
environment:
PAPERLESS_REDIS: redis://broker:6379
PAPERLESS_DBHOST: db
PAPERLESS_ADMIN_USER: ${PAPERLESS_ADMIN_USERNAME}
PAPERLESS_ADMIN_PASSWORD: ${PAPERLESS_ADMIN_PASSWORD}
PAPERLESS_TIKA_ENABLED: ${PAPERLESS_TIKA_ENABLED}
PAPERLESS_TIKA_GOTENBERG_ENDPOINT: http://gotenberg:3000
PAPERLESS_TIKA_ENDPOINT: http://tika:9998
PAPERLESS_URL: ${APP_PROTOCOL:-http}://${APP_DOMAIN}
COMPOSE_PROJECT_NAME: paperless-ngx
networks:
- tipi_main_network
labels:
traefik.enable: ${APP_EXPOSED}
traefik.http.routers.paperless-ngx.rule: Host(`${APP_DOMAIN}`)
traefik.http.routers.paperless-ngx.entrypoints: websecure
traefik.http.routers.paperless-ngx.service: paperless-ngx
traefik.http.routers.paperless-ngx.tls.certresolver: myresolver
traefik.http.services.paperless-ngx.loadbalancer.server.port: 8000