Skip to content

Instantly share code, notes, and snippets.

@tvoklov
Created May 16, 2023 12:06
Show Gist options
  • Save tvoklov/59ea8428f3de231cbebe4ea2b41b30d7 to your computer and use it in GitHub Desktop.
Save tvoklov/59ea8428f3de231cbebe4ea2b41b30d7 to your computer and use it in GitHub Desktop.
docker compose configuration for noip DUC running on a raspberry pi

It WOULD be as simple as using the docker files below, but noip doesn't provide pre-compiled binaries for arm.
That means you're gonna have to compile that binary yourself. Here's how.

Note that you have to compile it on your RPI, or in a container that emulates ARM architecture (IMO the first option is much easier and safer)

When your cargo build --release finishes, grab that release/noip-duc binary, put it into a folder, copy these docker files, replace the placeholders (inside [[[ ]]]) and run docker compose up -d.

btw, you could use update groups instead of a username/password combination. this is just a sample config for the most basic setup.

just don't use any base image other than ubuntu. trust me, it's easier that way.

version: '3.9'
services:
noip-duc:
build: .
container_name: noip-duc
environment:
USERNAME: [[[ your noip username ]]]
PASSWORD: [[[ your noip password ]]]
HOSTNAME: [[[ your noip hostname ]]]
FROM ubuntu
COPY ./[[[ path-to-duc-binary ]]]/noip-duc /opt/noip/noip-duc
ENTRYPOINT /opt/noip/noip-duc --username $USERNAME --password $PASSWORD -g $HOSTNAME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment