Skip to content

buddycloud/dockerfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

98 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Buddycloud ♥ Docker

A dockerfile to run the Buddycloud stack components:

  • Buddycloud web-app
  • REST and webscocket http-API and xmpp-ftw
  • Buddycloud Server
  • Media Server
  • a Prosody server (but can work against an existing server)

Building the Dockerfile

  • git clone git@github.com:buddycloud/dockerfiles.git
  • cd dockerfiles/buddycloud-stack
  • configure if not using buddycloud.dev
  • docker build -t buddycloud-stack .

Configure

You can run this file three ways:

  • on a tempoary buddycloud.dev (good if you want to develop on a local machine)
  • on your own domain using the build on XMPP server
  • on your own domain using an existing XMPP server

option 1: buddycloud.dev

  • Setup DNS on your local machine echo "127.0.0.1 buddycloud.dev" >> /etc/hosts

option 2: your-domain.com (includes XMPP server)

  • configure the stack for your own domain using find ./config -type f -exec sed -i -e 's/buddycloud.dev/your-domain.com/g' {} \;
  • rebuild your Dockerfile
  • configure your DNS for Buddycloud

option 3: your-domain.com (you already have an XMPP server)

Running the Dockerfile

docker run \
  -i \
  --dns 127.0.0.1 \
  -v /srv/buddycloud-stack/logs:/var/log/buddycloud \
  -v /srv/buddycloud-stack/prosody:/var/lib/prosody \
  -v /srv/buddycloud-stack/postgresql:/var/lib/postgresql \
  -v /srv/buddycloud-stack/buddycloud-media-server:/var/lib/buddycloud-media-server \
  -P -p 80:80 -p 443:443 -p 5269:5269 \
  -t buddycloud-stack

Go to http://buddycloud.dev or http://buddycloud.{yourdomain.com}