mirror of
https://github.com/invoiceninja/dockerfiles.git
synced 2025-12-31 19:47:25 +01:00
cleanup
This commit is contained in:
13
debian/docker-compose.yml
vendored
13
debian/docker-compose.yml
vendored
@@ -59,16 +59,7 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- app-network
|
- app-network
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test:
|
test: [ "CMD", "mysqladmin", "ping", "-h", "localhost", "-u${MYSQL_USER}", "-p${MYSQL_PASSWORD}" ]
|
||||||
[
|
|
||||||
"CMD",
|
|
||||||
"mysqladmin",
|
|
||||||
"ping",
|
|
||||||
"-h",
|
|
||||||
"localhost",
|
|
||||||
"-u${MYSQL_USER}",
|
|
||||||
"-p${MYSQL_PASSWORD}",
|
|
||||||
]
|
|
||||||
interval: 10s
|
interval: 10s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 5
|
retries: 5
|
||||||
@@ -82,7 +73,7 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- app-network
|
- app-network
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "redis-cli", "ping"]
|
test: [ "CMD", "redis-cli", "ping" ]
|
||||||
interval: 10s
|
interval: 10s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 5
|
retries: 5
|
||||||
|
|||||||
1
debian/php/php-fpm.conf
vendored
1
debian/php/php-fpm.conf
vendored
@@ -1,2 +1 @@
|
|||||||
[www]
|
|
||||||
pm.max_children = 10
|
pm.max_children = 10
|
||||||
|
|||||||
9
debian/scripts/init.sh
vendored
9
debian/scripts/init.sh
vendored
@@ -1,10 +1,10 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
|
||||||
in_log() {
|
in_log() {
|
||||||
local type="$1"; shift
|
local type="$1"
|
||||||
printf '%s [%s] [Entrypoint]: %s\n' "$(date -u '+%Y-%m-%dT%H:%M:%SZ')" "$type" "$*"
|
shift
|
||||||
|
printf '%s [%s] [Entrypoint]: %s\n' "$(date -u '+%Y-%m-%dT%H:%M:%SZ')" "$type" "$*"
|
||||||
}
|
}
|
||||||
|
|
||||||
docker_process_init_files() {
|
docker_process_init_files() {
|
||||||
@@ -48,7 +48,6 @@ chown -R www-data:www-data /var/www/html/storage
|
|||||||
|
|
||||||
# Clear and cache config in production
|
# Clear and cache config in production
|
||||||
if [ "$APP_ENV" = "production" ]; then
|
if [ "$APP_ENV" = "production" ]; then
|
||||||
gosu www-data php artisan config:cache
|
|
||||||
gosu www-data php artisan optimize
|
gosu www-data php artisan optimize
|
||||||
gosu www-data php artisan package:discover
|
gosu www-data php artisan package:discover
|
||||||
gosu www-data php artisan migrate --force
|
gosu www-data php artisan migrate --force
|
||||||
@@ -72,4 +71,4 @@ fi
|
|||||||
|
|
||||||
echo "Starting supervisord..."
|
echo "Starting supervisord..."
|
||||||
# Start supervisord in the foreground
|
# 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
|
||||||
|
|||||||
Reference in New Issue
Block a user