Skip to content

Latest commit

 

History

History
53 lines (39 loc) · 1.88 KB

README.md

File metadata and controls

53 lines (39 loc) · 1.88 KB

Prosody 0.10.0 for Docker

This is the Prosody 0.10.0 Docker image building repository. It was only designed to be used on the Prosody build server to do pushing to the Docker registry.

For more images please see here: Prosody on Docker.

Apendix

project_path: The path where you cloned this project.

Building

Docker images are built off an ubuntu:16.04 base. Here we have updated the sources deps to get prosody 0.10.0. In addition, we have some tools as nano, expect to help when we need to access in the container.

To build the image, you need run the following command:

cd <project_path>
docker build -t prosody-0.10.0:2.0 .

Volumes

Volumes is mounted in /prosody directory when the image was building, It contains the following files and directories:

  • /etc/prosody.cfg.lua:
    • Prosody configuration file(s)
    • It cotains enable modules, mucs, interfaces, and more.
  • /etc/conf.d/:
    • It can contain new prosody configuration. For example one new virtual host, SSL certificates.
  • /modules (suggested):

Running

  1. Run one image with postgres.
docker run --name prosody-db -e POSTGRES_PASSWORD=prosody -e POSTGRES_DB=prosody -d postgres
  1. When the postgres service is ready. run:
docker run --name prosody-0.10.0 -d -p 5280:5280 -p 5222:5222 -p 5269:5269 --link prosody-db:prosody-db -v <project_path>/prosody:/prosody prosody-0.10.0:2.0

Ports

The image exposes the following ports to the docker host:

  • 5222: c2s port
  • 5269: s2s port
  • 5347: XMPP component port
  • 5280: BOSH / websocket port
  • 5281: Secure BOSH / websocket port