apollo
version: "3"services:apollo-mysql:container_name: apollo-mysqlrestart: alwaysimage: pengfeilu/apollo-mysql:5.7.22_1.6.0ports:- "23306:3306"volumes:- "$PWD/mysql/data:/var/lib/mysql"- "$PWD/mysql/logs:
·
version: "3"
services:
apollo-mysql:
container_name: apollo-mysql
restart: always
image: pengfeilu/apollo-mysql:5.7.22_1.6.0
ports:
- "3306:3306"
volumes:
- "$PWD/mysql/data:/var/lib/mysql"
- "$PWD/mysql/logs:/logs"
- "/etc/localtime:/etc/localtime:ro"
environment:
- MYSQL_ROOT_PASSWORD=123456
- UPDATE_EUREKA_URL_SQL=update ApolloConfigDB.ServerConfig set `Value`="http://192.168.7.7:8080/eureka/" where `Key`="eureka.service.url"
- TZ=Asia/Shanghai
apollo-configservice:
container_name: apollo-configservice
restart: always
image: pengfeilu/apollo-configservice:1.6.0
ports:
- "8080:8080"
depends_on:
- apollo-mysql
# volumes:
# - "$PWD/logs/100003171:/opt/logs/100003171"
environment:
- spring_datasource_url=jdbc:mysql://192.168.7.7:3306/ApolloConfigDB?characterEncoding=utf8
- spring_datasource_username=root
- spring_datasource_password=123456
- host_ip=192.168.7.7
apollo-adminservice:
container_name: apollo-adminservice
restart: always
image: pengfeilu/apollo-adminservice:1.6.0
ports:
- "8090:8090"
depends_on:
- apollo-mysql
- apollo-configservice
links:
- apollo-configservice
# volumes:
# - "$PWD/logs/100003172:/opt/logs/100003172"
environment:
- spring_datasource_url=jdbc:mysql://192.168.7.7:3306/ApolloConfigDB?characterEncoding=utf8
- spring_datasource_username=root
- spring_datasource_password=123456
- host_ip=192.168.7.7
apolo-portal:
container_name: apollo-portal
restart: always
image: pengfeilu/apollo-portal:1.6.0
ports:
- "8070:8070"
volumes:
# - "$PWD/logs/100003173:/opt/logs/100003173"
- "$PWD/apollo-env.properties:/apollo-portal/config/apollo-env.properties"
environment:
- spring_datasource_url=jdbc:mysql://192.168.7.7:3306/ApolloPortalDB?characterEncoding=utf8
- spring_datasource_username=root
- spring_datasource_password=123456
depends_on:
- apollo-mysql
更多推荐
已为社区贡献1条内容
所有评论(0)