docker-compose.yml 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. services:
  2. edgevpn:
  3. image: quay.io/mudler/edgevpn:latest
  4. pull_policy: always
  5. container_name: edgevpn
  6. restart: unless-stopped
  7. volumes:
  8. - /home/CHANGEME/.edgevpn:/root/.edgevpn
  9. # If you want to specify arguments on startup you can either use the `entrypoint` below or specify environment variables
  10. # entrypoint: /usr/bin/edgevpn --address 10.5.0.10/24 --api --api-listen 127.0.0.1:57777 --low-profile --privkey-cache --privkey-cache-dir=/root/.edgevpn
  11. environment:
  12. - EDGEVPNTOKEN=CHANGEME
  13. # This is needed to allow edgevpn to setup the `edgevpn0` network interface systemwide:
  14. network_mode: host
  15. devices:
  16. - /dev/net/tun:/dev/net/tun
  17. cap_add:
  18. - NET_ADMIN
  19. # basic healthcheck that checks wether "edgevpn0" is indeed present as a network interface
  20. healthcheck:
  21. test: ["CMD", "sh", "-c", "ifconfig | grep -q edgevpn0"]
  22. interval: 30s
  23. timeout: 10s
  24. retries: 3
  25. start_period: 40s
  26. # logging:
  27. # driver: journald