使用docker部署Apollo

docker run -p 8080:8080 \
    -e SPRING_DATASOURCE_URL="jdbc:mysql://host:3306/ApolloConfigDB?characterEncoding=utf8&serverTimezone=Asia/Shanghai" \
    -e SPRING_DATASOURCE_USERNAME=mdmroot -e SPRING_DATASOURCE_PASSWORD=password01 \
    -d -v /tmp/logs:/opt/logs --name apollo-configservice apolloconfig/apollo-configservice:1.8.1
	
	docker run -p 8090:8090 \
    -e SPRING_DATASOURCE_URL="jdbc:mysql://host:3306/ApolloConfigDB?characterEncoding=utf8&serverTimezone=Asia/Shanghai" \
    -e SPRING_DATASOURCE_USERNAME=mdmroot -e SPRING_DATASOURCE_PASSWORD=password01 \
    -d -v /tmp/logs:/opt/logs --name apollo-adminservice apolloconfig/apollo-adminservice:1.8.1
	
	docker run -p 8070:8070 \
    -e SPRING_DATASOURCE_URL="jdbc:mysql://host:3306/ApolloPortalDB?characterEncoding=utf8&serverTimezone=Asia/Shanghai" \
    -e SPRING_DATASOURCE_USERNAME=mdmroot -e SPRING_DATASOURCE_PASSWORD=password01 \
    -e APOLLO_PORTAL_ENVS=dev,pro \
    -e DEV_META=http://host:8080 -e PRO_META=http://host:8080 \
    -d -v /tmp/logs:/opt/logs --name apollo-portal apolloconfig/apollo-portal:1.8.1

上一篇:docker安装与基本使用


下一篇:webpack(10)webpack-dev-server搭建本地服务器