1234567891011121314151617181920212223242526272829303132 |
- services:
- edgevpn:
- image: quay.io/mudler/edgevpn:latest
- pull_policy: always
- container_name: edgevpn
- restart: unless-stopped
- volumes:
- - /home/CHANGEME/.edgevpn:/root/.edgevpn
- # If you want to specify arguments on startup you can either use the `entrypoint` below or specify environment variables
- # 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
- environment:
- - EDGEVPNTOKEN=CHANGEME
- # This is needed to allow edgevpn to setup the `edgevpn0` network interface systemwide:
- network_mode: host
- devices:
- - /dev/net/tun:/dev/net/tun
- cap_add:
- - NET_ADMIN
- # basic healthcheck that checks wether "edgevpn0" is indeed present as a network interface
- healthcheck:
- test: ["CMD", "sh", "-c", "ifconfig | grep -q edgevpn0"]
- interval: 30s
- timeout: 10s
- retries: 3
- start_period: 40s
- # logging:
- # driver: journald
|