surroundings:
All paper-based operation Ali cloud ECS
CentOS Linux release 7.7.1908 (Core)
Docker version 19.03.5, build 633a0ea
database:
Into the database, modify the database name attention to the different environments
Adjustment:
ApolloPortalDB.ServerConfig open dev, fat, separated by commas
ApolloConfigDB.ServerConfig modify eureka address to your public IP
This duty to the database ok
docker installation:
The authors conducted a docker mirror package for version 1.5.1, can be used directly
docker run -p 8080:8080 -e DS_URL="jdbc:mysql://你的数据库地址:3306/ApolloConfigDBDev?characterEncoding=utf8" -e IP=你的服务器工网IP -e DS_USERNAME=你的数据库账号 -e DS_PASSWORD=你的数据库密码 -d -v /tmp/logs:/opt/logs --name apollo-configservice-dev aeert/image:apollo-configservice
docker run -p 8090:8090 -e DS_URL="jdbc:mysql://你的数据库地址:3306/ApolloConfigDBDev?characterEncoding=utf8" -e IP=你的服务器工网IP -e DS_USERNAME=你的数据库账号 -e DS_PASSWORD=你的数据库密码 -d -v /tmp/logs:/opt/logs --name apollo-adminservice-dev aeert/image:apollo-adminservice
docker run -p 8081:8080 -e DS_URL="jdbc:mysql://你的数据库地址:3306/ApolloConfigDBFat?characterEncoding=utf8" -e IP=你的服务器工网IP -e DS_USERNAME=你的数据库账号 -e DS_PASSWORD=你的数据库密码 -d -v /tmp/logs:/opt/logs --name apollo-configservice-fat aeert/image:apollo-configservice
docker run -p 8091:8090 -e DS_URL="jdbc:mysql://你的数据库地址:3306/ApolloConfigDBFat?characterEncoding=utf8" -e IP=你的服务器工网IP -e DS_USERNAME=你的数据库账号 -e DS_PASSWORD=你的数据库密码 -d -v /tmp/logs:/opt/logs --name apollo-adminservice-fat aeert/image:apollo-adminservice
docker run -p 8070:8070 -e DS_URL="jdbc:mysql://你的数据库地址:3306/ApolloPortalDB?characterEncoding=utf8" -e DS_USERNAME=你的数据库账号 -e DS_PASSWORD=你的数据库密码 -e DEV_META=http://你的服务器工网IP:8080 -e FAT_META=http://你的服务器工网IP:8081 -d -v /tmp/logs:/opt/logs --name apollo-portal aeert/image:apollo-portal
Five commands after the installation is successful, all log in / tmp / logs / under (100 003 171 100 003 172 100 003 173)
Visit http: // your public IP: 8070 Account: apollo password admin
Congratulations, the installation is complete, the need for more environment can expand on their own!