docker run --rm -v $(pwd):/app luyadev/luya-docker-php-cli health
Where health
is the command to run in LUYA.
When working with custom images, it might be helpfull to have a cli tool to run the LUYA commands, therfore add the luya cli docker image to your services list.
luya_cli:
image: luyadev/luya-docker-php-cli
volumes:
- ./:/app
In order to run commands use docker-compose run luya_cli <COMMAND>
.