mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
chore: Reduce healthcheck interval for both redis and api docker-compose.yml
This commit is contained in:
parent
8b7a4d80c2
commit
5359a4ff96
1 changed files with 7 additions and 6 deletions
|
|
@ -26,8 +26,8 @@ services:
|
||||||
- POSTGRES_DB=learnhouse
|
- POSTGRES_DB=learnhouse
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "pg_isready"]
|
test: ["CMD-SHELL", "pg_isready"]
|
||||||
interval: 10s
|
interval: 5s
|
||||||
timeout: 5s
|
timeout: 4s
|
||||||
retries: 5
|
retries: 5
|
||||||
redis:
|
redis:
|
||||||
image: redis:7.2.3
|
image: redis:7.2.3
|
||||||
|
|
@ -35,7 +35,10 @@ services:
|
||||||
ports:
|
ports:
|
||||||
- "6379:6379"
|
- "6379:6379"
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: [ "CMD", "redis-cli", "--raw", "incr", "ping" ]
|
test: [ "CMD", "redis-cli", "ping" ]
|
||||||
|
interval: 5s
|
||||||
|
timeout: 4s
|
||||||
|
retries: 5
|
||||||
mongo:
|
mongo:
|
||||||
image: mongo:5.0
|
image: mongo:5.0
|
||||||
restart: always
|
restart: always
|
||||||
|
|
@ -43,6 +46,4 @@ services:
|
||||||
- "27017:27017"
|
- "27017:27017"
|
||||||
environment:
|
environment:
|
||||||
- MONGO_INITDB_ROOT_USERNAME=learnhouse
|
- MONGO_INITDB_ROOT_USERNAME=learnhouse
|
||||||
- MONGO_INITDB_ROOT_PASSWORD=learnhouse
|
- MONGO_INITDB_ROOT_PASSWORD=learnhous
|
||||||
healthcheck:
|
|
||||||
test: echo 'db.runCommand("ping").ok' | mongosh localhost:27017/test --quiet
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue