-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (44 loc) · 1.34 KB
/
Copy pathdocker-compose.yml
File metadata and controls
47 lines (44 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
services:
explicit-labeler:
build:
context: .
dockerfile: docker/Dockerfile
args:
- UID=${UID:-1000}
- GID=${GID:-1000}
# image: ghcr.io/enigmaoftech/explicit-labeler:latest
container_name: explicit-labeler
restart: unless-stopped
user: "${UID:-1000}:${GID:-1000}"
environment:
- TZ=${TZ:-UTC}
- UID=${UID:-1000}
- GID=${GID:-1000}
- RUN_AT_START=${RUN_AT_START:-true}
- APP_TIMES=${APP_TIMES:-02:00}
- DELAY_AFTER_ALBUM=${DELAY_AFTER_ALBUM:-0.5}
- DELAY_AFTER_TRACK=${DELAY_AFTER_TRACK:-0.2}
- DELAY_AFTER_ARTIST=${DELAY_AFTER_ARTIST:-1.0}
- DELAY_AFTER_API_CALL=${DELAY_AFTER_API_CALL:-0.1}
- PLEX_BASEURL=${PLEX_BASEURL}
- PLEX_TOKEN=${PLEX_TOKEN}
- PLEX_LIBRARY=${PLEX_LIBRARY:-Music}
- DATA_DIR=/app/data
- LOG_FILE=${LOG_FILE:-/app/logs/explicit-labeler.log}
- LOG_RETENTION_RUNS=${LOG_RETENTION_RUNS:-7}
volumes:
- ./data:/app/data
- ./logs:/app/logs
# Security hardening
tty: false
stdin_open: false
security_opt:
- no-new-privileges:true
cap_drop:
- ALL
# Read-only root filesystem; allow only what the app needs writable
read_only: true
tmpfs:
- /tmp:rw,noexec,nosuid,nodev,size=256m
# App process guardrails
pids_limit: 128