You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This documents how to deploy multiple Docker container images to Azure as a Web App for Containers App Service with persistent storage.
The example will demonstrate deploying Jenkins with an Nginx acting as a reverse proxy. The Nginx proxy will be provided by
this image, which is an Nginx image configured to reverse proxy a web
application running on port 8080.
Create Resources
You will need to create a Resource Group and an App Service Plan. For this example, I will create a Resource Group called
Initialize the local Docker service as a swarm manager. As a guideline, in production you should have 3 to 5 managers. Swarm is
managed through port 2377, which should be blocked from external access.
$ docker swarm init
Join an existing swarm as a worker node. Replace $SWARM_MANAGER with the IP address or domain name of a swarm manager node.
Docker on a New Virtual Machine - Installation Shortcut
After setting up a new Ubuntu Linux VM and logging in for the first time, copy/paste the following command to update the OS and tools,
install Docker CE, install Docker Compose, set the Docker service to automatically start when the OS starts, and add yourself to the
Docker group so that you can execute Docker commands. Immediately after submitting this command, you may be prompted for your password.
After that, the process will run completely unattended, and will end with a reboot of the VM.