Skip to content

Commit

Permalink
feat: added startup check for scheduler
Browse files Browse the repository at this point in the history
  • Loading branch information
Tbaile committed Mar 25, 2024
1 parent c50e7fe commit e9308bb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions containers/php/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ if [ "$1" = 'php-fpm' ]; then
php artisan storage:link
php artisan app:geoip:download
chown -R www-data:www-data storage
elif [ "$1" = 'crond' ]; then
wait-for "${FPM_URL:?Missing FPM_URL}:${FPM_PORT:?Missing FPM_PORT}" -t 60
fi

exec "$@"
3 changes: 3 additions & 0 deletions deploy/docker-compose/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ services:
scheduler:
extends:
service: app
environment:
FPM_URL: app
FPM_PORT: 9000
command: [ "crond", "-f", "-l", "2" ]
web:
image: ghcr.io/nethserver/phonehome-server-web:latest
Expand Down

0 comments on commit e9308bb

Please sign in to comment.