This Docker image with prosody is built ontop the basic Ubuntu image.
The Community Modules are no longer included in this build. If you wish to use community modules, please take a look at mgansler/docker-prosody-modules
prosody:
...
volumes_from:
- modules
...
modules:
image: mgansler/prosody-modules:<tag>
docker run -d --name prosody -p 5222:5222 -p 5269:5269 <tag>
This image exposes the following ports to the docker host:
- 5222
- 5269
- /etc/prosody/:
- Configuration file
prosody.cfg.lua
- SSL Certificates for your virtual hosts
- Configuration file
- /var/lib/prosody:
- this is where the users are stored
The configuration file prosody.cfg.lua
needs to include the following lines:
pidfile = "/run/prosody/prosody.pid"; -- prosody doesn't start when it can't write to the directory
deamonize = false;
log = {
info = "*console"; -- change to debug for more information
error = "*console";
}
plugin_paths = { "/usr/lib/prosody-modules" } -- allows to enable community plugins
optional:
modules_enabled = {
"smacks"; -- XEP-0198: Stream Management
"carbons"; -- XEP-0280: Message Carbons
}
and of course your virtual host section.