Initial repo for search and displace code (written for, rather than the tools used in the processing)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

48 lines
1.8 KiB

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 "<comment>$LOCO_VAR</comment>".'
## 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 "<comment>$LOCALHOST:$REDIS_PORT</comment>".'
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 "<comment>$LOCALHOST:$PHPFPM_PORT</comment>" with config files in "<comment>$LOCO_SVC_VAR/php.ini.d</comment>" and "<comment>$LOCO_SVC_CFG/php.ini.d</comment>".'
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 "<comment>http://$LOCALHOST:$HTTPD_PORT</comment>" with content from "<comment>$HTTPD_ROOT</comment>".'