/docker-openfire

Dockerfile to build a Openfire XMPP server.

Primary LanguageShell

Table of Contents

Introduction

Dockerfile to build a Openfire XMPP server.

Version

Current Version: 3.9.3

Installation

Pull the latest version of the image from the docker index. This is the recommended method of installation as it is easier to update image in the future. These builds are performed by the Docker Trusted Build service.

docker pull sameersbn/openfire:latest

You can also pull a particular version of openfire by specifying the version. For example,

docker pull sameersbn/openfire:3.9.3

Alternately you can build the image yourself.

git clone https://github.com/sameersbn/docker-openfire.git
cd docker-openfire
docker build --tag="$USER/openfire" .

Quick Start

Run the openfire image

docker run --name='openfire' -i -t --rm \
-p 127.0.0.1:9090:9090 -p 127.0.0.1:5222:5222 -p 127.0.0.1:7777:7777 \
sameersbn/openfire:3.9.3

Point your browser to http://localhost:9090 and follow the setup procedure to complete the installation.

The following video by HAKK5 will help you with the configuration and give you an introduction to openfire and some of its features.

Build A Free Jabber Server In 10 Minutes

Data Store

The openfire image is configured to save all configurations and installed plugins at /data. As such we should mount a volume at /data

Volumes can be mounted in docker by specifying the '-v' option in the docker run command.

mkdir /opt/openfire
docker run --name=openfire -d \
-p 9090:9090 -p 5222:5222 -p 5223:5223  -p 7777:7777  -p 7070:7070 -p 7443:7443 -p 5229:5229 \
 -v /opt/openfire:/app/data \

Upgrading

To upgrade to newer releases, simply follow this 3 step upgrade procedure.

  • Step 1: Stop the currently running image
docker stop openfire
  • Step 2: Update the docker image.
docker pull sameersbn/openfire:latest
  • Step 3: Start the image
docker run -name openfire -d [OPTIONS] sameersbn/openfire:latest

References