mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-09-08 03:07:14 +02:00
- add role files (docs, vars, config, tasks, schema, templates) - networks: add web-app-magento 192.168.103.208/28 - ports: add localhost http 8052 Conversation: https://chatgpt.com/share/68b8820f-f864-800f-8819-da509b99cee2
35 lines
1.3 KiB
Django/Jinja
35 lines
1.3 KiB
Django/Jinja
{% include 'roles/docker-compose/templates/base.yml.j2' %}
|
|
|
|
application:
|
|
{% set container_port = 8080 %}
|
|
{% include 'roles/docker-container/templates/base.yml.j2' %}
|
|
image: "{{ magento_image }}:{{ magento_version }}"
|
|
container_name: "{{ magento_name }}"
|
|
ports:
|
|
- "127.0.0.1:{{ ports.localhost.http[application_id] }}:{{ container_port }}"
|
|
volumes:
|
|
- "data:/bitnami/magento"
|
|
{% include 'roles/docker-container/templates/depends_on/dmbs_excl.yml.j2' %}
|
|
depends_on:
|
|
- search
|
|
{% include 'roles/docker-container/templates/healthcheck/tcp.yml.j2' %}
|
|
{% 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 }}"
|
|
{% 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_data }}
|
|
|
|
{% include 'roles/docker-compose/templates/networks.yml.j2' %}
|