Fork me on GitHub
Phraseanet Documentation

Environnement variables

Environment variables are defined in the .env file.

Their assignment takes effect according to the state of the stack:

  • install
  • build
  • run

Variables tagged “@deprecated” are deprecated.

myLib
Name Type Comment
PHRASEANET_PROJECT_NAME
none
PHRASEANET_SERVER_NAME
none
PHRASEANET_DOCKER_REGISTRY
none
Registry from where you pull Docker images
PHRASEANET_DOCKER_TAG
none
Tag of the Docker images
PHRASEANET_APP_PORT
none
APPLICATION PORT
RABBITMQ_DEFAULT_USER
none
RabbitMQ configuration
RABBITMQ_DEFAULT_PASS
none
RABBITMQ_MANAGEMENT_PORT
none
MYSQL_ROOT_PASSWORD
none
Mysql configuration
SERVER_NAME
none

GATEWAY TIMEOUT

myLib
Name Type Comment
GATEWAY_SEND_TIMEOUT
none
GATEWAY_PROXY_TIMEOUT
none
GATEWAY_FASTCGI_TIMEOUT
none

PHP CONFIGURATION

myLib
Name Type Comment
MAX_BODY_SIZE
none
Max upload size
MAX_INPUT_VARS
none
Max input var
MAX_EXECUTION_TIME
none
MAX_INPUT_TIME
none
REQUEST_TERMINATE_TIMEOUT
none
OPCACHE_ENABLED
none
Enable opcache ? (0/1)
SESSION_CACHE_LIMITER
none
session cache limiter (off/on)
PHP_LOG_LEVEL
none
PHP LOG LEVEL : Possible Values: alert, error, warning, notice, debug

MYSQL CONFIGURATION

myLib
Name Type Comment
MYSQL_MAX_ALLOWED_PACKET
none
Mysql max allowed packet

PHRASEANET CONFIGURATION

These variables are used in the configuration.yml .
myLib
Name Type Comment
PHRASEANET_ADMIN_ACCOUNT_ID
none
set here the first user / email coupleset to id of Phraseanet root account, if you want activate a sync for Phraseanet root account password provide by PHRASEANET_ADMIN_ACCOUNT_PASSWORD env value.
PHRASEANET_ADMIN_ACCOUNT_EMAIL
none
PHRASEANET_ADMIN_ACCOUNT_PASSWORD
none
PHRASEANET_DB_HOST
none
Database parameters
PHRASEANET_DB_PORT
none
PHRASEANET_DB_USER
none
PHRASEANET_DB_PASSWORD
none
INSTALL_DB_TEMPLATE
none
INSTALL_APPBOX
none
INSTALL_DATABOX
none
PHRASEANET_FFMPEG_TIMEOUT
none
binaries execution timeouts
PHRASEANET_FFPROBE_TIMEOUT
none
PHRASEANET_GS_TIMEOUT
none
PHRASEANET_MP4BOX_TIMEOUT
none
PHRASEANET_SWFTOOLS_TIMEOUT
none
PHRASEANET_UNOCON_TIMEOUT
none
PHRASEANET_EXIFTOOL_TIMEOUT
none
network : comma separated list of IP ou SUBNETS
myLib
Name Type Comment
PHRASEANET_TRUSTED_PROXIES
none
PHRASEANET_API_ENABLED
none
api
PHRASEANET_API_SSL
none
PHRASEANET_API_AUTH_TOKEN_HEADER_ONLY
none
PHRASEANET_EMITTER_EMAIL
none
Phraseanet mail configuration
PHRASEANET_MAIL_OBJECT_PREFIX
none
PHRASEANET_SMTP_ENABLED
none
PHRASEANET_SMTP_HOST
none
PHRASEANET_SMTP_PORT
none
PHRASEANET_SMTP_AUTH_ENABLED
none
PHRASEANET_SMTP_SECURE_MODE
none
PHRASEANET_SMTP_USER
none
PHRASEANET_SMTP_PASSWORD
none
PHRASEANET_EXPLODE_WORKER
none
Phraseanet Workers setting
PHRASEANET_WORKER_assetsIngest
none
PHRASEANET_WORKER_createRecord
none
PHRASEANET_WORKER_deleteRecord
none
PHRASEANET_WORKER_exportMail
none
PHRASEANET_WORKER_exposeUpload
none
PHRASEANET_WORKER_ftp
none
PHRASEANET_WORKER_mainQueue
none
PHRASEANET_WORKER_populateIndex
none
PHRASEANET_WORKER_pullAssets
none
PHRASEANET_WORKER_recordEdit
none
PHRASEANET_WORKER_subdefCreation
none
PHRASEANET_WORKER_subtitle
none
PHRASEANET_WORKER_validationReminder
none
PHRASEANET_WORKER_webhook
none
PHRASEANET_WORKER_writeMetadatas
none
Locale setting
myLib
Name Type Comment
LC_MESSAGES
none
LC_COLLATE
none
LC_IDENTIFICATION
none
LANG
none
LC_MEASUREMENT
none
LC_CTYPE
none
LC_TIME
none
LC_NAME
none

EXTERNAL BINARIES SETTING

myLib
Name Type Comment
IMAGEMAGICK_POLICY_VERSION
none
ImageMagick default policy override
IMAGEMAGICK_POLICY_WIDTH
none
IMAGEMAGICK_POLICY_HEIGHT
none
IMAGEMAGICK_POLICY_MAP
none
IMAGEMAGICK_POLICY_MEMORY
none
IMAGEMAGICK_POLICY_AREA
none
IMAGEMAGICK_POLICY_DISK
none
IMAGEMAGICK_POLICY_TEMPORARY_PATH
none

DEV purpose

myLib
Name Type Comment
PHRASEANET_PHPMYADMIN_PORT
none
PhpMyAdmin port
XDEBUG_ENABLED
none
Xdebug
XDEBUG_PROFILER_ENABLED
none
IDE_KEY
none
PHRASEANET_SUBNET_IPS
none
XDEBUG_REMOTE_HOST
none
PHP_IDE_CONFIG=serverName
none
PHRASEANET_CONFIG_DIR
none
Volumes location
PHRASEANET_LOGS_DIR
none
PHRASEANET_DATA_DIR
none
PHRASEANET_DB_DIR
none
PHRASEANET_ELASTICSEARCH_DIR
none
PHRASEANET_THUMBNAILS_DIR
none
PHRASEANET_CUSTOM_DIR
none
PHRASEANET_PLUGINS_DIR
none
PHRASEANET_TMP_DIR
none
PHRASEANET_CACHE_DIR
none
PHRASEANET_DOWNLOAD_DIR
none
PHRASEANET_LAZARET_DIR
none
PHRASEANET_CAPTION_DIR
none
PHRASEANET_WORKER_TMP
none
PHRASEANET_FTP_DIR
none
for dev export ftp
SSH_AUTH_SOCK
none
For dev who don't have SSH_AUTH_SOCK (avoid an empty volume name)
PHRASEANET_PLUGINS
none
Plugin support
PHRASEANET_SSH_PRIVATE_KEY
none