chore:file cleanup
This commit is contained in:
+23
-24
@@ -2,31 +2,19 @@ version: '3.8'
|
||||
|
||||
services:
|
||||
nfoguard:
|
||||
# image: ghcr.io/sbcrumb/nfoguard:latest # Use this once package is public
|
||||
build: . # Temporary local build
|
||||
image: ghcr.io/jskala/nfoguard:latest
|
||||
container_name: nfoguard
|
||||
restart: unless-stopped
|
||||
user: "1000:1000"
|
||||
networks:
|
||||
- saltbox
|
||||
ports:
|
||||
- "8085:8080"
|
||||
- "8080:8080"
|
||||
environment:
|
||||
- PUID=${PUID:-1000}
|
||||
- PGID=${PGID:-1000}
|
||||
- TZ=${TZ:-UTC}
|
||||
volumes:
|
||||
# Media directory
|
||||
- /mnt/unionfs/Media/:/media:rw
|
||||
|
||||
# NFOGuard data directory for database and logs
|
||||
- ./data:/app/data:rw
|
||||
|
||||
# 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
|
||||
|
||||
- ./data:/app/data
|
||||
- ./config:/app/config
|
||||
- ${MEDIA_PATH}:/media:ro
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
|
||||
interval: 30s
|
||||
@@ -34,6 +22,17 @@ services:
|
||||
retries: 3
|
||||
start_period: 40s
|
||||
|
||||
networks:
|
||||
saltbox:
|
||||
external: true
|
||||
# Optional: PostgreSQL database
|
||||
# postgres:
|
||||
# image: postgres:15
|
||||
# container_name: nfoguard-db
|
||||
# restart: unless-stopped
|
||||
# environment:
|
||||
# POSTGRES_DB: nfoguard
|
||||
# POSTGRES_USER: ${DB_USER:-nfoguard}
|
||||
# POSTGRES_PASSWORD: ${DB_PASSWORD}
|
||||
# volumes:
|
||||
# - postgres_data:/var/lib/postgresql/data
|
||||
|
||||
# volumes:
|
||||
# postgres_data:
|
||||
Reference in New Issue
Block a user