Configuration Reference¶
Detailed reference for .env file and all configuration options. This page detailedly explains the 11 main sections of the 364-line .env file (Traefik, default project settings, Stackvo UI, Docker network, host system mappings, security, port mappings, CLI behavior, supported languages, tools, and services). Type, default value and description are provided for each parameter.
.env File¶
Main configuration file of Stackvo. 364 lines, 11 main sections.
Traefik Settings¶
DEFAULT_TLD_SUFFIX¶
Type: String
Default: stackvo.loc
Description: Domain suffix for all services
SSL_ENABLE¶
Type: Boolean
Default: true
Description: Enables SSL/TLS support
REDIRECT_TO_HTTPS¶
Type: Boolean
Default: true
Description: Redirects HTTP requests to HTTPS
LETSENCRYPT_ENABLE¶
Type: Boolean
Default: false
Description: Let's Encrypt certificates (for production)
TRAEFIK_URL¶
Type: String
Default: traefik
Description: Traefik dashboard subdomain
Default Project Settings¶
DEFAULT_PHP_VERSION¶
Type: String
Default: 8.2
Valid Values: 5.6, 7.0-7.4, 8.0-8.5
Description: Default PHP version for new projects
DEFAULT_WEBSERVER¶
Type: String
Default: nginx
Valid Values: nginx, apache, caddy, ferron
Description: Default webserver for new projects
DEFAULT_DOCUMENT_ROOT¶
Type: String
Default: public
Description: Default document root for new projects
Stackvo UI Settings¶
DEFAULT_TIMEOUT¶
Type: Integer
Default: 30
Unit: Seconds
Description: API request timeout
SYSTEM_COMMAND_TIMEOUT¶
Type: Integer
Default: 120
Unit: Seconds
Description: System commands timeout
CACHE_ENABLE¶
Type: Boolean
Default: true
Description: Enables UI cache
LOG_ENABLE¶
Type: Boolean
Default: true
Description: Enables logging
Docker Network¶
DOCKER_DEFAULT_NETWORK¶
Type: String
Default: stackvo-net
Description: Docker network name
DOCKER_NETWORK_SUBNET¶
Type: String (CIDR)
Default: 172.30.0.0/16
Description: Docker network subnet
DOCKER_PRUNE_ON_REBUILD¶
Type: Boolean
Default: false
Description: Run prune on rebuild
DOCKER_FORCE_RECREATE¶
Type: Boolean
Default: true
Description: Force recreate containers
DOCKER_REMOVE_ORPHANS¶
Type: Boolean
Default: true
Description: Remove orphan containers
Host System Mappings¶
HOST_USER_ID¶
Type: Integer
Default: 1000
Description: Host user ID
HOST_GROUP_ID¶
Type: Integer
Default: 1000
Description: Host group ID
HOST_TIMEZONE¶
Type: String
Default: Europe/Istanbul
Description: Timezone
Security Settings¶
ALLOW_HTTPD¶
Type: Boolean
Default: true
Description: Allow Apache usage
ALLOW_NGINX¶
Type: Boolean
Default: true
Description: Allow Nginx usage
ALLOWED_PHP_VERSIONS¶
Type: String (comma-separated)
Default: 7.4,8.0,8.1,8.2,8.3,8.4
Description: Allowed PHP versions
Port Mappings¶
Host port forwardings.
HOST_PORT_POSTGRES=5433
HOST_PORT_PERCONA=3308
HOST_PORT_ADMINER=8082
HOST_PORT_KAFKA=9094
HOST_PORT_TOMCAT=8081
CLI Behavior¶
STACKVO_VERBOSE¶
Type: Boolean
Default: false
Description: Verbose output
STACKVO_STRICT¶
Type: Boolean
Default: true
Description: Strict mode
STACKVO_SHOW_BANNER¶
Type: Boolean
Default: true
Description: Show banner
STACKVO_DRY_RUN¶
Type: Boolean
Default: false
Description: Dry run mode
STACKVO_VERSION¶
Type: String
Default: 1.0.0
Description: Stackvo version
STACKVO_GENERATE_LOG¶
Type: String
Default: core/generator.log
Description: Generator log file
Supported Languages¶
SUPPORTED_LANGUAGES¶
Type: String (comma-separated)
Default: php,python,go,ruby,rust,nodejs
Description: Supported languages
For each language: - SUPPORTED_LANGUAGES_{LANG}_VERSIONS - Versions - SUPPORTED_LANGUAGES_{LANG}_DEFAULT - Default version - SUPPORTED_LANGUAGES_PHP_EXTENSIONS - PHP extensions (only for PHP)
Services¶
3 basic settings for each service:
SERVICE_{NAME}_ENABLE¶
Type: Boolean
Description: Enables the service
SERVICE_{NAME}_VERSION¶
Type: String
Description: Service version
SERVICE_{NAME}_URL¶
Type: String
Description: Service subdomain
See Services Reference page for service-specific settings.