This commit is contained in:
Benjamin Brummer
2024-11-28 21:35:05 +01:00
parent 9fd35b874d
commit 8204465048
3 changed files with 6 additions and 17 deletions

View File

@@ -59,16 +59,7 @@ services:
networks:
- app-network
healthcheck:
test:
[
"CMD",
"mysqladmin",
"ping",
"-h",
"localhost",
"-u${MYSQL_USER}",
"-p${MYSQL_PASSWORD}",
]
test: [ "CMD", "mysqladmin", "ping", "-h", "localhost", "-u${MYSQL_USER}", "-p${MYSQL_PASSWORD}" ]
interval: 10s
timeout: 5s
retries: 5
@@ -82,7 +73,7 @@ services:
networks:
- app-network
healthcheck:
test: ["CMD", "redis-cli", "ping"]
test: [ "CMD", "redis-cli", "ping" ]
interval: 10s
timeout: 5s
retries: 5

View File

@@ -1,2 +1 @@
[www]
pm.max_children = 10

View File

@@ -1,10 +1,10 @@
#!/bin/sh
set -e
in_log() {
local type="$1"; shift
printf '%s [%s] [Entrypoint]: %s\n' "$(date -u '+%Y-%m-%dT%H:%M:%SZ')" "$type" "$*"
local type="$1"
shift
printf '%s [%s] [Entrypoint]: %s\n' "$(date -u '+%Y-%m-%dT%H:%M:%SZ')" "$type" "$*"
}
docker_process_init_files() {
@@ -48,7 +48,6 @@ chown -R www-data:www-data /var/www/html/storage
# Clear and cache config in production
if [ "$APP_ENV" = "production" ]; then
gosu www-data php artisan config:cache
gosu www-data php artisan optimize
gosu www-data php artisan package:discover
gosu www-data php artisan migrate --force
@@ -72,4 +71,4 @@ fi
echo "Starting supervisord..."
# Start supervisord in the foreground
exec /usr/bin/supervisord -n -c /etc/supervisor/conf.d/supervisord.conf
exec /usr/bin/supervisord -n -c /etc/supervisor/conf.d/supervisord.conf