加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
docker-compose.yml 1.52 KB
一键复制 编辑 原始数据 按行查看 历史
小小程序猿 提交于 2018-07-08 22:55 . springcloud
postgresdb:
image: busybox
volumes:
- /var/lib/postgresql/data
postgres:
name: postgres
image: postgres
hostname: postgres
volumes_from:
- postgresdb
# ports:
# - "5432:5432"
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
discovery:
image: "discovery:1.0.0-SNAPSHOT"
hostname: discovery
name: discovery
ports:
- "8761:8761"
config:
image: "config:1.0.0-SNAPSHOT"
hostname: config
name: config
links:
- discovery
environment:
EUREKA_HOST: discovery
EUREKA_PORT: 8761
# ports:
# - "8888:8888"
person:
image: person:1.0.0-SNAPSHOT
hostname: person
links:
- discovery
- config
- postgres
environment:
EUREKA_HOST: discovery
EUREKA_PORT: 8761
SPRING_PROFILES_ACTIVE: docker
# ports:
# - "8082:8082"
some:
image: some:1.0.0-SNAPSHOT
hostname: some
links:
- discovery
- config
environment:
EUREKA_HOST: discovery
EUREKA_PORT: 8761
SPRING_PROFILES_ACTIVE: docker
# ports:
# - "8083:8083"
ui:
image: ui:1.0.0-SNAPSHOT
hostname: ui
links:
- discovery
- config
- person
- some
environment:
EUREKA_HOST: discovery
EUREKA_PORT: 8761
SPRING_PROFILES_ACTIVE: docker
ports:
- "80:80"
monitor:
image: monitor:1.0.0-SNAPSHOT
hostname: monitor
links:
- discovery
- config
- person
- some
- ui
environment:
EUREKA_HOST: discovery
EUREKA_PORT: 8761
SPRING_PROFILES_ACTIVE: docker
# ports:
# - "8989:8989"
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化