OMV6 on Pi4
OS on SD
Data on USB SSD
Headless Pi
Connecting from LAN PC to OMV using browser, have Putty / SSH, have Portainer 2.27.0
Previously had Wireguard operating perfectly, but it was installed on the OS, not in a Docket Container.
Want to move Wireguard to a Container. but can't get it to run.
In portainer, I created a Stack ( code below - found online ) and it created the Container.
While the Container is starting up, in the Container list, it shows an IP and the 2 port numbers, but as soon as it changes to 'Running' the IP and Port fields are blank ( '-' )
Can't browse to the wireguard UI ( 192.169.2.50:51821 ) ( 192.169.2.50 being the local IP of the Pi )
Any advice welcomed.
Code
version: '2'
services:
wg-easy:
environment:
- WG_HOST=00.000.00.00 # my isp fixed ip address
# Optional:
- PASSWORD=xxxxxxxxx # my password for wg UI
- WG_PORT=51820
- WG_DEFAULT_DNS=192.169.2.100
image: ghcr.io/wg-easy/wg-easy:latest
container_name: wg-easy
volumes:
- /portainer/Files/AppData/Config/wireguard:/etc/wireguard
ports:
- 51820:51820/udp
- 51821:51821/tcp
restart: unless-stopped
cap_add:
- NET_ADMIN
- SYS_MODULE
sysctls:
- net.ipv4.ip_forward=1
- net.ipv4.conf.all.src_valid_mark=1
Display More