Skip to content

Commit 393ee84

Browse files
committed
adding healthcheck for php newrelic
1 parent 753a5e9 commit 393ee84

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

examples/symfony-app-newrelic/docker-compose.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ services:
1212
- ./docker/php/.env.sample:/var/www/symfony/.env
1313
expose:
1414
- "9000"
15+
healthcheck:
16+
test: [ "CMD", "curl", "-f", "http://localhost:9000" ]
17+
interval: 30s
18+
timeout: 5s
19+
retries: 3
1520

1621
newrelic-daemon:
1722
image: newrelic/php-daemon:latest

0 commit comments

Comments
 (0)