mysql
#!/bin/bash
cur_dir=`pwd`
docker stop ycxi-mysql
docker rm ycxi-mysql
docker run --net ycxi-network --name ycxi-mysql -v ${cur_dir}/conf:/etc/mysql/conf.d -v ${cur_dir}/data:/var/lib/mysql -p 3309:3306 -e MYSQL_ROOT_PASSWORD=aA111111 -d mysql:8
[mysqld]
character-set-server=utf8mb4
[client]
default-character-set=utf8mb4
[mysql]
default-character-set=uft8mb4
redis
docker stop redis
docker rm redis
docker run -idt --net ycxi-network -p 6380:6379 -v `pwd`/data:/data --name redis -v `pwd`/redis.conf:/etc/redis/redis_default.conf hub.c.163.com/public/redis:2.8.4
修改redis.conf