Springboot project deployment: docker builds mysql environment +docker builds its own environment.
Vue project: use docker to start nginx server agent deployment.
The project uses mysql8.0 as the data source, so docker needs to build mysql environment and the project's own environment when deploying.
When the connection error is 125 1:
First, package the project: Mu Mu-0.0./kloc -0.0. 1-snapshot.jar
At this point, the springboot project runs in docker mode, and the deployment is over.
Use the docker container to run the nginx server.
For nginx server, two important operations are:
Therefore, when we configure and start the nginx container, we need to host the corresponding directories and files to facilitate the subsequent resource update and operation.
Start command: