1778682052

This commit is contained in:
Docker7530
2026-05-13 22:20:54 +08:00
parent 6b50219f55
commit 7f14056210
96 changed files with 3297 additions and 354 deletions
@@ -22,13 +22,26 @@ docker run -d \
--name redis \
--restart always \
-p 6379:6379 \
-v $(pwd)/data:/data \
-v $(pwd)/conf/redis.conf:/usr/local/etc/redis/redis.conf \
-v $(pwd)/logs:/logs \
-v /opt/redis/data:/data \
-v /opt/redis/conf/redis.conf:/usr/local/etc/redis/redis.conf \
-v /opt/redis/logs:/logs \
-e TZ=Asia/Shanghai \
--ulimit nofile=65536:65536 \
redis:8.6.1 \
redis-server /usr/local/etc/redis/redis.conf
docker run -d \
--name mysql \
--restart always \
-p 3306:3306 \
-v /opt/mysql/data:/var/lib/mysql \
-v /opt/mysql/conf/my.cnf:/etc/mysql/conf.d/my.cnf \
-v /opt/mysql/logs:/var/log/mysql \
-v /opt/mysql/init:/docker-entrypoint-initdb.d \
-e MYSQL_ROOT_PASSWORD='5sTb7fHFbsYl6KmI6pvC^XMw!7Y^Pbc1' \
-e TZ=Asia/Shanghai \
mysql:8.0
```
```