加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
docker-compose-dev.yml 2.14 KB
一键复制 编辑 原始数据 按行查看 历史
Michael Delamere 提交于 2017-08-07 22:40 . Some bug fixes.
version: '2'
services:
mysql:
image: geecommerce/demo-mysql:latest
container_name: gc_demo_mysql
ports:
- 3306:3306
restart: always
volumes:
- .:/usr/local/geecommerce-shared
mongo:
image: geecommerce/demo-mongodb:latest
container_name: gc_demo_mongodb
ports:
- 27017:27017
restart: always
volumes:
- .:/usr/local/geecommerce-shared
tomcat:
image: geecommerce/tomcat8-java8:latest
container_name: gc_demo_tomcat
environment:
- GC_HOME=/usr/local/geecommerce-local
volumes:
- .:/usr/local/geecommerce-shared
ports:
- 8080:8080
- 8000:8000
depends_on:
- mysql
- mongo
- elasticsearch
links:
- mysql
- mongo
- elasticsearch
logging:
driver: "json-file"
options:
max-size: "200k"
max-file: "10"
nginx:
image: geecommerce/demo-nginx:1.0
container_name: gc_demo_nginx
volumes:
- .:/usr/local/geecommerce:ro
ports:
- 80:80
- 443:443
depends_on:
- tomcat
links:
- tomcat
logging:
driver: "json-file"
options:
max-size: "200k"
max-file: "10"
elasticsearch:
image: elasticsearch:1.7.6
container_name: gc_demo_es
environment:
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
mem_limit: 1g
volumes:
- esdemodata:/usr/share/elasticsearch/data
ports:
- 9200:9200
- 9300:9300
restart: always
jobsdaemon:
image: geecommerce/jobs-daemon:1.0
container_name: gc_demo_jobs_daemon
environment:
- GC_HOME=/usr/local/geecommerce
volumes:
- .:/usr/local/geecommerce
ports:
- 1099:1099
depends_on:
- mysql
- mongo
- elasticsearch
- tomcat
links:
- mysql
- mongo
- elasticsearch
quartzdesk:
image: geecommerce/demo-quartzdesk:1.0
container_name: gc_demo_quartzdesk
ports:
- 8090:8080
depends_on:
- mysql
- jobsdaemon
links:
- mysql
- jobsdaemon
volumes:
esdemodata:
driver: local
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化