Skip to content

Commit

Permalink
mprove the health-check
Browse files Browse the repository at this point in the history
So that it will work better on github actions
  • Loading branch information
heiglandreas committed May 18, 2024
1 parent 2778e5d commit d395de1
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,12 @@ services:
WORDPRESS_DB_PASSWORD: "wppasswd"
WORDPRESS_DEBUG: 0
depends_on:
db:
condition: service_healthy
openldap:
condition: service_healthy
# db:
# condition: service_healthy
# openldap:
# condition: service_healthy
- db
- openldap
links:
- db

Expand Down Expand Up @@ -61,7 +63,8 @@ services:
healthcheck:
test: [ "CMD", "mysqladmin" ,"ping", "-h", "localhost" ]
timeout: 1s
retries: 5
retries: 10
interval: 2s

openldap:
image: osixia/openldap:latest
Expand All @@ -81,7 +84,8 @@ services:
healthcheck:
test: ["CMD", "/usr/bin/ldapsearch", "-H", "ldap://localhost/", "-x", "-s", "base", "-LLL", "+"]
timeout: 1s
retries: 5
retries: 10
interval: 2s

volumes:
db_data:
Expand Down

0 comments on commit d395de1

Please sign in to comment.