Skip to content

Environment Variables

You are viewing the next version (v6.7) of the documentation.
Click here to switch to the stable version (v6.6), or use the version switcher on the left to navigate between versions.

Environment Variables

This page lists all environment variables that can be used to configure Shopware.

VariableDefault ValueDescription
APP_ENVprodEnvironment
APP_SECRET(empty)Can be generated with openssl rand -hex 32
APP_CACHE_DIR{projectRoot}/var/cachePath to a directory to store caches (since 6.6.8.0)
APP_BUILD_DIR{projectRoot}/var/cachePath to a temporary directory to create cache folder (since 6.6.8.0)
APP_LOG_DIR{projectRoot}/var/logPath to a directory to store logs (since 6.6.8.0)
INSTANCE_ID(empty)Unique Identifier for the Store: Can be generated with openssl rand -hex 32
JWT_PRIVATE_KEY(empty)Can be generated with shopware-cli project generate-jwt --env
JWT_PUBLIC_KEY(empty)Can be generated with shopware-cli project generate-jwt --env
LOCK_DSNflockDSN for Symfony locking
APP_URL(empty)Where Shopware will be accessible
BLUE_GREEN_DEPLOYMENT0This needs super privilege to create trigger
DATABASE_URL(empty)MySQL credentials as DSN
DATABASE_SSL_CA(empty)Path to SSL CA file
DATABASE_SSL_CERT(empty)Path to SSL Cert file
DATABASE_SSL_KEY(empty)Path to SSL Key file
DATABASE_SSL_DONT_VERIFY_SERVER_CERT(empty)Disables verification of the server certificate (1 disables it)
MAILER_DSNnull://localhostMailer DSN (Admin Configuration overwrites this)
OPENSEARCH_URL(empty)Open Search Hosts
SHOPWARE_ES_ENABLED0Open Search Support Enabled?
SHOPWARE_ES_INDEXING_ENABLED0Open Search Indexing Enabled?
SHOPWARE_ES_INDEX_PREFIX(empty)Open Search Index Prefix
COMPOSER_HOME/tmp/composerCaching for the Plugin Manager
SHOPWARE_HTTP_CACHE_ENABLED1Is HTTP Cache enabled?
SHOPWARE_HTTP_DEFAULT_TTL7200Default TTL for HTTP Cache
MESSENGER_TRANSPORT_DSN(empty)DSN for default async queue (example: amqp://guest:guest@localhost:5672/%2f/default)
MESSENGER_TRANSPORT_LOW_PRIORITY_DSN(empty)DSN for low priority queue (example: amqp://guest:guest@localhost:5672/%2f/low_prio)
MESSENGER_TRANSPORT_FAILURE_DSN(empty)DSN for failed messages queue (example: amqp://guest:guest@localhost:5672/%2f/failure)