If you want to setup WARP Connector
Note
If you have already started the container, stop it and delete the data directory.
- Create
mdm.xml
as explained in Cloudflare WARP Connector step 4 - Mount the
mdm.xml
to path/var/lib/cloudflare-warp/mdm.xml
- Start the container
Sample Docker Compose File:
services:
warp:
image: caomingjun/warp
container_name: warp
restart: always
ports:
- "1080:1080"
environment:
- WARP_SLEEP=2
cap_add:
- NET_ADMIN
sysctls:
- net.ipv6.conf.all.disable_ipv6=0
- net.ipv4.conf.all.src_valid_mark=1
- net.ipv4.ip_forward=1
volumes:
- ./data:/var/lib/cloudflare-warp
- ./config/warp/mdm.xml:/var/lib/cloudflare-warp/mdm.xml