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.
project_path: The path where you cloned this project.
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 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):
- Location for including additional modules
- Remeber you should enable each installed module in your prosodody.cfg.lua. see http://prosody.im/doc/installing_modules#paths
- Run one image with postgres.
docker run --name prosody-db -e POSTGRES_PASSWORD=prosody -e POSTGRES_DB=prosody -d postgres
- 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
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