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)
Optional but recommended: Create a new folder in the root directory where you afterwards pull the config. For example:
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
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.
At the start, four details are required:
Hostname and an email address needed for the letsencrypt notifications.
It looks like this:
The entered information is displayed again for verification.
If all entries are correct, a "yes" must be entered.
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
Stopping, starting & restarting
Stopping and removing the containers
You can access the MC webApp at 'https://[HOSTNAME]/MC/admin'. Eg. https://workshop-cdhi.ethz.ch/MC/admin
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 renew.sh is runnable. Run the following command.
For renewal, just run the following command.
- to be displayed
Advanced user options
- to be displayed