This commit is contained in:
Joren 2024-12-30 17:06:07 +01:00
parent 4ed3de1f01
commit e598394838
Signed by: Joren
GPG Key ID: 280E33DFBC0F1B55
4 changed files with 22 additions and 5 deletions

View File

@ -15,10 +15,11 @@ EXPOSE 8080
RUN chmod +x /app/drmdtool RUN chmod +x /app/drmdtool
RUN chmod +x /app/nre RUN chmod +x /app/nre
RUN mkdir -p /app/Watched
ENV BASE_DIR=/app/Videos
ENV FORMAT=mkv ENV FORMAT=mkv
ENV TEMP_BASE_DIR=/app/tmp
ENTRYPOINT ["/app/drmdtool"] ENTRYPOINT ["/app/drmdtool"]

View File

@ -1,7 +1,14 @@
[General]
BaseDir = "/app/Videos/" BaseDir = "/app/Videos/"
Format = "${FORMAT:-mkv}" Format = "mkv"
TempBaseDir = "/app/tmp/" TempBaseDir = "/app/tmp/"
EnableConsole = true
[WatchFolder]
Path = "/app/Watched"
PollingInterval = 10
UsePolling = false
UseInotify = true
[N_m3u8DLRE] [N_m3u8DLRE]
Path = "/app/nre" Path = "/app/nre"

View File

@ -6,7 +6,16 @@ services:
- "8080:8080" - "8080:8080"
volumes: volumes:
- /mnt/media:/app/Videos - /mnt/media:/app/Videos
- /home/joren/Documents/School/PREMA/labs/DRMD:/app/Watched
environment: environment:
- FORMAT=mp4 # When commented, defaults are taken from config.toml
- FORMAT=mkv
#- BASE_DIR=/path/to/base
#- TEMP_BASE_DIR=/path/to/temp
#- ENABLE_CONSOLE=false
#- WATCHED_FOLDER=/path/to/watched
- USE_POLLING=true
- USE_INOTIFY=false
#- POLLING_INTERVAL=3000 (In seconds)
restart: unless-stopped restart: unless-stopped

BIN
drmdtool

Binary file not shown.