-
-
Save paraself/10e8b6926a705f53c91235d4da184137 to your computer and use it in GitHub Desktop.
Docker Compose for Clash and YACD
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services: | |
# See https://github.com/Dreamacro/clash/wiki/Running-Clash-as-a-service#docker | |
clash: | |
# ghcr.io/dreamacro/clash | |
# ghcr.io/dreamacro/clash-premium | |
# dreamacro/clash | |
# dreamacro/clash-premium | |
image: dreamacro/clash-premium | |
container_name: clash-premium | |
volumes: | |
- ./profiles/config.yaml:/root/.config/clash/config.yaml | |
- ./profiles:/root/.config/clash/profiles | |
# - ./ui:/ui # dashboard volume | |
ports: | |
- "7890:7890" | |
- "7891:7891" | |
- "9090:9090" # external controller (Restful API) | |
# TUN | |
# cap_add: | |
# - NET_ADMIN | |
# devices: | |
# - /dev/net/tun | |
restart: unless-stopped | |
network_mode: "bridge" # or "host" on Linux | |
# See https://github.com/Dreamacro/clash/wiki/Running-Clash-as-a-service#docker | |
yacd: | |
image: ghcr.io/haishanh/yacd:master | |
container_name: clash-yacd | |
ports: | |
- "1234:80" | |
restart: unless-stopped |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment