docker: Properly handle and document the /var/lib/biboumi directory
This commit is contained in:
@@ -34,6 +34,9 @@ RUN git clone git://git.louiz.org/biboumi && mkdir ./biboumi/build && cd ./bibou
|
|||||||
|
|
||||||
RUN useradd biboumi
|
RUN useradd biboumi
|
||||||
|
|
||||||
|
RUN mkdir /var/lib/biboumi
|
||||||
|
RUN chown -R biboumi:biboumi /var/lib/biboumi
|
||||||
|
|
||||||
COPY ./biboumi.cfg /etc/biboumi/biboumi.cfg
|
COPY ./biboumi.cfg /etc/biboumi/biboumi.cfg
|
||||||
RUN chown -R biboumi:biboumi /etc/biboumi
|
RUN chown -R biboumi:biboumi /etc/biboumi
|
||||||
|
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ use the following command to start your biboumi container.
|
|||||||
|
|
||||||
```
|
```
|
||||||
docker run --link prosody:xmpp \
|
docker run --link prosody:xmpp \
|
||||||
|
-v $PWD/database:/var/lib/biboumi \
|
||||||
-e BIBOUMI_PASSWORD=P4SSW0RD \
|
-e BIBOUMI_PASSWORD=P4SSW0RD \
|
||||||
-e BIBOUMI_HOSTNAME=irc.example.com \
|
-e BIBOUMI_HOSTNAME=irc.example.com \
|
||||||
-e BIBOUMI_ADMIN=blabla \
|
-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
|
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
|
called *xmpp*. For example, if you are using a container named ejabberd, you
|
||||||
would use the option *--link ejabberd:xmpp*.
|
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**.
|
||||||
|
|||||||
Reference in New Issue
Block a user