9. Docker Swarm
Activity 9.01: Deploying the Panoramic Trekking App to a Single-Node Docker Swarm
Solution:
There are a number of ways in which you can perform this activity. These steps are one way to do it:
- Create a directory for the application. In this instance, you will create a directory called
Activity1
and move into the new directory using thecd
command:mkdir Activity1; cd Activity1
- Clone the application from its GitHub repository to ensure that you will have all the relevant information and applications needed for the Panoramic Trekking App services you want to deploy to your swarm:
git clone https://github.com/vincesesto/trekking_app.git
- You won't need any of the supporting directories for NGINX, but ensure that your web service and database running are listed here, including the
panoramic_trekking_app
andphoto_viewer
directories and theDockerfile
,entrypoint.sh
,manage.py
, andrequirements.txt
scripts and files:ls -l
The command should return...