/docker-prosody

XMPP Server prosody from official Repository

Prosody in Docker

This Docker image with prosody is built ontop the basic Ubuntu image.

Community Modules

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>

Running

docker run -d --name prosody -p 5222:5222 -p 5269:5269 <tag>

Ports

This image exposes the following ports to the docker host:

  • 5222
  • 5269

Volumes

  • /etc/prosody/:
    • Configuration file prosody.cfg.lua
    • SSL Certificates for your virtual hosts
  • /var/lib/prosody:
    • this is where the users are stored

Configuration File

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.