携程apollo docker-compose 安装教程
携程apollo docker-compose 安装教程
version: '3'
networks:
apollo:
ipam:
driver: default
config:
- subnet: "172.28.0.0/24"
services:
apollo-configservice:
container_name: apollo-configservice
image: apolloconfig/apollo-configservice:2.1.0
restart: always
ports:
- "9001:9001"
networks:
apollo:
ipv4_address: 172.28.0.10
volumes:
- "./logs/apollo-configservice:/opt/logs"
environment:
TZ: Asia/Shanghai
LANG: en_US.UTF-8
SERVER_PORT: 9001
SPRING_DATASOURCE_URL: jdbc:mysql://172.25.0.10:3306/ApolloConfigDB?characterEncoding=utf8&serverTimezone=Asia/Shanghai
SPRING_DATASOURCE_USERNAME: root
SPRING_DATASOURCE_PASSWORD: ***
EUREKA_INSTANCE_HOME_PAGE_URL: http://172.28.0.10:9001
EUREKA_SERVICE_URL: http://172.28.0.10:9001/eureka/apollo-adminservice:
container_name: apollo-adminservice
image: apolloconfig/apollo-adminservice:2.1.0
restart: always
depends_on:
- apollo-configservice
ports:
- "9002:9002"
networks:
apollo:
ipv4_address: 172.28.0.20
volumes:
- "./logs/apollo-adminservice:/opt/logs"
environment:
TZ: Asia/Shanghai
LANG: en_US.UTF-8
SERVER_PORT: 9002
SPRING_DATASOURCE_URL: jdbc:mysql://172.25.0.10:3306/ApolloConfigDB?characterEncoding=utf8&serverTimezone=Asia/Shanghai
SPRING_DATASOURCE_USERNAME: root
SPRING_DATASOURCE_PASSWORD: ***
EUREKA_INSTANCE_HOME_PAGE_URL: http://172.28.0.20:9002
EUREKA_SERVICE_URL: http://172.28.0.10:9001/eureka/apollo-portal:
container_name: apollo-portal
image: apolloconfig/apollo-portal:2.1.0
restart: always
depends_on:
- apollo-adminservice
ports:
- "9003:9003"
networks:
apollo:
ipv4_address: 172.28.0.30
volumes:
- "./logs/apollo-portal:/opt/logs"
environment:
TZ: Asia/Shanghai
LANG: en_US.UTF-8
SERVER_PORT: 9003
SPRING_DATASOURCE_URL: jdbc:mysql://172.25.0.10:3306/ApolloPortalDB?characterEncoding=utf8&serverTimezone=Asia/Shanghai
SPRING_DATASOURCE_USERNAME: root
SPRING_DATASOURCE_PASSWORD: ***
APOLLO_PORTAL_ENVS: pro
PRO_META: http://172.28.0.10:9001
更多推荐
所有评论(0)