mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-09-09 11:47:14 +02:00
- 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
45 lines
1.6 KiB
Django/Jinja
45 lines
1.6 KiB
Django/Jinja
{% include 'roles/docker-compose/templates/base.yml.j2' %}
|
|
nginx:
|
|
{% set container_port = 80 %}
|
|
image: "{{ MAGENTO_NGINX_IMAGE }}:{{ MAGENTO_NGINX_VERSION }}"
|
|
container_name: "{{ MAGENTO_NGINX_CONTAINER }}"
|
|
depends_on:
|
|
- php
|
|
- search
|
|
volumes:
|
|
- "data:/var/www/html"
|
|
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_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' %}
|
|
|
|
{% include 'roles/docker-compose/templates/volumes.yml.j2' %}
|
|
data:
|
|
name: {{ MAGENTO_VOLUME }}
|
|
|
|
{% include 'roles/docker-compose/templates/networks.yml.j2' %}
|
|
|