-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MariaDB 10.6 && 10.11. OpenSearch 1.3. ReadME update
- Loading branch information
1 parent
1ba74fe
commit d7e9c1e
Showing
10 changed files
with
149 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Cluster ################################ | ||
cluster.name: "docker-cluster" | ||
|
||
bootstrap.memory_lock: "true" # along with the memlock settings below, disables swapping | ||
|
||
# Threshold ################################ | ||
cluster.routing.allocation.disk.threshold_enabled: true | ||
cluster.routing.allocation.disk.watermark.low: 90% | ||
cluster.routing.allocation.disk.watermark.high: 95% | ||
|
||
# Security ################################# | ||
plugins.security.disabled: true | ||
|
||
# Network ################################### | ||
http.host: 0.0.0.0 | ||
|
||
# Http ################################### | ||
http.max_content_length: 10mb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
SPRYKER_SEARCH_ENGINE=OS | ||
SPRYKER_SEARCH_HOST={{ serviceName }} | ||
SPRYKER_SEARCH_PORT={{ serviceData['port'] | default(9200) }} | ||
SPRYKER_SEARCH_INDEX_PREFIX={{ searchIndexPrefix }} | ||
# STORE-SPECIFIC | ||
#SPRYKER_SEARCH_NAMESPACE= |
3 changes: 3 additions & 0 deletions
3
generator/src/templates/nginx/tcp/opensearch.server.conf.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{% extends "nginx/tcp/server.conf.twig" %} | ||
{% block port %}{{ port | default(9200) }}{% endblock port %} | ||
{% block upstream %}{{ upstream }}:9200{% endblock upstream %} |
19 changes: 19 additions & 0 deletions
19
generator/src/templates/service/mysql/mariadb-10.11/mysql.yml.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{{ serviceName }}: | ||
image: mariadb:10.11 | ||
networks: | ||
- private | ||
labels: | ||
'spryker.app.name': database | ||
'spryker.app.type': services | ||
'spryker.project': ${SPRYKER_DOCKER_PREFIX}:${SPRYKER_DOCKER_TAG} | ||
healthcheck: | ||
test: ["CMD", "mysqladmin", "ping", "--silent"] | ||
interval: 10s | ||
timeout: 10s | ||
retries: 5 | ||
environment: | ||
MYSQL_ROOT_PASSWORD: "{{ serviceData['root']['password'] }}" | ||
LANG: C.UTF-8 | ||
volumes: | ||
- {{ serviceName }}-{{ serviceData['engine'] }}-data:/var/lib/mysql:rw | ||
- ./${DEPLOYMENT_PATH}/context/mysql/my.cnf:/etc/mysql/mariadb.conf.d/my.cnf:ro |
19 changes: 19 additions & 0 deletions
19
generator/src/templates/service/mysql/mariadb-10.6/mysql.yml.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{{ serviceName }}: | ||
image: mariadb:10.6 | ||
networks: | ||
- private | ||
labels: | ||
'spryker.app.name': database | ||
'spryker.app.type': services | ||
'spryker.project': ${SPRYKER_DOCKER_PREFIX}:${SPRYKER_DOCKER_TAG} | ||
healthcheck: | ||
test: ["CMD", "mysqladmin", "ping", "--silent"] | ||
interval: 10s | ||
timeout: 10s | ||
retries: 5 | ||
environment: | ||
MYSQL_ROOT_PASSWORD: "{{ serviceData['root']['password'] }}" | ||
LANG: C.UTF-8 | ||
volumes: | ||
- {{ serviceName }}-{{ serviceData['engine'] }}-data:/var/lib/mysql:rw | ||
- ./${DEPLOYMENT_PATH}/context/mysql/my.cnf:/etc/mysql/mariadb.conf.d/my.cnf:ro |
25 changes: 25 additions & 0 deletions
25
generator/src/templates/service/opensearch/1.3/opensearch.yml.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{{ serviceName }}: | ||
image: opensearchproject/opensearch:1.3 | ||
networks: | ||
- private | ||
labels: | ||
'spryker.app.name': search | ||
'spryker.app.type': services | ||
'spryker.project': ${SPRYKER_DOCKER_PREFIX}:${SPRYKER_DOCKER_TAG} | ||
healthcheck: | ||
test: ["CMD", "curl", "-f", "localhost:9200/_cat/health"] | ||
interval: 10s | ||
timeout: 5s | ||
retries: 5 | ||
ulimits: | ||
memlock: | ||
soft: -1 | ||
hard: -1 | ||
nofile: | ||
soft: 65536 | ||
hard: 65536 | ||
environment: | ||
ES_JAVA_OPTS: "-Xms512m -Xmx512m" | ||
volumes: | ||
- {{ serviceName }}-{{ serviceData['engine'] }}-data:/usr/share/opensearch/data:rw | ||
- ./${DEPLOYMENT_PATH}/context/opensearch/opensearch.yml:/usr/share/opensearch/config/opensearch.yml:ro |
1 change: 1 addition & 0 deletions
1
generator/src/templates/service/opensearch/default/opensearch.yml.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{% include "service/#{engine}/1.3/#{engine}.yml.twig" with _context only %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
SPRYKER_SEARCH_ENGINE = "OS" | ||
SPRYKER_SEARCH_INDEX_PREFIX = "{{ searchIndexPrefix }}" |