Update Redis image and modify entrypoint command
This commit is contained in:
+3
-2
@@ -22,7 +22,7 @@ services:
|
|||||||
|
|
||||||
redis:
|
redis:
|
||||||
# image: redis:7.2-alpine
|
# image: redis:7.2-alpine
|
||||||
image: redis:alpine
|
image: redis:8-alpine
|
||||||
container_name: redis
|
container_name: redis
|
||||||
ports:
|
ports:
|
||||||
- "127.0.0.1:6379:6379"
|
- "127.0.0.1:6379:6379"
|
||||||
@@ -30,7 +30,8 @@ services:
|
|||||||
- ./redis/conf/redis.conf:/usr/local/etc/redis/redis.conf:ro
|
- ./redis/conf/redis.conf:/usr/local/etc/redis/redis.conf:ro
|
||||||
- ./redis/data:/data/:rw
|
- ./redis/data:/data/:rw
|
||||||
restart: always
|
restart: always
|
||||||
entrypoint: ["redis-server", "/usr/local/etc/redis/redis.conf"]
|
# entrypoint: ["redis-server", "/usr/local/etc/redis/redis.conf"]
|
||||||
|
command: ["redis-server", "/usr/local/etc/redis/redis.conf"]
|
||||||
environment:
|
environment:
|
||||||
TZ: "Asia/Shanghai"
|
TZ: "Asia/Shanghai"
|
||||||
networks:
|
networks:
|
||||||
|
|||||||
Reference in New Issue
Block a user