fix: make bootstrap for docker-compose

This commit is contained in:
chenlianghong
2024-05-09 11:26:38 +08:00
parent 8aa8b655c7
commit 7193c8d288

View File

@@ -11,15 +11,15 @@ services:
- MYSQL_ROOT_PASSWORD=123456
- MYSQL_ROOT_HOST=%
- MYSQL_DATABASE=user
volumes:
- ./data/mysql/user:/var/lib/mysql
- ./conf/mysql/conf.d:/etc/mysql/conf.d
# volumes:
# - ./data/mysql/user:/var/lib/mysql
# - ./conf/mysql/conf.d:/etc/mysql/conf.d
cache-redis:
image: redis:6-alpine
hostname: cache-redis
volumes:
- ./data/redis/cache/:/data
- ./conf/redis/cache/redis.conf:/etc/redis/redis.conf
# volumes:
# - ./data/redis/cache/:/data
# - ./conf/redis/cache/redis.conf:/etc/redis/redis.conf
ports:
- 6350:6379
command: ["redis-server","/etc/redis/redis.conf"]