82 lines
2.0 KiB
YAML
Raw Normal View History

2025-10-03 02:09:53 +02:00
version: '3.8'
# ============================================================================
# WebDAV Server - Docker Compose Configuration
# ============================================================================
services:
# --------------------------------------------------------------------------
# WebDAV Server
# --------------------------------------------------------------------------
webdav:
build:
context: .
dockerfile: Dockerfile
container_name: webdav-server
restart: unless-stopped
ports:
2025-10-03 14:45:07 +02:00
- "8597:8597"
2025-10-03 02:09:53 +02:00
volumes:
# Persistent storage for user files
- ./webdav:/app/webdav
# Database persistence
- ./webdav.db:/app/webdav.db
# Logs
- ./logs:/app/logs
# Backups
- ./backups:/app/backups
# Configuration (optional - uncomment to override)
# - ./.env:/app/.env:ro
environment:
# Server Configuration
- HOST=0.0.0.0
2025-10-03 15:50:49 +02:00
- PORT=8597
2025-10-03 02:09:53 +02:00
# Database
- DB_PATH=/app/webdav.db
# WebDAV Root
- WEBDAV_ROOT=/app/webdav
# Authentication
- AUTH_METHODS=basic,digest
- SESSION_TIMEOUT=3600
# Performance
- MAX_CONNECTIONS=1000
- WORKERS=4
# Logging
- LOG_LEVEL=INFO
- LOG_FILE=/app/logs/webdav.log
networks:
- webdav-network
healthcheck:
2025-10-03 15:50:49 +02:00
test: ["CMD", "curl", "-f", "http://localhost:8597/"]
2025-10-03 02:09:53 +02:00
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
# --------------------------------------------------------------------------
# Redis Cache (Optional but recommended for production)
# --------------------------------------------------------------------------
# ============================================================================
# Networks
# ============================================================================
networks:
webdav-network:
driver: bridge