38 lines
997 B
YAML
38 lines
997 B
YAML
# Example docker-compose configuration for NAS storage
|
|
# Copy this file to docker-compose.yml and edit the volume path
|
|
|
|
version: '3.8'
|
|
|
|
services:
|
|
newsarchiver:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
container_name: newsarchiver
|
|
ports:
|
|
- "5000:5000"
|
|
environment:
|
|
- ARCHIVE_DIR=/data/archives
|
|
volumes:
|
|
# Example: Mount your NAS to /path/to/nas/archives
|
|
# Replace with your actual NAS path
|
|
- /path/to/nas/archives:/data/archives
|
|
# Or use Docker named volume for local storage:
|
|
# - newsarchiver_data:/data/archives
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:5000/"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
# Optional: Run as specific UID/GID for NAS permissions
|
|
# user: "1000:1000"
|
|
|
|
volumes:
|
|
newsarchiver_data:
|
|
driver: local
|
|
driver_opts:
|
|
type: none
|
|
o: bind
|
|
device: /path/to/nas/archives # Replace with your NAS path
|