From 2e501a83cae7f184e0d2f4c74f2b1134dce593c8 Mon Sep 17 00:00:00 2001 From: Peter Wood Date: Tue, 16 Jul 2024 19:50:39 +0000 Subject: [PATCH] missing compose files --- paperless-ng/docker-compose.yml | 71 +++++++++++++++++++++++++++++++++ vaultwarden/docker-compose.yml | 6 ++- wiki/docker-compose.yml | 32 +++++++++++++++ 3 files changed, 108 insertions(+), 1 deletion(-) create mode 100644 paperless-ng/docker-compose.yml create mode 100644 wiki/docker-compose.yml diff --git a/paperless-ng/docker-compose.yml b/paperless-ng/docker-compose.yml new file mode 100644 index 0000000..7a6f3b4 --- /dev/null +++ b/paperless-ng/docker-compose.yml @@ -0,0 +1,71 @@ +# docker-compose file for running paperless from the Docker Hub. +# This file contains everything paperless needs to run. +# Paperless supports amd64, arm and arm64 hardware. +# +# All compose files of paperless configure paperless in the following way: +# +# - Paperless is (re)started on system boot, if it was running before shutdown. +# - Docker volumes for storing data are managed by Docker. +# - Folders for importing and exporting files are created in the same directory +# as this file and mounted to the correct folders inside the container. +# - Paperless listens on port 8000. +# +# In addition to that, this docker-compose file adds the following optional +# configurations: +# +# - Instead of SQLite (default), PostgreSQL is used as the database server. +# +# To install and update paperless with this file, do the following: +# +# - Copy this file as 'docker-compose.yml' and the files 'docker-compose.env' +# and '.env' into a folder. +# - Run 'docker-compose pull'. +# - Run 'docker-compose run --rm webserver createsuperuser' to create a user. +# - Run 'docker-compose up -d'. +# +# For more extensive installation and update instructions, refer to the +# documentation. + +version: "3.4" +services: + broker: + image: redis:6.0 + restart: unless-stopped + + db: + image: postgres:13 + restart: unless-stopped + volumes: + - pgdata:/var/lib/postgresql/data + environment: + POSTGRES_DB: paperless + POSTGRES_USER: paperless + POSTGRES_PASSWORD: paperless + + webserver: + image: jonaswinkler/paperless-ng:latest + restart: unless-stopped + depends_on: + - db + - broker + ports: + - 8010:8000 + healthcheck: + test: ["CMD", "curl", "-f", "http://localhost:8000"] + interval: 30s + timeout: 10s + retries: 5 + volumes: + - data:/usr/src/paperless/data + - media:/usr/src/paperless/media + - ./export:/usr/src/paperless/export + - ./consume:/usr/src/paperless/consume + environment: + PAPERLESS_REDIS: redis://broker:6379 + PAPERLESS_DBHOST: db + COMPOSE_PROJECT_NAME: paperless + +volumes: + data: + media: + pgdata: \ No newline at end of file diff --git a/vaultwarden/docker-compose.yml b/vaultwarden/docker-compose.yml index 15a0b3b..6c758fa 100644 --- a/vaultwarden/docker-compose.yml +++ b/vaultwarden/docker-compose.yml @@ -9,7 +9,7 @@ services: volumes: - vaultwarden_data:/data environment: - - WEBSOCKET_ENABLED=true # Enable WebSocket notifications + - WEBSOCKET_ENABLED=true # Enable WebSocket notifications - ADMIN_TOKEN=${ADMIN_TOKEN} - DOMAIN=${DOMAIN} - ROCKET_PORT=80 @@ -18,3 +18,7 @@ services: volumes: vaultwarden_data: + name: vaultwarden_data + + +networks: {} diff --git a/wiki/docker-compose.yml b/wiki/docker-compose.yml new file mode 100644 index 0000000..94f6eea --- /dev/null +++ b/wiki/docker-compose.yml @@ -0,0 +1,32 @@ +version: "3" +services: + + db: + image: postgres:15-alpine + environment: + POSTGRES_DB: ${POSTGRES_DB} + POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} + POSTGRES_USER: ${POSTGRES_USER} + logging: + driver: "none" + restart: unless-stopped + volumes: + - db-data:/var/lib/postgresql/data + + wiki: + image: ghcr.io/requarks/wiki:2 + depends_on: + - db + environment: + DB_TYPE: ${DB_TYPE} + DB_HOST: ${DB_HOST} + DB_PORT: ${DB_PORT} + DB_USER: ${DB_USER} + DB_PASS: ${DB_PASS} + DB_NAME: ${POSTGRES_DB} + restart: unless-stopped + ports: + - "8300:3000" + +volumes: + db-data: \ No newline at end of file