配置docker

This commit is contained in:
lizhengwei 2026-02-11 23:15:27 +08:00
parent 76f12a14c7
commit 46a8e02a1c

View File

@ -58,23 +58,17 @@ services:
- 8848:8848
- 9848:9848 #客户端gRPC请求服务端端口用于客户端向服务端发起连接和请求
- 9849:9849 #服务端gRPC请求服务端端口用于服务间同步等
redis:
image: redis:6.2.12
image: redis:7 #7.2.4
container_name: redis
ports:
- "6379:6379"
environment:
# 时区上海
TZ: Asia/Shanghai
volumes:
# 配置文件
- /docker/redis/conf:/redis/config:rw
# 数据文件
- /docker/redis/data/:/redis/data/:rw
command: "redis-server /redis/config/redis.conf"
privileged: true
network_mode: "host"
- volume_redis_data:/data
- /docker/redis/conf:/usr/local/etc/redis/redis.conf
command: redis-server /usr/local/etc/redis/redis.conf
environment:
- TZ=Asia/Shanghai
minio:
image: minio/minio:RELEASE.2023-04-13T03-08-07Z
@ -181,3 +175,4 @@ services:
volumes:
minio_data_volume:
minio_config_volume:
volume_redis_data: