-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (38 loc) · 1.02 KB
/
Copy pathdocker-compose.yml
File metadata and controls
43 lines (38 loc) · 1.02 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
version: '3.8'
services:
openlist-strm:
image: openlist-strm:latest
container_name: openlist-strm
build:
context: .
dockerfile: Dockerfile
restart: unless-stopped
# 使用宿主机用户运行容器,避免权限问题
# 获取当前用户 UID: id -u
# 获取当前用户 GID: id -g
user: "${PUID:-1000}:${PGID:-1000}"
ports:
- "8080:8080"
volumes:
# Configuration file
- ./config.yaml:/app/configs/config.yaml:ro
# Data persistence
- ./data:/app/data
# Logs
- ./logs:/app/logs
# STRM output directory (mount your media library path here)
- /path/to/your/strm:/mnt/strm
environment:
# 时区设置
- TZ=Asia/Shanghai
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8080/health"]
interval: 30s
timeout: 3s
start_period: 5s
retries: 3
networks:
- openlist-strm-network
networks:
openlist-strm-network:
driver: bridge