ci: add healthcheck to employee service in workflow
Some checks failed
Playwright Tests / test (pull_request) Failing after 3m1s
Some checks failed
Playwright Tests / test (pull_request) Failing after 3m1s
This commit is contained in:
parent
182c014564
commit
ab1c9ac76f
1 changed files with 10 additions and 5 deletions
15
.github/workflows/playwright.yml
vendored
15
.github/workflows/playwright.yml
vendored
|
@ -20,19 +20,24 @@ jobs:
|
||||||
POSTGRES_PASSWORD: secret
|
POSTGRES_PASSWORD: secret
|
||||||
ports:
|
ports:
|
||||||
- "5432:5432"
|
- "5432:5432"
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD-SHELL", "pg_isready -U employee"]
|
||||||
|
interval: 10s
|
||||||
|
timeout: 5s
|
||||||
|
retries: 5
|
||||||
|
|
||||||
employee:
|
employee:
|
||||||
container_name: employee
|
container_name: employee
|
||||||
image: berndheidemann/employee-management-service:1.1.3
|
image: berndheidemann/employee-management-service:1.1.3
|
||||||
# image: berndheidemann/employee-management-service_without_keycloak:1.1
|
|
||||||
env:
|
env:
|
||||||
spring.datasource.url: jdbc:postgresql://postgres-employee:5432/employee_db
|
SPRING_DATASOURCE_URL: jdbc:postgresql://postgres-employee:5432/employee_db
|
||||||
spring.datasource.username: employee
|
SPRING_DATASOURCE_USERNAME: employee
|
||||||
spring.datasource.password: secret
|
SPRING_DATASOURCE_PASSWORD: secret
|
||||||
ports:
|
ports:
|
||||||
- "8089:8089"
|
- "8089:8089"
|
||||||
depends_on:
|
depends_on:
|
||||||
- postgres-employee
|
postgres-employee:
|
||||||
|
condition: service_healthy
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
# Checkout the repository
|
# Checkout the repository
|
||||||
|
|
Loading…
Add table
Reference in a new issue