Added multiple services
This commit is contained in:
@@ -0,0 +1,69 @@
|
||||
version: "3.4"
|
||||
|
||||
services:
|
||||
broker:
|
||||
image: redis:6.0
|
||||
container_name: paperless-broker
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- internal
|
||||
|
||||
db:
|
||||
image: postgres:13
|
||||
container_name: paperless-db
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- /mnt/SSD500/docker/paperless/db:/var/lib/postgresql/data
|
||||
environment:
|
||||
POSTGRES_DB: paperless
|
||||
POSTGRES_USER: paperless
|
||||
POSTGRES_PASSWORD: paperless
|
||||
networks:
|
||||
- internal
|
||||
|
||||
webserver:
|
||||
image: ghcr.io/paperless-ngx/paperless-ngx:latest
|
||||
container_name: paperless-app
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:8000"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 5
|
||||
volumes:
|
||||
- /mnt/SSD500/docker/paperless/data:/usr/src/paperless/data
|
||||
- /mnt/SSD500/docker/paperless/media:/usr/src/paperless/media
|
||||
- /mnt/SSD500/docker/paperless/export:/usr/src/paperless/export
|
||||
- /mnt/SSD500/docker/paperless/consume:/usr/src/paperless/consume
|
||||
environment:
|
||||
PAPERLESS_URL: https://paperless.lino.cooking
|
||||
PAPERLESS_REDIS: redis://paperless-broker:6379
|
||||
PAPERLESS_DBHOST: paperless-db
|
||||
# The UID and GID of the user used to run paperless in the container. Set this
|
||||
# to your UID and GID on the host so that you have write access to the
|
||||
# consumption directory.
|
||||
USERMAP_UID: 1000
|
||||
USERMAP_GID: 100
|
||||
# Additional languages to install for text recognition, separated by a
|
||||
# whitespace. Note that this is
|
||||
# different from PAPERLESS_OCR_LANGUAGE (default=eng), which defines the
|
||||
# language used for OCR.
|
||||
# The container installs English, German, Italian, Spanish and French by
|
||||
# default.
|
||||
# See https://packages.debian.org/search?keywords=tesseract-ocr-&searchon=names&suite=buster
|
||||
# for available languages.
|
||||
PAPERLESS_OCR_LANGUAGES: eng por
|
||||
# Adjust this key if you plan to make paperless available publicly. It should
|
||||
# be a very long sequence of random characters. You don't need to remember it.
|
||||
PAPERLESS_SECRET_KEY: '*TRpc9dY4iH!#vuk$URPcqVwW*LV$MCFPtL^Lc3z7H^zT^Z&P3'
|
||||
PAPERLESS_TIME_ZONE: Europe/Lisbon
|
||||
|
||||
networks:
|
||||
- reverse-proxy
|
||||
- internal
|
||||
|
||||
networks:
|
||||
internal:
|
||||
internal: true
|
||||
reverse-proxy:
|
||||
external: true
|
||||
Reference in New Issue
Block a user