Preparing the installation package1. Download DockerDocker supports the following versions of Ubuntu systemArtful 17.10 (Docker CE 17.11 Edge)Zesty 17.04Xenial 16.04 (LTS)Trusty 14.04 (LTS)View Ubuntu system version: sudo lsb_release–aDownload the corresponding Docker installation package: https://apt.dockerproject.org/repo/pool/main/d/docker-engine/2. Download
-serializer.The project uses MAVEN to add dependencies directly1.8.0If you do not use MAVEN, add the following jar to the project yourselfmsm-kryo-serializer-1.8.0. jarkryo-serializers-0.11. jarkryo-1.04.jarasm-3.2. jarreflectasm-1.01. jarminlog-1.2.jarjsr305-1.3.9. jarannotations-1.3.9. Jar6. Configuring Memcached-session-manager in TomcatInclude the following in the Tomcat context.xml file (Non-sticky session configuration, two memcached servers.className= "De.javakaffee.web.msm.MemcachedBacku
Docker deployment of nginx + php + mysql and dockernginx
System: centos7
Use root Account
Open Port 80
Firewall-cmd -- zone = public -- add-port = 80/tcp -- permanent
Install docker
Yum install docker-y
Install docker-compose
Yum
Tags: Linux issue introduction Fix ref nbsp Release ice SystemctlOne 1. System Configuration Requirements Operating system: 64-bit operating system and 3.10 or later kernel: uname-r Docker-v1.12 and later Docker compose-v1.8 and later 2. Update the system Yum Update 3. Installation Yum install docker
yum install python
Note: Nginx unit nginx Open source new Nginx development platform, but plainly, personal feeling general, and official documents are not very good, API interface currently temporary document comparison ...., previously written about how virtual machines physical machines were installed and deployed today, write a way to install and deploy using
Today in the start of a Docker run Nginx instance, when the directory is mounted, access to the static directory, insufficient permissions
The commands executed are:
Docker run
--name my-nginx
-d-p 80:80
--restart=always
-v/cloud/nginx/webroot:/usr/share/
Automatically create a reverse nginx proxy for the docker container.
A reverse proxy server is a type of server usually located before a web server. it can provide attachments that are not provided by the web server itself.
For example, the reverse proxy can provide SSL termination, server load balancer, request routing, cache, compression, and even A/B testing.
When a
installation nginx Docker[[email protected] ~]# Docker search Nginx # Searching for nginx image filesINDEX NAME DESCRIPTION STARS official automated Docker.io Docker.io/nginx official build of
Docker Alpine Construction Nginx
1,pull a base image
As for how to pull own mirroring and build mirrors can refer to Docker hub simple use can also pull the Docker hub in this chapter of the Mirror
[Root@gitlab conf]# Docker Pull Marksugar/alpineUsing default Tag:latestLa
This article describes the configuration of simple load balancing on the Docker, host for the Ubuntu 14.04.2 LTS, two CentOS containers, host installation Nginx, two containers installed TOMCAT7. The structure is as follows:
The rationale for this scenario is to map the port of the host and the port of the Docker container (that is, a port accessing the host wil
Hi, today we will learn how to build a Nginx reverse proxy/Load Balancing server using Weave and Docker. Weave can create a virtual network to connect the Docker containers to each other, supporting deployment across hosts and automatic discovery. It allows us to focus more on the development of the application rather than the infrastructure. Weave provides a gre
Hi, today we will learn how to use Weave and Docker to build an Nginx reverse proxy/Load balancer server. Weave can create a virtual network that connects Docker containers to each other, enabling cross-host deployment and Autodiscover. It allows us to focus more on the development of the application rather than on the infrastructure. Weave provides such a great
agent.Ii. Configuring a proxy server for Docker Registry(1), Mr. Cheng Certificate Bar (imitate Docker official changed the path. hehe).Mkdir-p/etc/nginx/ssl OpenSSL req-newkey rsa:4096-nodes-sha256-keyout ssl/domain.key-x509-days 365 -out SSL/DOMAIN.CRTHere to pay attention to the name of the CN, must be your registry domain name, otherwise your things will be
again and again.
With tools such as Docker, you can make the configuration of the development environment exactly the same as that of the production environment. After the web application container is deployed, everything is configured, so you don't have to worry about the troubles of deployment.
If you are a newbie to Docker and are not very sure what it is, the following article will be a perfect learnin
This article describes how to configure Simple Server Load balancer on Docker. The host machine is Ubuntu14.04.2LTS, two CentOS containers, Nginx for the host machine, and tomcat 7 for the two containers. The architecture is as follows: the principle of this solution is to map the host machine port and the docker container port (that is, a port accessing the host
install MySQL on Docker:Https://github.com/htmlgraphic/Docker/tree/master/Docker/MySQLHttps://github.com/tutumcloud/tutum-docker-mysqlHttp://www.nkode.io/2014/09/12/easymysql.htmlHttps://github.com/sameersbn/docker-mysqlhttp://txt.fliglio.com/2013/11/creating-a-mysql-docker
1. Deploy the tomcat image # to download the official Tomcat image.sudo docker pull tomcat:7-jre7#启动docker容器, 2 instances, mapping different port numbers, #~/work/sample-webapps/[v1.0|v2.0]/the Javaweb.war package below, mapped to the Docker image by volume wayDocker run-it--rm-p 8080:8080-v ~/work/sample-webapps/v1.0:/usr/local/tomcat/webapps/tomcat:7-jre7Docker
migrated to Alpine as the basis of the mirror, so we should be familiar with this mirror as soon as possible.
Building Dockerfile
This article describes the Nginx practice of the Docker container, but the authorities actually have a alpine mirror image of Nginx. And in the actual use of the process, the author is more use Tengine, so according to the official
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.