Skip to content

chengmang/docker-apollo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Docker Ctrip Apollo.

使用 Docker 部署携程 Apollo,为提高扩展性拆为 3 个 Docker Image。

部署说明:

  1. 修改官方项目 apollo-configservice 、apollo-adminservice 项目下 application.yml 配置文件,此处可参考官网文档

    spring:
        application:
            name: apollo-configservice
        profiles:
        	active: ${apollo_profile}
        cloud:
            inetutils:
                ignoredInterfaces:
                - docker0
                - veth.*
    eureka:
        instance:
            preferIpAddress: true
            ip-address: ${ip}
  2. 按照官方文档配置完成后,由于官方版本迭代,需自行修改 Dockerfile 中 VERSION,然后执行 ./build.sh 编译打包。

  3. 下载并解压本项目到官方项目根目录,分别编译 apollo-configservice 、apollo-adminservice 、apollo-portal,编译及运行说明可参考下方或目录中 Dockerfile 文件。

    # Build with:
    docker build -t apollo-configservice .
    # Run with:
    docker run -p 8080:8080 -d --name apollo-configservice apollo-configservice
  4. 访问 http://IP:PORT 查看部署是否成功。

About

A simple docker image Ctrip Apollo.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published