Answer the question
In order to leave comments, you need to log in
How to properly deploy docker?
Hello. The crux of the matter is as follows. I need to deploy a container with a website, and run a command in it that will launch the daemon I need.
Dockerfile
I have the following:
FROM yiisoftware/yii2-php:7.4-apache
WORKDIR /app
RUN docker-php-ext-install sockets
ADD . /app
#CMD ["/app/yii", "queue/listen"]
Answer the question
In order to leave comments, you need to log in
yii queue/listen - start processing the queue continuously (in daemon mode)
in theory the command should not end, add flags for more detailed output, the command may crash with an error
--verbose, -v: print executing statuses into console.
--isolate: verbose mode of a job execute. If enabled, execute result of each job will be printed.
--color: highlighting for verbose mode.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question