v2.0.2 Dockerfile only deployment running queue worker #98
-
I have this Dockerfile that is working on deployment and I want to add queue worker on it. Based on the docs https://github.com/serversideup/docker-php#running-a-laravel-queue all you need to do is pass the Laravel Queue command to the container and S6 will automatically monitor it for you. The example given on the docs is on docker-compose file. I have tried it on Dockerfile only using CMD and it runs the queue:work but the problem is the nginx stopped working. I'm hoping someone knows the answer. I have also tried adding a queue:work command on a /etc/services.d/queue directory as suggested here https://community.fly.io/t/full-stack-laravel-bytes-tutorial-supervisor-not-working/6400/6 and it's also not working. Dockerfile
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
I wonder if this has to do with you overriding the If you notice in my base image, it requires I would remove your line (to inherit what is upstream) or set it explicitly match what I have. |
Beta Was this translation helpful? Give feedback.
I wonder if this has to do with you overriding the
ENTRYPOINT
?If you notice in my base image, it requires
init
, which is S6 Overlay V3 standards: https://github.com/serversideup/s6-overlay/blob/main/Dockerfile#L48I would remove your line (to inherit what is upstream) or set it explicitly match what I have.