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

載入中......
此文章數據所有權由區塊鏈加密技術和智能合約保障僅歸創作者所有。