docker-compose + spring boot + mysql + redis + nginx web publishing application: part 3

After the first two articles,

docker-compose + spring boot + mysql + redis + nginx web publishing application: part 1

docker-compose + spring boot + mysql + redis + nginx web publishing application: part 2

 

Ready to use docker-compose the application of a small publishing. In fact, in the development environment, I think it is very convenient. (Personally I think Ha)

Here again pull something else.

1. Personal thought, jenkins is a good thing, in fact, with jenkins, front part 1, part 2 can be even simpler. But here we studied.

2. If no docker Ali mirror acceleration is a must hang Kazakhstan. In fact, the configuration Ali docker accelerator, not too difficult:

     Ali register a developer account on the line. Then you will have to accelerate their configuration.

     If you want to start again, on the first

        # docker-compose down

     If you really do not understand, use docker stop, docker rm commands such as first stopped container, and then delete it one by one.

3. Check docker-compose.yml in the map where db_data

    # docker volume ls

   

   # docker volume inspect compose-demo_db_data

  

   FIG red line is the actual position of db_data.

   Because this data is actually stored mysql, mysql even delete container (docker-compose down, or docker rm xxx), next time you create a container,

   Data is still, root password will not change.

   So, if docker-compose in password If change is necessary to delete db_data this volume, let docker-compose the reconstruction volume, re-initialize the database.

   #  docker volume rm compose-demo_db_data     

 

So far, << docker-compose + spring boot + mysql + redis + nginx web publishing applications >> the end.

 

 

  

     

       

Guess you like

Origin www.cnblogs.com/bear129/p/12527514.html