Level 1
I'm still interested in answer. :)
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I need a little help with Docker because I can't find a solution. I'm trying to make a Laravel Queue work (running a supervisor).
My docker-compose.yml containing 3 Laravel applications looks something like this:
services:
mysql:
image: mysql:8
basket-api:
build:
context: .
dockerfile: Services/Basket/Basket.API/Dockerfile
depends_on:
- mysql
catalog-api:
build:
context: .
dockerfile: Services/Catalog/Catalog.API/Dockerfile
depends_on:
- mysql
ordering-api:
build:
context: .
dockerfile: Services/Ordering/Ordering.API/Dockerfile
depends_on:
- mysql
Then I have 3 Docker files, which look like this:
FROM php:7.4-fpm-alpine
RUN apk --no-cache add \
php7 \
php7-fpm \
php7-pdo \
...
...
...
RUN php7 -r "copy('http://getcomposer.org/installer', 'composer-setup.php');" && \
php7 composer-setup.php --install-dir=/usr/bin --filename=composer && \
COPY /Services/Basket/Basket.API /src
WORKDIR /src
RUN composer update
ENTRYPOINT ["sh", "./start.sh"]
Each of the 3 Laravel apps need to have working Queue - how do I add/run a supervisor and set it up?
Please or to participate in this conversation.