Skip to main content

docker-env-table

The following environment variables are required in order to run Strapi in a Docker container:

Variable nameDescription
NODE_ENVThe environment in which the application is running.
DATABASE_CLIENTThe database client to use.
DATABASE_HOSTThe database host.
DATABASE_PORTThe database port.
DATABASE_NAMEThe database name.
DATABASE_USERNAMEThe database username.
DATABASE_PASSWORDThe database password.
JWT_SECRETThe secret used to sign the JWT for the Users-Permissions plugin.
ADMIN_JWT_SECRETThe secret used to sign the JWT for the Admin panel.
APP_KEYSThe secret keys used to sign the session cookies.
API_TOKEN_SALTThe salt used to generate API tokens.
TRANSFER_TOKEN_SALTThe salt used to generate transfer tokens.
ENCRYPTION_KEYThe key used to encrypt secrets stored in the database (e.g., provider credentials configured through the admin panel).

You can also set some optional environment variables.