Povilas Brilius
2 min readJan 17, 2021

--

Laravel Docker conversation violations — on compose instance, for example.

Two containers running on docker-compose.yml are negotiating for content on ports 2125 — frontend; and 2124 — backend. However, when pointing frontend form submission to backend /crawl

cd backend-alna
php artisan route:list
+--------+----------+----------+------+------------------------------+------------+
| Domain | Method | URI | Name | Action | Middleware |
+--------+----------+----------+------+------------------------------+------------+
| | GET|HEAD | / | | Closure | web |
| | GET|HEAD | api/user | | Closure | api |
| | | | | | auth:api |
| | POST | crawl | | App\Http\Controllers\JobPost | web |
+--------+----------+----------+------+------------------------------+------------+

the response is negative in regard of content curl -LI -X OPTIONS localhost:2124/crawl

HTTP/1.1 200 OK
Date: Sun, 17 Jan 2021 09:23:05 GMT
Server: Apache
X-Powered-By: PHP/7.4.6
Allow: POST
Cache-Control: no-cache, private
Content-Length: 0
Content-Type: text/html; charset=UTF-8

--

--

Povilas Brilius
Povilas Brilius

Written by Povilas Brilius

PHP Developer in e-commerce and e-loans industry fields.

No responses yet