This document is a quick reference for the most common configuration options of the Docker SDK.
The configuration parameters in this document are examplary. You may need to adjust them per your project requirements.
To configure Opcache, adjust deploy.*.yml
as follows:
image:
tag: spryker/php:7.3
php:
ini:
"opcache.revalidate_freq": 0
"opcache.enable_cli": 0
"opcache.enable": 0
...
To define a memory limit, adjust deploy.*.yml
as follows:
image:
tag: spryker/php:7.3
php:
ini:
"memory_limit": 512m
To provide custom environment variables to Spryker applications, adjust deploy.*.yml
as follows:
image:
tag: spryker/php:7.3
environment:
MY_CUSTOM_ENVIRONMENT_VARIABLE: 1
...
:::(Info) ()
The environment variables defined in environment:
are embedded into all application images.
:::
To increase maximum upload size, update deploy.*.yml
as follows:
- In Nginx configuration, update maximum request body size:
...
applications:
backoffice:
application: backoffice
http:
max-request-body-size: {request_body_size_value}
...
- Update PHP memory limit:
image:
...
php:
ini:
memory_limit: {memroy_limit_value}
...