Skip to content

Commit 3c6cf6c

Browse files
feat: use Laravel's built-in health route (#12)
1 parent d486141 commit 3c6cf6c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

template/docker-compose.prod.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ services:
3434
PHP_OPCACHE_ENABLE: "1"
3535
AUTORUN_ENABLED: "true" # 👈 Remove this line if you don't want Laravel Automations
3636
APP_ENV: "${SPIN_DEPLOYMENT_ENVIRONMENT}" # 👈 Remove this if you're not using `spin deploy`
37+
HEALTHCHECK_PATH: "/up" # Use Laravel's built-in health route
3738
networks:
3839
- web-public
3940
volumes:
@@ -66,7 +67,7 @@ services:
6667
- "traefik.http.services.my-php-app.loadbalancer.server.port=8080"
6768
- "traefik.http.services.my-php-app.loadbalancer.server.scheme=http"
6869
# Health check
69-
- "traefik.http.services.my-php-app.loadbalancer.healthcheck.path=/healthcheck"
70+
- "traefik.http.services.my-php-app.loadbalancer.healthcheck.path=/up"
7071
- "traefik.http.services.my-php-app.loadbalancer.healthcheck.interval=30s"
7172
- "traefik.http.services.my-php-app.loadbalancer.healthcheck.timeout=5s"
7273
- "traefik.http.services.my-php-app.loadbalancer.healthcheck.scheme=http"

0 commit comments

Comments
 (0)