加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
docker-compose.yml 1.26 KB
一键复制 编辑 原始数据 按行查看 历史
version: '3.4'
services:
configservice:
image: chenchuxin/apollo
environment:
- spring_datasource_url=jdbc:mysql://localhost:3306/ApolloConfigDB?characterEncoding=utf8
- spring_datasource_username=root
- spring_datasource_password=xxx
- logging.file=/opt/logs/configservice.log
- server.port=8080
voulumes:
- /var/log/apollo:/opt/logs
command: configservice.jar
network_mode: host
restart: always
adminservice:
image: chenchuxin/apollo
environment:
- spring_datasource_url=jdbc:mysql://localhost:3306/ApolloConfigDB?characterEncoding=utf8
- spring_datasource_username=root
- spring_datasource_password=xxx
- logging.file=/opt/logs/adminservice.log
- server.port=8090
voulumes:
- /var/log/apollo:/opt/logs
command: adminservice.jar
network_mode: host
depends_on:
- configservice
restart: always
portal:
image: chenchuxin/apollo
environment:
- spring_datasource_url=jdbc:mysql://localhost:3306/ApolloPortalDB?characterEncoding=utf8
- spring_datasource_username=root
- spring_datasource_password=xxx
- server.port=8070
- logging.file=/opt/logs/portal.log
voulumes:
- /var/log/apollo:/opt/logs
command: -Ddev_meta=http://localhost:8080 portal.jar
network_mode: host
depends_on:
- adminservice
restart: always
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化