Skip to content

Commit

Permalink
Document adding a default
Browse files Browse the repository at this point in the history
Fixes #1
  • Loading branch information
lloydwatkin committed Nov 25, 2014
1 parent 56160ac commit 12dcdb0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ Docker images are built off an __Ubuntu 14.04 LTS__ base.
docker run -d prosody/prosody --name prosody -p 5222:5222
```

On startup the image will create a default user of `admin@localhost` with password `password`. This can be changed by using environment variables `LOCAL`, `DOMAIN`, and `PASSWORD`. This performs the following action on startup:

prosodyctl register *local* *domain* *password*

Any error from this script is ignored. Prosody will not check the user exists before running the command (i.e. existing users will be overwritten). It is expected that [mod_admin_adhoc](http://prosody.im/doc/modules/mod_admin_adhoc) will then be in place for managing users (and the server).

### Ports

The image exposes the following ports to the docker host:
Expand Down Expand Up @@ -48,6 +54,9 @@ docker run -d prosody/prosody:0.9 \
-p 5222:5222 \
-p 5269:5269 \
-p localhost:5347:5347 \
-e LOCAL=romeo \
-e DOMAIN=shakespeare.lit \
-e PASSWORD=juliet4ever \
-v /etc/prosody /data/prosody/configuration \
-v /var/log/prosody /logs/prosody \
-v /usr/lib/prosody-modules /data/prosody/modules
Expand Down

0 comments on commit 12dcdb0

Please sign in to comment.