cdarwin / znc

Personal Dockerfile for hosting my own irc bouncer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

znc

This is a simple Dockerfile that you could use for hosting your own irc bouncer a la znc.

Build

Building an image form this Dockerfile is pretty straightforward

$ docker build -t crd0/znc:0.0.1 https://raw.githubusercontent.com/cdarwin/znc/master/Dockerfile

Data

If you prefer using a dedicated data only volume container for things like certs and configs, you might do so with the image you previously created like this.

$ docker create -v /var/run/ircd --name zncdata crd0/znc:0.0.1 echo "data only volume container"

If this is your first time using this image, you might want to generate a simple certificate into the persistent storage you just created.

$ docker run --rm --volumes-from zncdata crd0/znc:0.0.1 /usr/bin/znc -p -d /var/run/ircd

Similarly, if you need to generate a config, you might do so interactively using the same image.

$ docker run --rm -it --volumes-from zncdata crd0/znc:0.0.1 /usr/bin/znc --makeconf -d /var/run/ircd

Alternatively, if you already have a recent backup your own the znc data, you might restore it with something like the following:

$ docker run --rm --volumes-from zncdata -v $(pwd):/backup crd0/znc:0.0.1 tar xvf /backup/backup.tar

Service

Once all of my configs and such are as I expect them to be, I might use something like the following to start the service in the background with the default CMD

$ docker run -d --volumes-from zncdata --name znc -p 36667:6667 crd0/znc:0.0.1

About

Personal Dockerfile for hosting my own irc bouncer


Languages

Language:Shell 100.0%