Magento 2.4.8 refactor:

- Switch to split containers (markoshust/magento-php:8.2-fpm + magento-nginx:latest)
- Disable central DB; use app-local MariaDB and pin to 11.4
- Composer bootstrap of Magento in php container (Adobe repo keys), idempotent via creates
- Make setup:install idempotent; run as container user 'app'
- Wire OpenSearch (security disabled) and depends_on ordering
- Add credentials schema (adobe_public_key/adobe_private_key)
- Update vars for php/nginx/search containers + MAGENTO_USER
- Remove legacy docs (Administration.md, Upgrade.md)
Context: changes derived from our ChatGPT session about getting Magento 2.4.8 running with MariaDB 11.4.
Conversation: https://chatgpt.com/share/68b8dc30-361c-800f-aa69-88df514cb160
This commit is contained in:
2025-09-04 12:45:03 +02:00
parent 32bc17e0c3
commit 77e8e7ed7e
7 changed files with 87 additions and 103 deletions

View File

@@ -1,27 +1,37 @@
{% include 'roles/docker-compose/templates/base.yml.j2' %}
application:
nginx:
{% set container_port = 80 %}
{% include 'roles/docker-container/templates/base.yml.j2' %}
image: "{{ MAGENTO_IMAGE }}:{{ MAGENTO_VERSION }}"
container_name: "{{ MAGENTO_CONTAINER }}"
ports:
- "127.0.0.1:{{ ports.localhost.http[application_id] }}:{{ container_port }}"
image: "{{ MAGENTO_NGINX_IMAGE }}:{{ MAGENTO_NGINX_VERSION }}"
container_name: "{{ MAGENTO_NGINX_CONTAINER }}"
depends_on:
- php
- search
volumes:
- "data:/var/www/html"
{% include 'roles/docker-container/templates/depends_on/dmbs_excl.yml.j2' %}
# search:
# condition: service_healthy
ports:
- "127.0.0.1:{{ ports.localhost.http[application_id] }}:{{ container_port }}"
{% include 'roles/docker-container/templates/healthcheck/tcp.yml.j2' %}
{% include 'roles/docker-container/templates/networks.yml.j2' %}
php:
{% include 'roles/docker-container/templates/base.yml.j2' %}
image: "{{ MAGENTO_PHP_IMAGE }}:{{ MAGENTO_PHP_VERSION }}"
container_name: "{{ MAGENTO_PHP_CONTAINER }}"
volumes:
- "data:/var/www/html"
{% include 'roles/docker-container/templates/depends_on/dmbs_incl.yml.j2' %}
search:
condition: service_started
{% include 'roles/docker-container/templates/networks.yml.j2' %}
search:
{% set container_port = 9200 %}
image: "{{ MAGENTO_SEARCH_IMAGE }}:{{ MAGENTO_SEARCH_VERSION }}"
container_name: "{{ MAGENTO_SEARCH_NAME }}"
container_name: "{{ MAGENTO_SEARCH_CONTAINER }}"
{% include 'roles/docker-container/templates/base.yml.j2' %}
environment:
- discovery.type=single-node
- plugins.security.disabled=true
- OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m
{% include 'roles/docker-container/templates/healthcheck/tcp.yml.j2' %}
{% include 'roles/docker-container/templates/networks.yml.j2' %}
@@ -31,3 +41,4 @@
name: {{ MAGENTO_VOLUME }}
{% include 'roles/docker-compose/templates/networks.yml.j2' %}