Files
NasRobot/docker-compose.yml
孙诚 e7168a2fe6
All checks were successful
Docker Build & Deploy / Build Docker Image (push) Successful in 1m0s
Docker Build & Deploy / Deploy to Production (push) Successful in 7s
1
2025-11-12 14:28:26 +08:00

40 lines
1001 B
YAML

services:
nas_robot:
build:
context: .
dockerfile: Dockerfile
container_name: nas_robot
restart: always
privileged: true
user: "root:root"
networks:
- all_in
environment:
- TZ=Asia/Shanghai
volumes:
- /etc/localtime:/etc/localtime:ro
- /wd/media/tv:/data/media/tv:rw
- /wd/media/anime:/data/media/anime:rw
- /wd/media/music:/data/media/music:rw
- /wd/media/others/anime:/data/media/anime-other:rw
- /wd/apps/vols/nas_robot:/app/data:rw
- /wd:/host/wd:ro
- /proc/mounts:/host/proc/mounts:ro
nas_robot_proxy:
image: beevelop/nginx-basic-auth:v2023.10.1
container_name: nas_robot_proxy
restart: always
networks:
- all_in
ports:
- 14902:80 # 开放端口
environment:
- TZ=Asia/Shanghai
- HTPASSWD=suncheng:$$apr1$$2QX32QHP$$HIGAbCuTt8jxdc4uDzNLI1
- FORWARD_PORT=8080
- FORWARD_HOST=nas_robot
networks:
all_in:
external: true