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)
git clone [email protected]:buddycloud/dockerfiles.git
cd dockerfiles/buddycloud-stack
- configure if not using
buddycloud.dev
docker build -t buddycloud-stack .
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)
- configure the stack for your own domain using
find ./config -type f -exec sed -i -e 's/buddycloud.dev/your-domain.com/g' {} \;
- configure the Buddycloud server component to point to your server IP. (variable is
xmpp.host
in buddycloud-server-java-configuration.properties) - configure the Buddycloud media server component to point to your server IP. (variable is
xmpp.component.host
in buddycloud-media-server-configuration.properties) - configure the Buddycloud http api to point to your server IP. (variable is
xmppHost
in buddycloud-http-api-config.js) - rebuild your Dockerfile
- configure your DNS for Buddycloud
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}