Initial Commit
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
version: '3.7'
|
||||
|
||||
services:
|
||||
scheduler:
|
||||
environment:
|
||||
PHP_VERSION: ${PHP_VERSION}
|
||||
build:
|
||||
context: .
|
||||
args:
|
||||
PHP_VERSION: ${PHP_VERSION}
|
||||
dockerfile: ./docker/php/Dockerfile
|
||||
volumes:
|
||||
- ./:/var/www
|
||||
depends_on:
|
||||
- mysql
|
||||
- composer
|
||||
working_dir: /var/www
|
||||
entrypoint: ['./docker/scheduler/entrypoint.sh']
|
||||
user: "${USER_ID}:${GROUP_ID}"
|
||||
networks:
|
||||
- laravel
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
while true
|
||||
do
|
||||
php /var/www/artisan schedule:run --verbose --no-interaction &
|
||||
sleep 60
|
||||
done
|
||||
Reference in New Issue
Block a user