Configuration Hierarchy
Settings are applied in the following order, where later sources override earlier ones:defaults.json— Built-in defaults (do not edit)config.json— Your custom configuration- Environment variables — Override any JSON setting
Configuration File (config.json)
The config.json file is located at .vl/config.json inside your Visual Layer installation directory. This file controls application behavior, feature flags, and pipeline settings. Include only the settings you want to change — any setting not present in config.json uses its default value from defaults.json.
To customize your deployment, create or edit .vl/config.json:
After modifying
config.json, restart Visual Layer services for changes to take effect:Feature Flags
The following feature flags control which capabilities are available in your deployment.Storage and Media Settings
These settings control how media files are stored, processed, and displayed.General Settings
Additional settings for authentication, dataset limits, and data quality.Environment File (.env)
The .env file is located at the root of the Visual Layer installation directory. Docker Compose reads this file when starting services. It controls hardware profile, image versions, and deployment options.
A typical .env file:
Key .env Variables
The following variables control the deployment environment.
config.json settings as environment variables in the .env file. Environment variables take precedence over JSON configuration:
After modifying
.env, restart the services for changes to take effect:Environment Variable Overrides
Anyconfig.json setting can also be set as an environment variable exported in the shell before starting Visual Layer. Environment variables always take the highest precedence.
Related Resources
Installation
Install and start Visual Layer on your infrastructure.
S3 Configuration
Configure S3 storage for self-hosted deployments.
System Requirements
Hardware and software prerequisites for self-hosted deployments.
Useful Scripts
Maintenance and administration scripts for self-hosted environments.