I have setup a new Odroid SBC with DietPi (debian ARM64) plus Docker and Docker Compose, following the guide on docker hub. The container is up and running, but I can’t reach the port. I think it’s a firewall setting inside the container.
Yes I did. I tried to access the service simply from the same LAN. I don’t reach it. I made also telnet test on the host itself. The port ist blocked. Portainer runs on the same host. No issue.
I know none of us have ever tested using dietpi; we’ve tested on debian, ubuntu, and raspibian. It’s definitely worth a shot to try on ubuntu if that’s easy for you
it may also be worth joining our discord for quicker live assistance.
sorry for late response. Had to find some time to make test. I changed to the official Odroid C4 Ubuntu Image of Hard Kernel. It works without issues. It seems it’s related to the Kernel headers. I tried to do it again in Dietpi and installed the Kernel Headers manually as well, but I wasn’t successful. I wanted to find out why, but simply then I stopped investigating. So in a nutshell: With Ubuntu 20.04 LTS for Odroid C4 from Hardkernel plus the following docker compose config it works:
version: “2.1”
services:
wireguard:
image: ghcr.io/linuxserver/wireguard
container_name: wireguard
cap_add:
- NET_ADMIN
- SYS_MODULE
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/Berlin
- SERVERURL=<> #optional e.g. myurl.com
- SERVERPORT=<> #optional e.g. 51820
- PEERS=10 #optional
- PEERDNS=auto #optional
- INTERNAL_SUBNET=10.13.13.0 #optional
- ALLOWEDIPS=0.0.0.0/0#optional
volumes:
- /docker_conf/wireguard/config:/config
- /lib/modules:/lib/modules
- /usr/src/:/usr/src #Additional setting for the link to the Kernel Header
ports:
- 51820:51820/udp
sysctls:
- net.ipv4.conf.all.src_valid_mark=1
restart: unless-stopped