Skip to content
HomeKnowledge BaseStatisticsChangelog GitHub Discord Email
getting-started / Environment Variables

No results for ""

Environment Variables

Overview

Each WordPress app managed by Demyx has its own .env file stored in the Demyx container at /demyx/wp/<domain>/.env. You can view it with demyx info domain.tld or edit it with demyx edit domain.tld.

The host stack also has a .env file stored in the demyx Docker volume. View it with demyx host env or edit it with demyx host edit.

Most variables are managed automatically by demyx config and demyx refresh. Manual editing is rarely needed.

Host Identity

VariableDescription
DEMYX_AUTH_USERNAMEDefault HTTP auth username for generated host services
DEMYX_AUTH_PASSWORDDefault HTTP auth password for generated host services
DEMYX_CF_KEYCloudflare API key used for wildcard SSL
DEMYX_CPUCore service CPU limit, auto-calculated when unset
DEMYX_DOMAINServer's primary domain, used for Traefik and generated app defaults
DEMYX_EMAILEmail used for Let's Encrypt certificates and default app admin email
DEMYX_HOSTNAMEHostname displayed in system information
DEMYX_IPServer IP used for whitelist-related config
DEMYX_MEMCore service memory limit, auto-calculated when unset
DEMYX_MODERuntime mode (stable by default)
DEMYX_SERVER_IPDetected public/server IP passed into the Demyx container
DEMYX_TELEMETRYEnable daily telemetry ping (true/false)
DEMYX_TZTimezone used by the Demyx stack

Host Backups & Healthchecks

VariableDescription
DEMYX_BACKUP_ENABLEEnable automated backups (true/false)
DEMYX_BACKUP_LIMITNumber of daily backups to retain
DEMYX_HEALTHCHECKEnable global healthchecks (true/false)
DEMYX_HEALTHCHECK_DISKPath checked for disk usage
DEMYX_HEALTHCHECK_DISK_THRESHOLDDisk usage percentage that triggers notifications
DEMYX_HEALTHCHECK_LOADFive-minute load average threshold

Host Services

VariableDescription
DEMYX_CODE_ENABLEEnable code-server service (true/false)
DEMYX_CODE_DOMAINSubdomain for code-server
DEMYX_CODE_PASSWORDcode-server password
DEMYX_CODE_SSLEnable SSL for code-server (true/false)
DEMYX_TRAEFIK_DASHBOARDEnable Traefik dashboard (true/false)
DEMYX_TRAEFIK_DASHBOARD_DOMAINSubdomain for the Traefik dashboard
DEMYX_TRAEFIK_LOGTraefik log level
DEMYX_TRAEFIK_SSLEnable SSL for Traefik dashboard (true/false)

Host Notifications & Logs

VariableDescription
DEMYX_LOGROTATELog rotation frequency
DEMYX_LOGROTATE_INTERVALNumber of rotated logs to retain
DEMYX_LOGROTATE_SIZEMaximum log size before rotation
DEMYX_MATRIXEnable Matrix notifications (true/false)
DEMYX_MATRIX_KEYMatrix webhook or access key
DEMYX_MATRIX_URLMatrix webhook URL
DEMYX_SMTPEnable SMTP notifications (true/false)
DEMYX_SMTP_HOSTSMTP server host
DEMYX_SMTP_PORTSMTP server port
DEMYX_SMTP_FROMSender address
DEMYX_SMTP_TORecipient address
DEMYX_SMTP_USERNAMESMTP username
DEMYX_SMTP_PASSWORDSMTP password

Core App Variables

VariableDescription
DEMYX_APP_DOMAINThe app's primary domain
DEMYX_APP_DOMAIN_WWWWhether www subdomain is enabled (true/false)
DEMYX_APP_IDUnique alphanumeric ID for the app
DEMYX_APP_CONTAINERBase container name (derived from domain)
DEMYX_APP_COMPOSE_PROJECTDocker Compose project name
DEMYX_APP_STACKStack type: nginx-php, ols, bedrock, ols-bedrock

Authentication

VariableDescription
DEMYX_APP_AUTHBasic auth enabled (true/false)
DEMYX_APP_AUTH_WPBasic auth for WP login only (true/false)
DEMYX_APP_AUTH_USERNAMEBasic auth username
DEMYX_APP_AUTH_PASSWORDBasic auth password
DEMYX_APP_DEV_PASSWORDcode-server password

PHP / Stack Configuration

VariableDescription
DEMYX_APP_PHPPHP version (8.3, 8.4) — nginx-php/bedrock stacks
DEMYX_APP_OLS_LSPHPLSPHP version — OLS stacks
DEMYX_APP_PMPHP-FPM process manager (ondemand, dynamic, static)
DEMYX_APP_PHP_MAX_REQUESTSPHP-FPM max requests per child
DEMYX_APP_OPCACHEPHP OPcache enabled (true/false)

Cache & Performance

VariableDescription
DEMYX_APP_CACHEFastCGI / page cache enabled (true/false)
DEMYX_APP_CACHE_INACTIVECache expiry duration (e.g. 1d)
DEMYX_APP_REDISRedis enabled (true/false)
DEMYX_APP_RATE_LIMITNginx rate limiting for wp-login/wp-cron (true/false)

SSL

VariableDescription
DEMYX_APP_SSLSSL enabled (true/false)
DEMYX_APP_SSL_WILDCARDWildcard SSL via Cloudflare (true/false)

Containers

VariableDescription
DEMYX_APP_WP_CONTAINERWordPress container name
DEMYX_APP_DB_CONTAINERMariaDB container name
DEMYX_APP_NX_CONTAINERNGINX container name
DEMYX_APP_PREFIXVolume name prefix

Maintenance & Backup

VariableDescription
DEMYX_APP_BACKUPAuto backup enabled (true/false)
DEMYX_APP_HEALTHCHECKHealthcheck enabled for this app (true/false)
DEMYX_APP_DEVDeveloper mode / code-server active (true/false)
DEMYX_APP_MAINTENANCEMaintenance mode active (true/false)
DEMYX_APP_WP_UPDATEAuto WordPress/plugin updates via WP-CLI (true/false)

Viewing Variables

bash
# Host variables
demyx host env

# All variables for an app
demyx info domain.tld

# Specific variable
demyx info domain.tld --env=DEMYX_APP_STACK

# All credentials (auth, code-server, MariaDB, WP)
demyx info domain.tld -l

# JSON output
demyx info domain.tld -j