摘要:第一步:复制下面内容创建docker-compose.ymlservices:qiaoqiaoyun-mysql:image: registry.cn-hangzhou.aliyuncs.com/jeecgdocker/qiaoqiaoyun-mysql:2.
本文档docker组中使用的镜像已经上传阿里云docker私服,方便安装。
第一步:复制下面内容创建docker-compose.ymlservices:qiaoqiaoyun-mysql:image: registry.cn-hangzhou.aliyuncs.com/jeecgdocker/qiaoqiaoyun-mysql:2.0.1environment:MYSQL_ROOT_PASSWORD: rootMYSQL_ROOT_HOST: '%'TZ: Asia/Shanghairestart: alwayscontainer_name: qiaoqiaoyun-mysqlcommand:--character-set-server=utf8mb4--collation-server=utf8mb4_general_ci--explicit_defaults_for_timestamp=true--lower_case_table_names=1--max_allowed_packet=128M--default-authentication-plugin=caching_sha2_passwordports:- 3306:3306networks:- qiaoqiaoyunqiaoqiaoyun-redis:image: registry.cn-hangzhou.aliyuncs.com/jeecgdocker/redis:5.0ports:- 6379:6379restart: alwayshostname: qiaoqiaoyun-rediscontainer_name: qiaoqiaoyun-redisnetworks:- qiaoqiaoyunqiaoqiaoyun-mongo:image: registry.cn-hangzhou.aliyuncs.com/jeecgdocker/qiaoqiaoyun-mongo:2.0.1restart: alwayscontainer_name: qiaoqiaoyun-mongoports:- 27017:27017networks:- qiaoqiaoyunqiaoqiaoyun-system:image: registry.cn-hangzhou.aliyuncs.com/jeecgdocker/qiaoqiaoyun-system:2.0.1restart: on-failuredepends_on:- qiaoqiaoyun-mysql- qiaoqiaoyun-rediscontainer_name: qiaoqiaoyun-systemhostname: qiaoqiaoyun-systemports:- 8080:8080networks:- qiaoqiaoyunqiaoqiaoyun-nginx:image: registry.cn-hangzhou.aliyuncs.com/jeecgdocker/qiaoqiaoyun-nginx:2.0.1container_name: qiaoqiaoyun-nginxdepends_on:- qiaoqiaoyun-systemnetworks:- qiaoqiaoyunports:- 80:80networks:qiaoqiaoyun:name: qiaoqiaoyun第二步: 执行docker命令(前提 先安装docker和docker-compose)docker-compose -p qiaoqiaoyun_start up -d第三步:docker启动成功第四步:访问系统等待半分钟,等所有docker服务启动后,访问nginx地址。
来源:津津聊教育
免责声明:本站系转载,并不代表本网赞同其观点和对其真实性负责。如涉及作品内容、版权和其它问题,请在30日内与本站联系,我们将在第一时间删除内容!