Skip to content

Commit 2feeeb1

Browse files
committed
perf: 优化pg版本的docker compose配置文件
1 parent c48c7bc commit 2feeeb1

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

docker-compose.pg.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,10 @@ services:
2525
ports:
2626
- "19099:9099"
2727
depends_on:
28-
- ruoyi-pg
29-
- ruoyi-redis
28+
ruoyi-pg:
29+
condition: service_healthy
30+
ruoyi-redis:
31+
condition: service_healthy
3032
networks:
3133
- ruoyi-network
3234

@@ -58,6 +60,11 @@ services:
5860
- "16379:6379"
5961
networks:
6062
- ruoyi-network
63+
healthcheck:
64+
test: ["CMD", "redis-cli", "ping"]
65+
interval: 5s
66+
timeout: 10s
67+
retries: 30
6168

6269
# 网络配置
6370
networks:

0 commit comments

Comments
 (0)