38 lines
1.2 KiB
YAML
38 lines
1.2 KiB
YAML
---
|
|
services:
|
|
pluton:
|
|
image: plutonhq/pluton:0.16.2
|
|
container_name: pluton-backup
|
|
restart: always
|
|
ports:
|
|
- "${SERVER_PORT:-5173}:${SERVER_PORT:-5173}"
|
|
volumes:
|
|
- ${PLUTON_DATA:-/mnt/nas1/shared/pluton/data}:/data
|
|
- ${PLUTON_BACKUP_VOLUME_SHARED:-/mnt/nas1/shared}:/backups/shared
|
|
environment:
|
|
ENCRYPTION_KEY: ${ENCRYPTION_KEY}
|
|
USER_NAME: ${USER_NAME}
|
|
USER_PASSWORD: ${USER_PASSWORD}
|
|
APP_TITLE: ${APP_TITLE:-Pluton}
|
|
APP_URL: ${APP_URL:-https://backups.fukurokuju.dev}
|
|
SERVER_PORT: ${SERVER_PORT:-5173}
|
|
MAX_CONCURRENT_BACKUPS: ${MAX_CONCURRENT_BACKUPS:-2}
|
|
SESSION_DURATION: ${SESSION_DURATION:-7}
|
|
ALLOW_CUSTOM_RESTORE_PATH: ${ALLOW_CUSTOM_RESTORE_PATH:-true}
|
|
ALLOW_FILE_BROWSER: ${ALLOW_FILE_BROWSER:-true}
|
|
DISABLE_EVENT_SCRIPTS: ${DISABLE_EVENT_SCRIPTS:-false}
|
|
NODE_ENV: production
|
|
IS_DOCKER: "true"
|
|
|
|
healthcheck:
|
|
test:
|
|
[
|
|
"CMD",
|
|
"sh",
|
|
"-c",
|
|
"wget --no-verbose --tries=1 --spider http://localhost:${SERVER_PORT:-5173}/api/health",
|
|
]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 40s
|