Go to file
Kai Ton a43af3aa89 update job producer 2024-03-01 12:42:29 +00:00
.docker restructure project 2024-03-01 09:19:04 +00:00
.vscode restructure project 2024-03-01 09:19:04 +00:00
chrome-profiles add profiles for chrome 2024-02-27 02:50:54 +00:00
consumer fix docker and path incorrect 2024-03-01 12:36:44 +00:00
producer update job producer 2024-03-01 12:42:29 +00:00
.env update document 2024-02-24 03:34:57 +00:00
.gitconfig add git config 2024-02-27 02:51:23 +00:00
README.md restructure project 2024-03-01 09:19:04 +00:00
docker-compose.yml fix consumer docker 2024-03-01 12:39:25 +00:00

README.md

Install

You should change the /src/.env.example file name to .env and run

docker network create producer
docker compose up rabbitmq socketio -d

Clone container

.env

VERSION=1

run

docker compose up app -d

laravel-rabbitmq{VERSION}

laravel-rabbitmq1

PORT http://localhost:800{VERSION}

http://localhost:8001

Monitor

Version: 1

http://localhost:8001/horizon

Rabbitmq: rabbit/rabbit123

http://localhost:15672

Test

Attach shell to Version1

docker exec -it laravel-rabbitmq1-app-1 bash

Test Job: src/app/Console/Commands/JobRun.php

php artisan job:run

Log

[!NOTE]

-f: file
--tail 10: Watch only see the last 10 lines

View log app

docker logs -f --tail 10 laravel-rabbitmq1-app-1

View log puppeteer

docker logs -f --tail 10 laravel-rabbitmq1-puppeteer-1