adding docker example updates

This commit is contained in:
2025-09-09 10:44:35 -04:00
parent 4685c970af
commit 49a2c1788a
4 changed files with 112 additions and 24 deletions
+17 -5
View File
@@ -1,8 +1,10 @@
version: '3.8'
services:
NFOguard:
nfoguard:
# image: ghcr.io/sbcrumb/nfoguard:latest # Use this once package is public
build: . # Temporary local build
container_name: NFOguard
container_name: nfoguard
restart: unless-stopped
user: "1000:1000"
networks:
@@ -10,11 +12,21 @@ services:
ports:
- "8085:8080"
volumes:
# Media directory
- /mnt/unionfs/Media/:/media:rw
# NFOGuard data directory for database and logs
- ./data:/app/data:rw
- ./.env:/app/.env:ro
env_file:
- .env
# Configuration files (SECURE TWO-FILE SYSTEM)
- ./.env:/app/.env:ro # Main config (safe to share)
- ./.env.secrets:/app/.env.secrets:ro # API keys & passwords (never commit)
# Optional: Can use env_file for simple setups, but file mounting is more secure
# env_file:
# - .env
# - .env.secrets
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
interval: 30s