Apollo Quick Start Docker deployment
Reference link: github.com/ctripcorp/a…
- Download the code
git clone https://github.com/ctripcorp/apollo.git
- Go to the installation directory CD Apollo /scripts/docker-quick-start/
- Start the installation: execute it in the docker-quick-start directory
docker-compose up
The operation such as image download will be triggered for the first time. You need to wait for some time. - After the startup succeeds, you can visit http://127.0.0.1:8070
- Enter the user name Apollo and password admin to log in
- 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