~mapperr/dockerfiles

c1b2f654f84cc81a67b683bc228140c0233afba6 — mapperr 3 years ago 377d330
Better doc for soju
1 files changed, 9 insertions(+), 6 deletions(-)

M soju/README.md
M soju/README.md => soju/README.md +9 -6
@@ 2,25 2,28 @@

https://sr.ht/~emersion/soju

es:
## Build the image

    docker build -t whatever/you:want .

## Using the image

Suppose you tagged the image as `mapperr/soju:latest`:

    docker run -d \
        --name soju \
        -p 6697:6697 \
        -v ./soju.db:/soju.db \
        mapperr/soju
        mapperr/soju:latest

then create a user with:

    docker exec --it soju \
        /soju/sojuctl create-user my_user

it will ask for a password.
it will ask for a password on stdin.

Once done restart the container:

    docker restart soju


Enjoy.