Sign inSign up

nolan/prosody

By nolan

Updated almost 11 years ago

The Prosody XMPP server version 0.9.1

Image
5

572

nolan/prosody repository overview

This is a minimally-configured Prosody instance. It is left bare so it may both serve as a minimal chat server, and be used in external services that might benefit from an XMPP server. The only changes made are theoretically intended to boost performance, especially since Docker grants easy control over the run environment such that features such as the Libev backend can be automatically enabled. Configuration was changed thusly:

  • use_libevent was set to true.
  • Prosody looks for SSL certificates in /etc/ssl/certs/ssl.key and /etc/ssl/certs/ssl.cert.
  • c2s_require_encryption was set to true.
  • Authentication was set to use the internal_hashed backend so passwords aren't stored in the clear.
  • Daemonize was set to false, and logs go to the console.
  • Additional configuration files are read from /etc/prosody/conf.d/*.cfg.lua.

To use:

  • Create an image derived from this one.
  • Add additional configuration in /etc/conf.d/.
  • Add SSL certificates in the specified directories.
  • Call "docker run -h -v /var/lib/prosody -p :5222 -p :5269 -p :5280 ". Omit "-p :5280" if you don't wish to expose Prosody's HTTP server. Omit "-v /var/lib/prosody" if you don't care about persisting Prosody's data between containers.

Congratulations, you now have a running Prosody server! Below is the Dockerfile from which this image was created:

FROM ubuntu:12.10
RUN apt-get update
RUN apt-get upgrade -y; apt-get clean
RUN apt-get install -y software-properties-common wget; apt-get clean
RUN add-apt-repository "deb http://packages.prosody.im/debian quantal main"
RUN wget https://prosody.im/files/prosody-debian-packages.key -O- | apt-key add -
RUN apt-get update
RUN apt-get install -y prosody lua-event lua-zlib; apt-get clean
EXPOSE 5222 5269 5280 5347
RUN echo include \"/etc/prosody/conf.d/*.cfg.lua\" >>/etc/prosody/prosody.cfg.lua
ADD conf.d /etc/prosody/conf.d
ENV __FLUSH_LOG 1
USER prosody
CMD prosody

Tag summary

Content type

Image

Digest

sha256:990a39640

Size

114.4 MB

Last updated

almost 11 years ago

docker pull nolan/prosody