Skip to content

Bring Your Own Container

By default, Mappia provisions a Magento 2 store using the most recent Magento 2 release. However, you likely want to run your codebase, not what comes with Magento out of the box.

Mappia's values.yaml provides two keys that you can change to configure Mappia to use your own custom image: images.cli and images.fpm.

  • images.fpm processes requests from the internet
  • images.cli is used by the cron and consumer pods.

If you're unsure how to build these images, you can follow along with the Build a docker container for my Magento store guide.

TIP

If your image is on a private registry (it likely is), you can provide images.imagePullSecrets so that your cluster can pull these images.

INFO

If you are using terraform-azure you do not need to provide images.imagePullSecrets as AKS automatically connects to your ACR.

WARNING

If you're using magento < 2.4.6 you must add this in your composer.json to avoid caching errors.

json
{
    ...
    "require": {
        "colinmollenhour/cache-backend-redis": "1.14.4 as 1.14.2",
    } 
    ...
}