Skip to content

Commit

Permalink
fix(adminer): use PHP instead of cURL for container healthcheck
Browse files Browse the repository at this point in the history
cURL isn't available on this Docker image, unlike PHP
  • Loading branch information
lucasmirloup authored and thislg committed Jul 25, 2023
1 parent 8b38666 commit 61fe1f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion database/adminer/adminer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ services:
public:
private:
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080"]
test: ["CMD", "php", "-r", "@file_get_contents('http://localhost:8080') or exit(1);"]
interval: 10s
timeout: 5s
retries: 5
Expand Down

0 comments on commit 61fe1f9

Please sign in to comment.