-
Notifications
You must be signed in to change notification settings - Fork 0
/
loco.yml
54 lines (46 loc) · 2.1 KB
/
loco.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
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>".'
mysql:
init: 'loco-mysql-init'
run: 'mysqld --datadir="$LOCO_SVC_VAR/data"'
pid_file: '$LOCO_SVC_VAR/run/mysql.pid'
message: 'MySQL is running on "<comment>$LOCALHOST:$MYSQL_PORT</comment>". The default credentials are user="<comment>root</comment>" and password="".'