mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2025-12-11 20:15:30 +01:00
39 lines
796 B
YAML
39 lines
796 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
spacedrive:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
image: spacedrive:latest
|
|
container_name: spacedrive-daemon
|
|
restart: unless-stopped
|
|
|
|
# Data persistence
|
|
volumes:
|
|
- spacedrive-data:/data
|
|
# Optional: mount host directories to index
|
|
# - /path/to/your/files:/mnt/files:ro
|
|
|
|
# Environment variables
|
|
environment:
|
|
- SPACEDRIVE_DATA_DIR=/data
|
|
# Optional: Set instance name
|
|
# - SPACEDRIVE_INSTANCE=default
|
|
|
|
# Optional: Expose ports when API is enabled
|
|
# ports:
|
|
# - "8080:8080"
|
|
|
|
# Health check
|
|
healthcheck:
|
|
test: ["CMD", "sd-cli", "status"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 10s
|
|
|
|
volumes:
|
|
spacedrive-data:
|
|
driver: local
|