If you are familiar with Docker, you can use the Docker way to deploy Apollo quickly, so that you can quickly understand Apollo. if you are not very familiar with Docker, please refer to the regular way to deploy Quick Start.

If you are deploying Apollo in your company, please refer to the distributed-deployment-guide.

Since Docker doesn’t support windows very well, it is not recommended to use Docker way to deploy in windows environment, unless you know windows docker very well

I. Preparation

1.1 Installing Docker

You can refer to Docker Installation Guide for the specific steps, and test whether the installation is successful with the following command

  1. docker -v

To speed up Docker image download, it is recommended to configure image gas pedal.

1.2 Download Docker Quick Start configuration file

Make sure the docker-quick-start folder already exists locally, if the Apollo has already been cloned locally code, then you can skip this step.

II. Starting Apollo Configuration Center

Execute docker-compose up in the docker-quick-start directory, the first execution will trigger downloading images and other operations, you need to be patient and wait for some time.

Search all the logs starting with apollo-quick-start and see the following logs indicating a successful start.

  1. apollo-quick-start | ==== starting service ====
  2. apollo-quick-start | Service logging file is . /service/apollo-service.log
  3. apollo-quick-start | Started [45]
  4. apollo-quick-start | Waiting for config service startup .......
  5. apollo-quick-start | Config service started. You may visit http://localhost:8080 for service status now!
  6. apollo-quick-start | Waiting for admin service startup......
  7. apollo-quick-start | Admin service started
  8. apollo-quick-start | ==== starting portal ====
  9. apollo-quick-start | Portal logging file is . /portal/apollo-portal.log
  10. apollo-quick-start | Started [254]
  11. apollo-quick-start | Waiting for portal startup .......
  12. apollo-quick-start | Portal started. You can visit http://localhost:8070 now!

Note 1: The database port is mapped to 13306, so if you want to access the database on the host, you can do so via localhost:13306, username is root and password is left blank.

Note 2: If you want to view more service logs, you can log in via docker exec -it apollo-quick-start bash, then go to /apollo-quick-start/service and /apollo-quick-start/portal to view the log information.

III. Using Apollo Configuration Center

You can refer to Quick Start - IV. Using Apollo Configuration Center for the steps related to using it.

Note that the Demo client needs to be run in a Docker environment with the following command.

  1. docker exec -i apollo-quick-start /apollo-quick-start/demo.sh client

By default apollo-configservice will only register the internal IP, only clients started by the above command will be able to connect, if you want external clients to be able to access it, please refer to the network policy.