From 9c0307ad0cacc7719ad4fb4ce1c2d554bf0d4d40 Mon Sep 17 00:00:00 2001 From: Hane Date: Tue, 26 May 2026 17:45:51 +0200 Subject: [PATCH] feat: added pluton compose file --- docker/pluton/docker-compose.yaml | 50 +++++++++++++++++++++++++++++++ docker/pluton/sample.env | 6 ++++ 2 files changed, 56 insertions(+) create mode 100644 docker/pluton/docker-compose.yaml create mode 100644 docker/pluton/sample.env diff --git a/docker/pluton/docker-compose.yaml b/docker/pluton/docker-compose.yaml new file mode 100644 index 0000000..b4ff97d --- /dev/null +++ b/docker/pluton/docker-compose.yaml @@ -0,0 +1,50 @@ +--- +services: + pluton: + image: plutonhq/pluton:latest + container_name: pluton-backup + #restart: unless-stopped + + ports: + - "${SERVER_PORT:-5173}:${SERVER_PORT:-5173}" + + volumes: + # Main data volume - contains database, config, logs + - pluton-data:/data + + # Optional: Mount host directories to backup + + # Example: Make user's documents folders Accessible to Pluton + - /home//pihanepi/config/nginx:/mnt/nginxconf:ro #linux + - /home//pihanepi/data/pluton/backupdir:/mnt/backupdir + + environment: + # ===== REQUIRED: Security & Authentication ===== + # Generate secure random strings (min 12 characters each) + ENCRYPTION_KEY: ${ENCRYPTION_KEY} # Encryption key for restic/rclone Snapshot encryption + USER_NAME: ${USER_NAME} # Admin username for login + USER_PASSWORD: ${USER_PASSWORD} # Admin password for login + + # ===== Application Settings ===== + APP_TITLE: ${APP_TITLE:-Pluton} + #APP_URL: ${APP_URL:-http://localhost:5173} + SERVER_PORT: ${SERVER_PORT:-5173} + MAX_CONCURRENT_BACKUPS: ${MAX_CONCURRENT_BACKUPS:-2} + SESSION_DURATION: ${SESSION_DURATION:-7} # How long frontend login Session lasts in Days + + # ===== User Interface Security Settings ===== + ALLOW_CUSTOM_RESTORE_PATH: ${ALLOW_CUSTOM_RESTORE_PATH:-true} + ALLOW_FILE_BROWSER: ${ALLOW_FILE_BROWSER:-true} + DISABLE_EVENT_SCRIPTS: ${DISABLE_EVENT_SCRIPTS:-false} + + # ===== Docker-specific (do not change) ===== + NODE_ENV: production + IS_DOCKER: "true" + +volumes: + pluton-data: + name: "pluton-volume" + driver_opts: + type: "volume" + external: "false" + \ No newline at end of file diff --git a/docker/pluton/sample.env b/docker/pluton/sample.env new file mode 100644 index 0000000..9b24d38 --- /dev/null +++ b/docker/pluton/sample.env @@ -0,0 +1,6 @@ +ENCRYPTION_KEY='' +USER_NAME='' +USER_PASSWORD='' + +# Optional - override defaults +SERVER_PORT='8050' \ No newline at end of file