feat(compose): show files on host machine (#582)

This commit is contained in:
旋律已经死了。
2025-06-09 23:28:04 +08:00
committed by JohnsonRan
parent b951a3bc78
commit 74320f04c2
3 changed files with 19 additions and 19 deletions

View File

@@ -23,14 +23,6 @@ RUN npm ci --only=production && npm cache clean --force
# 复制应用文件
COPY . .
# 创建非 root 用户
RUN addgroup -g 1001 -S nodejs && \
adduser -S libretv -u 1001
# 更改文件所有者
RUN chown -R libretv:nodejs /app
USER libretv
# 暴露端口
EXPOSE 8080

View File

@@ -6,4 +6,14 @@ services:
- "8899:8080"
environment:
- PASSWORD=${PASSWORD:-111111}
volumes:
- libretv_data:/app
restart: unless-stopped
volumes:
libretv_data:
driver: local
driver_opts:
type: none
o: bind
device: ${PWD:-.}/data

View File

@@ -103,18 +103,16 @@ docker run -d \
### Docker Compose
`docker-compose.yml` 文件
获取最新 `docker-compose.yml`
```yaml
services:
libretv:
image: bestzwei/libretv:latest
container_name: libretv
ports:
- "8899:8080"
environment:
- PASSWORD=${PASSWORD:-111111}
restart: unless-stopped
```bash
curl -kLo docker-compose.yml https://raw.githubusercontent.com/LibreSpark/LibreTV/main/docker-compose.yml
```
启动 LibreTV
```bash
mkdir data
docker-compose up -d
```
### 本地开发环境