Skip to content

Commit 7367f4c

Browse files
committed
docs :优化测试环境部署脚本
1 parent 925ad8f commit 7367f4c

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

script/deploy/docker-compose-prod.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,19 @@ services:
3030
restart: unless-stopped
3131
ports:
3232
- "6379:6379"
33-
command: redis-server --requirepass ${REDIS_PASSWORD:-Redis@2024!Cache}
33+
command: >
34+
redis-server
35+
--requirepass ${REDIS_PASSWORD:-Redis@2024!Cache}
36+
--maxmemory 1gb
37+
--maxmemory-policy allkeys-lru
38+
--save ""
39+
--appendonly no
3440
volumes:
3541
- redis-data:/data
3642
networks:
3743
- opentcs-network
3844
healthcheck:
39-
test: ["CMD", "redis-cli", "-a", "${REDIS_PASSWORD:-Redis@2024!Cache}", "ping"]
45+
test: [ "CMD", "redis-cli", "-a", "${REDIS_PASSWORD:-Redis@2024!Cache}", "ping" ]
4046
interval: 10s
4147
timeout: 5s
4248
retries: 5

0 commit comments

Comments
 (0)