Setting up the server (New!)



  • Linux server (amd64) with hostname [HOSTNAME]
  • Ports 80 and 443 should be open in the firewall
  • Docker installed (version 18.0.3 +)
  • Certbot installed (for SSL certificates)
  • Docker-compose installed v1.3+
  • Git installed
  • Sudo access


Connect to the server

  • Open your terminal (Mac) / CMD (Windows)

For example:


Optional but recommended: Create a new folder in the root directory where you afterwards pull the config. For example:

cd /.
sudo mkdir /opt/
cd opt

Pulling the configs

Pull the configuration and move into the mobilecoach-server folder. Please switch to the beanch ```one-port-solution'''. The rest of the commands in the following sections need to be run in folder mobilecoach-server

sudo bash
git clone
cd mobilecoach-server
git switch one-port-solution

Install letsencrypt certificates & updating config files

In order to generate the certificates and perform the configuration, a script must first be executed.


The port 80 should be open and free for Letsencrypt to install the SSL certificates.

chmod +x ./

At the start, four details are required:
Hostname and an email address needed for the letsencrypt notifications.
It looks like this:

Please enter the hostname of the server (example:
Please enter your email id for letsencrypt notices (example:

The entered information is displayed again for verification.
If all entries are correct, a "yes" must be entered.

The information provided are hostname: and email:
Are you sure of these details, and used this script with 'sudo' and want to continue setup? If okay, please answer with 'yes'

Modifying the MobileCoach configuration file for different purposes. (Optional)

All other variables are explained HERE

Starting the server

Starting the server for the first time

docker-compose up -d

Stopping, starting & restarting

docker-compose stop
docker-compose start
docker-compose restart

Stopping and removing the containers

docker-compose down

You can access the MC webApp at 'https://[HOSTNAME]/MC/admin'. Eg.


The default admin username and password is admin and admin respectively. Please change it immediately under "Account".

Renewing the SSL certificates

Make sure the script is runnable. Run the following command.

chmod +x ./

For renewal, just run the following command.



  • to be displayed

Advanced user options

  • to be displayed