Docker disconf配置

新建 docker-compose 文件

1
2
3
mkdir ~/docker/disconf

vim docker-compose.yaml

docker-compose.yaml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
version: '3'
services:
disconf_redis_1:
image: daocloud.io/library/redis
restart: always
disconf_redis_2:
image: daocloud.io/library/redis
restart: always
disconf_zookeeper:
image: zookeeper:3.3.6
restart: always
disconf_mysql:
image: bolingcavalry/disconf_mysql:0.0.1
environment:
MYSQL_ROOT_PASSWORD: 123456
restart: always
disconf_tomcat:
image: bolingcavalry/disconf_tomcat:0.0.1
links:
- disconf_redis_1:redishost001
- disconf_redis_2:redishost002
- disconf_zookeeper:zkhost
- disconf_mysql:mysqlhost
restart: always
disconf_nginx:
image: bolingcavalry/disconf_nginx:0.0.1
links:
- disconf_tomcat:tomcathost
ports:
- "8820:80"
restart: always

运行

1
docker-compose up -d

停止整个环境的命令:

1
docker-compose stop1

删除整个环境的命令:

1
docker-compose rm

访问

用户名密码都是admin

参考

Docker搭建disconf环境,三部曲之一:极速搭建disconf

Docker搭建disconf环境,三部曲之二:本地快速构建disconf镜像

Docker搭建disconf环境,三部曲之三:细说搭建过程

×

纯属好玩

扫码支持
扫码打赏,你说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

文章目录
  1. 1. 参考
,