本地快速启动
https://ctripcorp.github.io/apollo/#/zh/deployment/quick-start
本地docker快速启动
https://ctripcorp.github.io/apollo/#/zh/deployment/quick-start-docker
详见官方文档
- git clone git@gitee.com:distroy1/apollo.git
- 在 apollo/scripts/docker-quick-start 目录执行docker-compose up
- 进入apollo-quick-start容器,执行/apollo-quick-start/demo.sh client,输入timeout查看值
- 进入 http://localhost:8070 管理界面,apollo/admin,修改timeout值,再次观察client输出。
version: '2'
services:
apollo-quick-start:
image: nobodyiam/apollo-quick-start
container_name: apollo-quick-start
depends_on:
- apollo-db
ports:
- "8080:8080"
- "8090:8090"
- "8070:8070"
links:
- apollo-db
apollo-db:
image: mysql:5.7
container_name: apollo-db
environment:
TZ: Asia/Shanghai
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
depends_on:
- apollo-dbdata
ports:
- "13306:3306"
volumes:
- ./sql:/docker-entrypoint-initdb.d
volumes_from:
- apollo-dbdata
apollo-dbdata:
image: alpine:latest
container_name: apollo-dbdata
volumes:
- /var/lib/mysql