Docker image building system for the Prosody XMPP server
Find a file
Lloyd Watkin 885c81d3ce Clean up
2014-11-13 20:34:19 +00:00
build-docker.sh Clean up 2014-11-13 20:34:19 +00:00
Dockerfile Update the entrypoint 2014-11-13 20:33:22 +00:00
README.md Do easier deployments, add README 2014-11-13 15:21:28 +00:00

Prosody Docker

This is the Prosody Docker image building repository. Its only really designed to be used on the Prosody build server for pushing to the Docker registry.

It works by coping in a recently built deb file and running the install on the system.

Docker images are built off an Ubuntu 14.04 LTS base.

docker run -d prosody/prosody --name prosody -p 5222:5222

Ports

The image exposes the following ports to the docker host:

  • 80: HTTP port
  • 5222: c2s port
  • 5269: s2s port
  • 5347: XMPP component port
  • 5280: BOSH / websocket port

Note: These default ports can be changed in your configuration file. Therefore if you change these ports will not be exposed.

Volumes

Volumes can be mounted at the following locations for adding in files:

  • /etc/prosody:
    • Prosody configuration file(s)
    • SSL certificates
  • /var/log/prosody:
    • Log files for prosody - if not mounted these will be stored on the system
    • Note: This location can be changed in the configuration, update to match
  • /usr/lib/prosody-modules (suggested):

Example

docker run -d prosody/prosody:0.9 \
   -p 5222:5222 \
   -p 5269:5269 \
   -p localhost:5347:5347 \
   -v /etc/prosody /data/prosody/configuration \
   -v /var/log/prosody /logs/prosody \
   -v /usr/lib/prosody-modules /data/prosody/modules