Loading

docker-compose 部署adguardhome

创建工作目录

mkdir /opt/adguardhome
mkdir /opt/adguardhome/workdir  /opt/adguardhome/confdir

创建docker-compose.yml 文件

cat /opt/adguardhome/docker-compose.yml
version: "2"
services:
  adguardhome:
    image: adguard/adguardhome
    container_name: adguardhome
    ports:
      - 53:53/tcp
      - 53:53/udp
      - 80:80/tcp
      - 3000:3000/tcp
    volumes:
      - ./workdir:/opt/adguardhome/work
      - ./confdir:/opt/adguardhome/conf
    restart: unless-stopped

启动

cd /opt/adguardhome && docker-compose up -d

初始化及配置

网页登陆访问 http://x.x.x.x:3000
配置完后, 根据需要修改端口调整 docker-compose.yml文件

posted @ 2022-06-10 16:46  后边跟上。  阅读(1612)  评论(0编辑  收藏  举报