services: clash: image: dreamacro/clash:v1.18.0 container_name: clash hostname: clash restart: always networks: - app_network ports: - "7890:7890" - "7891:7891" - "9090:9090" volumes: - /usr/share/zoneinfo/Asia/Shanghai:/etc/localtime:ro - ./hosts:/etc/hosts:ro - ./config:/root/.config/clash networks: app_network: name: app_network external: true # driver: bridge # driver_opts: # encrypted: 'true' # ipam: # driver: default # config: # - subnet: 10.21.22.1/24