Deploy NGINX + PHP + MariaDB on RaspberryPi

Hi,

I would like to deploy a web application on a php web server with a MariaDB database.

When I use the basic images (ex: mariadb:latest) within a docker-compose file, I get the following message: standard_init_linux.go:195: exec user process caused "exec format error" in the Balena cloud interface.

Can someone tell me how to deploy a web server on Raspberry Pi with Balena ?

Thank you in advance

Hi @rgabriel , the "exec format error" means that the docker engine is trying to run a binary that does not match the CPU architecture of the device. On a RPI3 you need to run armv6 or armv7 contianers, but the mariadb:latest image will default to intel x86 what you probably can do to get around this is use an image like this https://hub.docker.com/r/lsioarmhf/mariadb/tags

Thank you for your answer.

I made a new docker compose file with images for arm. PHP and MariaDB run perfectly but nginx

13.06.19 08:07:37 (+0200) Installing service 'nginx sha256:b0bdad61311e6cc2e6ea61c1936acc91f838cf9702d5f7f7514fc9a64668dd38'
13.06.19 08:07:37 (+0200) Installed service 'nginx sha256:b0bdad61311e6cc2e6ea61c1936acc91f838cf9702d5f7f7514fc9a64668dd38'
13.06.19 08:07:37 (+0200) Starting service 'nginx sha256:b0bdad61311e6cc2e6ea61c1936acc91f838cf9702d5f7f7514fc9a64668dd38'
13.06.19 08:07:40 (+0200) Started service 'nginx sha256:b0bdad61311e6cc2e6ea61c1936acc91f838cf9702d5f7f7514fc9a64668dd38'
13.06.19 08:07:41 (+0200) Service exited 'nginx sha256:b0bdad61311e6cc2e6ea61c1936acc91f838cf9702d5f7f7514fc9a64668dd38'
13.06.19 08:07:42 (+0200) Killing service 'nginx sha256:b0bdad61311e6cc2e6ea61c1936acc91f838cf9702d5f7f7514fc9a64668dd38'
13.06.19 08:07:44 (+0200) Restarting service 'nginx sha256:b0bdad61311e6cc2e6ea61c1936acc91f838cf9702d5f7f7514fc9a64668dd38'
13.06.19 08:07:45 (+0200) Service exited 'nginx sha256:b0bdad61311e6cc2e6ea61c1936acc91f838cf9702d5f7f7514fc9a64668dd38'
13.06.19 08:07:45 (+0200) Killed service 'nginx sha256:b0bdad61311e6cc2e6ea61c1936acc91f838cf9702d5f7f7514fc9a64668dd38'