forked from agalwood/Motrix
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.named-volumes.yaml
More file actions
33 lines (31 loc) · 953 Bytes
/
Copy pathcompose.named-volumes.yaml
File metadata and controls
33 lines (31 loc) · 953 Bytes
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
name: motrix
services:
server:
image: "${MOTRIX_IMAGE:-motrixapp/motrix-server:latest}"
init: true
read_only: true
user: "1000:1000"
security_opt:
- no-new-privileges:true
restart: unless-stopped
stop_grace_period: 2m
tmpfs:
- /tmp:rw,noexec,nosuid,size=64m,mode=1777
environment:
MOTRIX_DATA_DIR: /data
MOTRIX_TEMP_DIR: /data/tmp
MOTRIX_PLUGIN_DIR: /data/plugins
MOTRIX_DEFAULT_SAVE_DIR: /downloads
MOTRIX_ALLOWED_SAVE_DIRS: /downloads
MOTRIX_MDXP_HOST: 0.0.0.0
MOTRIX_MDXP_PORT: 16801
MOTRIX_PUBLIC_URL: "${MOTRIX_PUBLIC_URL:-}"
ports:
- "${MOTRIX_WEB_BIND_IP:-${MOTRIX_BIND_IP:-0.0.0.0}}:${MOTRIX_HTTP_PORT:-8080}:8080"
- "${MOTRIX_MDXP_BIND_IP:-${MOTRIX_BIND_IP:-0.0.0.0}}:${MOTRIX_MDXP_PUBLIC_PORT:-16801}:16801"
volumes:
- motrix-data:/data
- motrix-downloads:/downloads
volumes:
motrix-data:
motrix-downloads: