summaryrefslogtreecommitdiff
path: root/docker
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2017-02-17 22:57:30 +0100
committerlouiz’ <louiz@louiz.org>2017-02-17 22:57:30 +0100
commitf90969e1a18c148d93c82ab09ae48e4f634efbb1 (patch)
treebcd0a121755d5bc7e748436b60465f36eeed46e6 /docker
parenta03fd18d0a4412ae05b08f5923c346a8fbbbfa69 (diff)
downloadbiboumi-f90969e1a18c148d93c82ab09ae48e4f634efbb1.tar.gz
biboumi-f90969e1a18c148d93c82ab09ae48e4f634efbb1.tar.bz2
biboumi-f90969e1a18c148d93c82ab09ae48e4f634efbb1.tar.xz
biboumi-f90969e1a18c148d93c82ab09ae48e4f634efbb1.zip
docker: Properly handle and document the /var/lib/biboumi directory
Diffstat (limited to 'docker')
-rw-r--r--docker/biboumi/Dockerfile3
-rw-r--r--docker/biboumi/README.rst8
2 files changed, 11 insertions, 0 deletions
diff --git a/docker/biboumi/Dockerfile b/docker/biboumi/Dockerfile
index 95bd150..721d106 100644
--- a/docker/biboumi/Dockerfile
+++ b/docker/biboumi/Dockerfile
@@ -34,6 +34,9 @@ RUN git clone git://git.louiz.org/biboumi && mkdir ./biboumi/build && cd ./bibou
RUN useradd biboumi
+RUN mkdir /var/lib/biboumi
+RUN chown -R biboumi:biboumi /var/lib/biboumi
+
COPY ./biboumi.cfg /etc/biboumi/biboumi.cfg
RUN chown -R biboumi:biboumi /etc/biboumi
diff --git a/docker/biboumi/README.rst b/docker/biboumi/README.rst
index b9c63ea..fb4b212 100644
--- a/docker/biboumi/README.rst
+++ b/docker/biboumi/README.rst
@@ -15,6 +15,7 @@ use the following command to start your biboumi container.
```
docker run --link prosody:xmpp \
+ -v $PWD/database:/var/lib/biboumi \
-e BIBOUMI_PASSWORD=P4SSW0RD \
-e BIBOUMI_HOSTNAME=irc.example.com \
-e BIBOUMI_ADMIN=blabla \
@@ -49,3 +50,10 @@ Linking with the XMPP server
You can use the --link option to connect to any server, but it needs to be
called *xmpp*. For example, if you are using a container named ejabberd, you
would use the option *--link ejabberd:xmpp*.
+Volumes
+-------
+
+The database is stored in the /var/lib/biboumi/ directory. If you don’t bind
+a local directory to it, the database will be lost when the container is
+stopped. If you want to keep your database between each run, bind it with
+the -v option, like this: **-v /srv/biboumi/:/var/lib/biboumi**.