Add healthcheck logic for waiting that php service is ready (#448)
This commit is contained in:
committed by
GitHub
parent
3df8a96ab9
commit
70f90033db
@@ -6,11 +6,6 @@ services:
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- php_socket:/var/run/php
|
||||
healthcheck:
|
||||
interval: 10s
|
||||
timeout: 3s
|
||||
retries: 3
|
||||
start_period: 30s
|
||||
environment:
|
||||
TRUSTED_PROXIES: ${TRUSTED_PROXIES:-127.0.0.0/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16}
|
||||
TRUSTED_HOSTS: ^${SERVER_NAME:-example\.com|localhost}|caddy$$
|
||||
@@ -27,7 +22,9 @@ services:
|
||||
caddy:
|
||||
image: ${IMAGES_PREFIX:-}app-caddy
|
||||
depends_on:
|
||||
- php
|
||||
php:
|
||||
condition: service_healthy
|
||||
restart: true
|
||||
environment:
|
||||
SERVER_NAME: ${SERVER_NAME:-localhost}, caddy:80
|
||||
MERCURE_PUBLISHER_JWT_KEY: ${CADDY_MERCURE_JWT_SECRET:-!ChangeThisMercureHubJWTSecretKey!}
|
||||
|
||||
Reference in New Issue
Block a user