Skip to content

Commit

Permalink
Fix healthcheck doc for PG
Browse files Browse the repository at this point in the history
  • Loading branch information
guimard committed Aug 14, 2024
1 parent a9460c3 commit 426b88a
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 7 deletions.
24 changes: 22 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,19 @@ services:
environment:
- POSTGRES_PASSWORD=zz
healthcheck:
test: "exit 0"
test: ["CMD-SHELL", "pg_isready"]
interval: 10s
timeout: 5s
retries: 5

redis:
image: redis

auth:
image: yadd/lemonldap-ng-portal
depends_on:
db:
condition: service_healthy
environment:
- PG_SERVER=db
- REDIS_SERVER=redis:6379
Expand All @@ -105,6 +111,11 @@ services:

manager:
image: yadd/lemonldap-ng-manager
depends_on:
db:
condition: service_healthy
auth:
condition: service_started
environment:
- PG_SERVER=db
- REDIS_SERVER=redis:6379
Expand Down Expand Up @@ -134,13 +145,19 @@ services:
environment:
- POSTGRES_PASSWORD=zz
healthcheck:
test: "exit 0"
test: ["CMD-SHELL", "pg_isready"]
interval: 10s
timeout: 5s
retries: 5
redis:
image: redis
portal:
image: yadd/lemonldap-ng-portal
depends_on:
db:
condition: service_healthy
environment:
- LOGGER=stderr
- USERLOGGER=stderr
Expand Down Expand Up @@ -178,11 +195,14 @@ services:
- USERLOGGER=stderr
- PG_SERVER=db
- REDIS_SERVER=redis:6379
depends_on:
depends_on:
db:
condition: service_healthy
redis:
condition: service_started
auth:
condition: service_started
crowdsec:
image: crowdsecurity/crowdsec
Expand Down
5 changes: 4 additions & 1 deletion base/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,10 @@ services:
environment:
- POSTGRES_PASSWORD=zz
healthcheck:
test: "exit 0"
test: ["CMD-SHELL", "pg_isready"]
interval: 10s
timeout: 5s
retries: 5
redis:
image: redis
base:
Expand Down
9 changes: 8 additions & 1 deletion cron/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ services:
environment:
- POSTGRES_PASSWORD=pwd
healthcheck:
test: "exit 0"
test: ["CMD-SHELL", "pg_isready"]
interval: 10s
timeout: 5s
retries: 5

redis:
image: redis
Expand Down Expand Up @@ -53,6 +56,8 @@ services:
depends_on:
llng-db:
condition: service_healthy
auth:
condition: service_started

manager:
image: yadd/lemonldap-ng-manager
Expand All @@ -69,6 +74,8 @@ services:
condition: service_healthy
redis:
condition: service_started
auth:
condition: service_started
networks:
- db
- frontend
Expand Down
5 changes: 4 additions & 1 deletion full/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ services:
environment:
- POSTGRES_PASSWORD=zz
healthcheck:
test: "exit 0"
test: ["CMD-SHELL", "pg_isready"]
interval: 10s
timeout: 5s
retries: 5
redis:
image: redis
llng:
Expand Down
7 changes: 6 additions & 1 deletion manager/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ services:
environment:
- POSTGRES_PASSWORD=zz
healthcheck:
test: "exit 0"
test: ["CMD-SHELL", "pg_isready"]
interval: 10s
timeout: 5s
retries: 5
redis:
image: redis
portal:
Expand Down Expand Up @@ -77,6 +80,8 @@ services:
condition: service_healthy
redis:
condition: service_started
portal:
condition: service_started
crowdsec:
image: crowdsecurity/crowdsec
environment:
Expand Down
9 changes: 8 additions & 1 deletion portal/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@ services:
environment:
- POSTGRES_PASSWORD=zz
healthcheck:
test: "exit 0"
test: ["CMD-SHELL", "pg_isready"]
interval: 10s
timeout: 5s
retries: 5
redis:
image: redis
portal:
Expand All @@ -71,6 +74,8 @@ services:
condition: service_healthy
redis:
condition: service_started
crowdsec:
condition: service_started
manager:
image: yadd/lemonldap-ng-manager
environment:
Expand All @@ -83,6 +88,8 @@ services:
condition: service_healthy
redis:
condition: service_started
portal:
condition: service_started

crowdsec:
image: crowdsecurity/crowdsec
Expand Down

0 comments on commit 426b88a

Please sign in to comment.