Neilpang / wgcf-docker

CloudFlare warp in docker
141 stars 37 forks source link

Doesn't works #13

Closed ZhymabekRoman closed 8 months ago

ZhymabekRoman commented 9 months ago

Thanks for the project!

Docker compose file:

version: '3'

services:
  wgcf1:
    image: neilpang/wgcf-docker:latest
    volumes:
      - ./service/wgcf1:/wgcf
      - /lib/modules:/lib/modules
      - /etc/localtime:/etc/localtime:ro
    privileged: true
    sysctls:
      net.ipv6.conf.all.disable_ipv6: 0
    cap_add:
      - NET_ADMIN
    restart: always
    healthcheck:
      test: curl -fs https://www.cloudflare.com/cdn-cgi/trace | grep -q -E 'warp=(on|plus)' && exit 0 || exit 1
      interval: 5s
      timeout: 45s
      retries: 10

Log file: output.txt

wgcf works great outside of the Docker container