diff --git a/database/migrations/0001_01_01_000001_create_jobs_table.php b/database/migrations/0001_01_01_000001_create_jobs_table.php new file mode 100644 index 00000000..cb4e8783 --- /dev/null +++ b/database/migrations/0001_01_01_000001_create_jobs_table.php @@ -0,0 +1,26 @@ +bigIncrements('id'); + $table->string('queue')->index(); + $table->longText('payload'); + $table->unsignedTinyInteger('attempts'); + $table->unsignedInteger('reserved_at')->nullable(); + $table->unsignedInteger('available_at'); + $table->unsignedInteger('created_at'); + }); + } + + public function down(): void + { + Schema::dropIfExists('jobs'); + } +}; diff --git a/docker/supervisor/supervisord.conf b/docker/supervisor/supervisord.conf index cb70056e..a1e5e8f8 100644 --- a/docker/supervisor/supervisord.conf +++ b/docker/supervisor/supervisord.conf @@ -4,6 +4,15 @@ user=root logfile=/var/log/supervisord.log pidfile=/var/run/supervisord.pid +[unix_http_server] +file=/var/run/supervisor.sock + +[supervisorctl] +serverurl=unix:///var/run/supervisor.sock + +[rpcinterface:supervisor] +supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface + [program:php-fpm] command=/usr/local/sbin/php-fpm -F autostart=true