I have one question regarding of what is the best practice when comes to starting multiple services in one container. For example; I have one Ubuntu based Dockerfile in which I have to install Grav. In order this to work; I need to have nginx and php-fpm services running when image is started.
Currently, I am using monit with such configuration that it starts both nginx and php-fpm. Monit itself is called at the end of the Dockerfile as:
# Run services via Monit daemon ENTRYPOINT service monit start && /bin/bash
It works, but I am not sure is this the ‘Docker way’ and if not; shall I take different approach?
Thank you in advance.