Apollo Quick Start Docker deployment

Reference link: github.com/ctripcorp/a…

  1. Download the codegit clone https://github.com/ctripcorp/apollo.git
  2. Go to the installation directory CD Apollo /scripts/docker-quick-start/
  3. Start the installation: execute it in the docker-quick-start directorydocker-compose upThe operation such as image download will be triggered for the first time. You need to wait for some time.
  4. After the startup succeeds, you can visit http://127.0.0.1:8070
  5. Enter the user name Apollo and password admin to log in

  1. Use Apollo configuration center github.com/ctripcorp/a…

To use:

Port =9017 app.id=work-test apollo.meta=http://127.0.0.1:8080 2. The test codeCopy the code

Add the following example: Apollo injects the configuration of the Application Namespace into the Spring environmentCopy the code

4. Modify startup items (such as ports and database connections). You need to rebuild the environmentCopy the code