Skip to content

Commit

Permalink
feat: adds postgresql health check
Browse files Browse the repository at this point in the history
  • Loading branch information
rajadilipkolli authored Feb 19, 2024
1 parent d781f5c commit fbef8a4
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
21 changes: 21 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,27 @@
"projectName": "spring-boot-kafka-sample",
"args": "",
"envFile": "${workspaceFolder}/.env"
},
{
"type": "java",
"name": "Spring Boot-Application<spring-modulith-outbox-pattern>",
"request": "launch",
"cwd": "${workspaceFolder}",
"mainClass": "com.example.outboxpattern.Application",
"projectName": "spring-modulith-outbox-pattern",
"args": "--spring.profiles.active=local",
"envFile": "${workspaceFolder}/.env",
"vmArgs": " -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=33487 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dspring.jmx.enabled=true -Djava.rmi.server.hostname=localhost -Dspring.application.admin.enabled=true -Dspring.boot.project.name=spring-modulith-outbox-pattern"
},
{
"type": "java",
"name": "Spring Boot-TestApplication<spring-modulith-outbox-pattern>",
"request": "launch",
"cwd": "${workspaceFolder}",
"mainClass": "com.example.outboxpattern.TestApplication",
"projectName": "spring-modulith-outbox-pattern",
"args": "",
"envFile": "${workspaceFolder}/.env"
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ services:
- POSTGRES_DB=appdb
ports:
- "5432:5432"
healthcheck:
test: "pg_isready -U appuser -d appdb"
interval: 2s
timeout: 20s
retries: 10

pgadmin4:
container_name: pgadmin4
Expand Down
2 changes: 1 addition & 1 deletion kafka-spring/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ This folder contains sample kafka producer and consumer using java, spring & Spr
| Type | Description |
|------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------|
| [Spring Boot](./spring-boot) | Producing and consuming Messages using Spring Boot |
| [Spring Cloud](./kafka-dsl-integration) | Producing and consuming Messages using Spring Integration DSL |
| [Spring Integration using kafka DSL](./kafka-dsl-integration) | Producing and consuming Messages using Spring Integration DSL |
| [Multiple Producers & Consumers](./spring-boot-multiple-producers-consumers) | Producing and consuming Messages from Multiple Producer and consumers using Spring Boot |

0 comments on commit fbef8a4

Please sign in to comment.