| version: "3" | |
| services: | |
| warp: | |
| image: caomingjun/warp | |
| container_name: warp | |
| restart: always | |
| ports: | |
| - "1080:1080" | |
| environment: | |
| - WARP_SLEEP=2 | |
| # - WARP_LICENSE_KEY= # optional | |
| cap_add: | |
| # Docker already have them, these are for podman users | |
| - MKNOD | |
| - AUDIT_WRITE | |
| # additional required cap for warp, both for podman and docker | |
| - NET_ADMIN | |
| sysctls: | |
| - net.ipv6.conf.all.disable_ipv6=0 | |
| - net.ipv4.conf.all.src_valid_mark=1 | |
| volumes: | |
| - ./data:/var/lib/cloudflare-warp | |