代码拉取完成,页面将自动刷新
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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。