version: '3'
services:
mysql:
image: mysql:5.7.31
container_name: mysql
restart: always
command: --character-set-server=utf8 --collation-server=utf8_general_ci
ports:
- 10144:3306
environment:
MYSQL_ROOT_PASSWORD: 123456
MYSQL_ROOT_HOST: '%'
volumes:
- /var/docker/mysql/data:/var/lib/mysql
- /var/docker/mysql/config:/etc/mysql/conf.d
redis:
image: redis:6.0.6
container_name: myRedis
restart: always
ports:
- 10145:6379
volumes:
- /var/redis/data:/data:rw
- /usr/local/redis/redis.conf:/etc/redis/redis.conf:rw
command:
redis-server /etc/redis/redis.conf
rabbitmq:
image: rabbitmq:management
container_name: myrabbitmq
hostname: myrabbitmq
ports:
- 10142:5672
- 10143:15672
volumes:
- /var/docker/rabbitmq/data:/var/lib/rabbitmq
environment:
- RABBITMQ_DEFAULT_USER=admin
- RABBITMQ_DEFAULT_PASS=123456
docker-compose部署mysql,redis,rabbitmq
©著作权归作者所有,转载或内容合作请联系作者
- 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
- 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
- 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...