Skip to content

Commit

Permalink
Merge pull request #112 from spryker-shop/bugfix/te-10281-deploy-files
Browse files Browse the repository at this point in the history
TE-10281 Updated deploy files
  • Loading branch information
gechetspr authored Dec 23, 2021
2 parents 3dc8183 + 7fd0d3e commit f8d457f
Show file tree
Hide file tree
Showing 7 changed files with 751 additions and 654 deletions.
48 changes: 24 additions & 24 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions config/Shared/config_default.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
use Spryker\Shared\Category\CategoryConstants;
use Spryker\Shared\CmsGui\CmsGuiConstants;
use Spryker\Shared\Customer\CustomerConstants;
use Spryker\Shared\DocumentationGeneratorRestApi\DocumentationGeneratorRestApiConstants;
use Spryker\Shared\ErrorHandler\ErrorHandlerConstants;
use Spryker\Shared\ErrorHandler\ErrorRenderer\WebHtmlErrorRenderer;
use Spryker\Shared\Event\EventConstants;
Expand Down Expand Up @@ -103,6 +104,7 @@
// >>> DEV TOOLS

$config[ConsoleConstants::ENABLE_DEVELOPMENT_CONSOLE_COMMANDS] = (bool)getenv('DEVELOPMENT_CONSOLE_COMMANDS');
$config[DocumentationGeneratorRestApiConstants::ENABLE_REST_API_DOCUMENTATION_GENERATION] = true;

// >>> ERROR HANDLING

Expand Down
44 changes: 35 additions & 9 deletions deploy.aws-env-template.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
version: "0.1"

x-real-ip: &real-ip
real-ip:
from:
Expand All @@ -24,6 +25,7 @@ x-real-ip: &real-ip
- 2405:8100::/32 # Cloudflare
- 2c0f:f248::/32 # Cloudflare
- 2a06:98c0::/29 # Cloudflare

x-frontend-auth: &frontend-auth
<<: *real-ip
auth:
Expand All @@ -34,13 +36,17 @@ x-frontend-auth: &frontend-auth
exclude:
- '${ALLOWED_IP}' # AWS gateway
- 185.60.20.0/24 # PayOne

namespace: spryker-customer # INIT_IMAGE_PREFIX
tag: '1.0'

environment: docker
image: spryker/php:7.3-DRAFT-new-relic # Last actual image
image:
tag: spryker/php:7.3 # Last actual image
composer:
mode: --no-dev
autoload: --classmap-authoritative

assets:
image: fholzer/nginx-brotli:v1.18.0
mode: production
Expand All @@ -51,7 +57,7 @@ assets:
static: true
level: 5
regions:
DE:
EU:
services:
database:
database: CHANGE_ME #Example: customer_staging
Expand All @@ -69,10 +75,10 @@ regions:
session:
namespace: 2
groups:
DE-1:
region: DE
EU:
region: EU
applications:
Yves:
yves_eu:
application: yves
endpoints:
www.de.example.demo-spryker.com:
Expand All @@ -81,13 +87,25 @@ groups:
de.example.demo-spryker.com:
store: DE
<<: *frontend-auth
Zed:
application: zed
backoffice_eu:
application: backoffice
endpoints:
backoffice.de.example.demo-spryker.com:
store: DE
primal: true
Glue:
backend_gateway_eu:
application: backend-gateway
endpoints:
backend-gateway.de.example.demo-spryker.com:
store: DE
primal: true
backend_api_eu:
application: zed
endpoints:
backend-api.de.example.demo-spryker.com:
store: DE
entry-point: BackendApi
glue_eu:
application: glue
endpoints:
glue.de.example.demo-spryker.com:
Expand Down Expand Up @@ -133,14 +151,22 @@ services:
engine: mailhog
endpoints:
mail.example.demo-spryker.com:

docker:
blackfire:
enabled: true

ssl:
enabled: true
redirect: true

testing:
store: DE

debug:
enabled: true
enabled: false
xdebug:
enabled: false

mount:
baked:
Loading

0 comments on commit f8d457f

Please sign in to comment.