From b6d0b235138b4221182f8077e88391ec52cc875f Mon Sep 17 00:00:00 2001 From: Sthope Date: Sun, 1 May 2022 14:03:46 +0200 Subject: [PATCH] first commit --- docs/portainer-stacks/LibrePhotos.md | 86 ++++++++++++++++++++++++++++ mkdocs.yml | 2 + 2 files changed, 88 insertions(+) create mode 100644 docs/portainer-stacks/LibrePhotos.md diff --git a/docs/portainer-stacks/LibrePhotos.md b/docs/portainer-stacks/LibrePhotos.md new file mode 100644 index 0000000..7d1989a --- /dev/null +++ b/docs/portainer-stacks/LibrePhotos.md @@ -0,0 +1,86 @@ +Portainer Stack: +```yaml +--- +# DO NOT EDIT +# The .env file has everything you need to edit. +# Run options: +# 1. Use prebuilt images (preferred method): +# run cmd: docker-compose up -d +# 2. Build images on your own machine: +# build cmd: COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 docker-compose build +# run cmd: docker-compose up -d + +version: "3.8" +services: + proxy: + image: reallibrephotos/librephotos-proxy:${tag} + container_name: proxy + restart: unless-stopped + volumes: + - ${myPhotos}:/data + - ${data}/protected_media:/protected_media + ports: + - ${httpPort}:80 + depends_on: + - backend + - frontend + + db: + image: postgres:13 + container_name: db + restart: unless-stopped + environment: + - POSTGRES_USER=${dbUser} + - POSTGRES_PASSWORD=${dbPass} + - POSTGRES_DB=${dbName} + volumes: + - ${data}/db:/var/lib/postgresql/data + command: postgres -c fsync=off -c synchronous_commit=off -c full_page_writes=off -c random_page_cost=1.0 + + frontend: + image: reallibrephotos/librephotos-frontend:${tag} + container_name: frontend + restart: unless-stopped + depends_on: + - backend + + backend: + image: reallibrephotos/librephotos:${tag} + container_name: backend + restart: unless-stopped + volumes: + - ${myPhotos}:/data + - ${data}/protected_media:/protected_media + - ${data}/logs:/logs + - ${data}/cache:/root/.cache + + environment: + - SECRET_KEY=${shhhhKey} + - BACKEND_HOST=backend + - ADMIN_EMAIL=${adminEmail} + - ADMIN_USERNAME=${userName} + - ADMIN_PASSWORD=${userPass} + - DB_BACKEND=postgresql + - DB_NAME=${dbName} + - DB_USER=${dbUser} + - DB_PASS=${dbPass} + - DB_HOST=${dbHost} + - DB_PORT=5432 + - REDIS_HOST=redis + - REDIS_PORT=6379 + - MAPBOX_API_KEY=${mapApiKey} + - WEB_CONCURRENCY=${gunniWorkers} + - SKIP_PATTERNS=${skipPatterns} + - ALLOW_UPLOAD=${allowUpload} + - DEBUG=0 + - HEAVYWEIGHT_PROCESS=${HEAVYWEIGHT_PROCESS} + + # Wait for Postgres + depends_on: + - db + + redis: + image: redis:6 + container_name: redis + restart: unless-stopped +``` \ No newline at end of file diff --git a/mkdocs.yml b/mkdocs.yml index c68ad5f..166e46c 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -84,11 +84,13 @@ nav: - Authentik: portainer-stacks/Authentik.md - Bazarr: portainer-stacks/bazarr.md - Bitwarden: portainer-stacks/Bitwarden.md + - CrowdSec: portainer-stacks/CrowdSec.md - digiKam: portainer-stacks/digiKam.md - Drone: portainer-stacks/Drone.md - Gitea: portainer-stacks/Gitea.md - Heimdall: portainer-stacks/heimdall.md - Jellyfin: portainer-stacks/jellyfin.md + - LibrePhotos: portainer-stacks/LibrePhotos.md - Librespeed: portainer-stacks/Librespeed.md - MQTT-Explorer: portainer-stacks/mqtt-explorer.md - MQTT Mosquitto: portainer-stacks/MQTT-Mosquitto.md