docker-compose部署clash

version: '3'
services:
  clash:
    image: dreamacro/clash
    container_name: clash
    ports:
      - "7890:7890"
      - "7090:80"
    expose:
      - "80"
    volumes:
      -  ./data/config:/root/.config/clash 
    restart: always
  Dashboard:
    image: haishanh/yacd
    container_name: yacd
    # ports:
      # - "7090:80"
    volumes:
      - ./data/nginx:/etc/nginx/conf.d
    restart: always
    network_mode: "service:clash"
# networks:
  # default:
    # external:
      # name: clash