Skip to content

构建具有完整分流配置和 GeoSite 列表自动更新的 SmartDNS Docker 镜像

License

Notifications You must be signed in to change notification settings

fordes123/smartdns-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

smartdns-docker

Building a SmartDNS Docker image with a full Shunt Configuration and automatic updates for GeoSite lists.

https://hub.docker.com/r/fordes123/smartdns

Usage

docker-compose

services:
  smartdns:
    image: fordes123/smartdns:latest
    container_name: smartdns
    volumes:
      - /path/to/smartdns:/etc/smartdns
    environment:
      - UPDATE_INTERVAL=0 0 */7 * *
    ports:
      - 53:53/udp
      - 53:53/tcp
    restart: unless-stopped

docker cli

docker run -d \
  --name smartdns \
  --restart unless-stopped \
  --env UPDATE_INTERVAL='0 0 */7 * *' \
  -v /path/to/smartdns:/etc/smartdns \
  -p 53:53/udp \
  -p 53:53/tcp \
  fordes123/smartdns:latest

Parameters

Parameter Function
-p 53 DNS port.
-v /etc/smartdns config path.
-e UPDATE_INTERVAL=0 0 */7 * * auto update geosite rule cron expression

Acknowledgments

About

构建具有完整分流配置和 GeoSite 列表自动更新的 SmartDNS Docker 镜像

Topics

Resources

License

Stars

Watchers

Forks