banner
herman

herman

哈哈哈哈哈哈哈哈哈哈哈哈哈哈

Docker Compose在威联通中的应用

image

威联通 Container Station 容器工作站在创建 Docker 容器的时候支持 Docker Compose,对于应用的更新、创建超级方便,编辑好 YAML 配置文件,一次性搞定!,方法很简单:

image

image

注意应用程序名称那里不要有大写字母。

附几个代码:

version: '3.8'

services:

linuxserver:

container_name: Emby

network_mode: bridge

environment:

- PUID=1000

- PGID=0

- TZ=Asia/Shanghai

volumes:

- '/share/Container/Emby:/config'

- '/share/Video:/Video'

- '/share/Music:/Music'

devices:

- '/dev/dri:/dev/dri'

restart: unless-stopped

image: 'linuxserver/emby'

version: '3.8'

services:

transmission:

container_name: transmission

environment:

- PUID=1000

- PGID=0

- TZ=Asis/Shanghai

- TRANSMISSION_WEB_HOME=/ui

network_mode: bridge

volumes:

- '/share/Container/transmission/config:/config'

- '/share/Container/transmission/watch:/watch'

- '/share/Container/transmission/ui:/ui'

- '/share/Down1:/Down1'

- '/share/Down2:/Down2'

- '/share/Down3:/Down3'

- '/share/Down4:/Down4'

- '/share/Down5:/Down5'

- '/share/Down6:/Down6'

- '/share/Down7:/Down7'

restart: unless-stopped

image: 'linuxserver/transmission'

version: '3.8'

services:

linuxserver:

container_name: qbittorrent

network_mode: bridge

environment:

- PUID=1000

- PGID=0

- TZ=Asis/Shanghai

- WEBUI_PORT=8080

ports:

- '8080:8080'

volumes:

- '/share/Container/qbittorrent/config:/config'

- '/share/Container/qbittorrent/ui:/ui'

- '/share/Down1:/Down1'

- '/share/Down2:/Down2'

- '/share/Down3:/Down3'

- '/share/Down4:/Down4'

- '/share/Down5:/Down5'

- '/share/Down6:/Down6'

- '/share/Down7:/Down7'

restart: unless-stopped

image: 'linuxserver/qbittorrent'

version: '3.8'

services:

nas-tools:

container_name: NasTools

hostname: nas-tools

network_mode: bridge

ports:

- '3000:3000'

volumes:

- '/share/Container/NasTools/config:/config'

- '/share/Video:/video'

environment:

- PUID=1000

- PGID=0

- UMASK=000

- NASTOOL_AUTO_UPDATE=false

- NASTOOL_CN_UPDATE=false

restart: unless-stopped

image: hsuyelin/nas-tools

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.