Skip to content

Commit 75c49e8

Browse files
authored
perf: 优化pg版本的docker compose配置文件 (#61)
* perf: 优化pg版本的docker compose配置文件 * docs: 新增更新日志
1 parent 8405471 commit 75c49e8

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
1.优化数据权限依赖 (#55)。
1616
2.动态导入定时任务函数,移除eval (#56)。
17+
3.优化pg版本的docker compose配置文件 (#61)。
1718

1819
## RuoYi-Vue3-FastAPI v1.8.0
1920

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)