format: 'loco-0.1' ## The following are *default* values for important environment variables. ## They are ignored if you have already set them elsewhere. default_environment: - HTTPD_DOMAIN=localhost - HTTPD_PORT=8000 - HTTPD_ROOT=$LOCO_PRJ/web - LOCALHOST=127.0.0.1 - MYSQL_PORT=3306 - PHPFPM_PORT=9000 - REDIS_PORT=6379 - XDEBUG_PORT=9000 - RAMDISK_SIZE=300 ## The following are *mandatory* values for important environment variables. ## They will override any other values you might have set. environment: - PHP_INI_SCAN_DIR=$LOCO_VAR/php/php.ini.d:$LOCO_PRJ/.loco/config/php/php.ini.d - MYSQL_HOME=$LOCO_VAR/mysql/conf ## All service data will be stored in a ramdisk. ## If you prefer to use a physical disk, comment out this section. volume: init: 'ramdisk start "$LOCO_VAR" "$RAMDISK_SIZE"' cleanup: 'ramdisk stop "$LOCO_VAR"' message: 'Loco data volume is a ram disk at "$LOCO_VAR".' ## The "services" are the programs we wish to run. services: redis: run: 'redis-server --port "$REDIS_PORT" --bind "$LOCALHOST" --pidfile "$LOCO_SVC_VAR/redis.pid" --dir "$LOCO_SVC_VAR"' pid_file: '$LOCO_SVC_VAR/redis.pid' message: 'Redis is running on "$LOCALHOST:$REDIS_PORT".' php: init: 'loco-php-init' run: 'php-fpm -y "$LOCO_SVC_VAR/php-fpm.conf"' pid_file: '$LOCO_SVC_VAR/php-fpm.pid' message: 'PHP-FPM is running on "$LOCALHOST:$PHPFPM_PORT" with config files in "$LOCO_SVC_VAR/php.ini.d" and "$LOCO_SVC_CFG/php.ini.d".' apache: depends: [php] init: 'loco-apache-init' run: 'apachectl -d "$LOCO_SVC_VAR" -DFOREGROUND' pid_file: '$LOCO_SVC_VAR/httpd.pid' message: 'Apache HTTPD is running at "http://$LOCALHOST:$HTTPD_PORT" with content from "$HTTPD_ROOT".'