This project is for the Drupal 8 website, itotko.dk. The site is running on a Docker Swarm setup with 3 Raspberry Pi's. You can find the docker images on my docker hub repository
You need to start up the service on the master (Change the variables with < and > ):
docker service create \
--mode replicated \
--replicas 0 \
--name <your service name> \
--network <your network name> \
--endpoint-mode dnsrr \
-e DB=<your dbname> -e USERNAME=<your dbusername> \
-e PASSWORD=<your dbpassword> -e HOST=<your dbhost> -e PORT=<your dbport> \
larskhansen/itotko-dk
The replicas needs to be increased when the the service has been created. The environment variables are used for a connection to a mySQL/mariaDB database.
Note: This is a great website if you want to learn more about Docker Swarm and HA-Proxy.