4.6 KiB
Devilbox Documentation
Overview | Quickstart | Install | Update | Configure | Run | Usage | Backups | Examples | Technical | Hacking | FAQ
Configure
- Overview
- Devilbox general settings
- Verbosity
- Devilbox base path
- Host computer listening address
- Project settings
- Project domain
- Project path
- Container settings
- General 1. Timezone
- PHP / HHVM 1. User id 2. Group id 3. Xdebug 4. php.ini 5. HHVM
- Webserver 1. Host port
- MySQL 1. Root password 2. General Log 3. Host port 4. Data path 5. my.cnf
- PostgreSQL 1. Root user 2. Root password 3. Host port 4. Data path
- Redis 1. Host port
- Memcached 1. Host port
- MongoDB 1. Host port 2. Data path
- Bind 1. Upstream resolver 2. Host port
- Intranet settings
- DNS check timeout
- Host computer
- DNS
- /etc/hosts/
1. Overview
2. Devilbox general settings
2.1 Verbosity
.env file variable name |
Default | Note |
---|---|---|
DEBUG_COMPOSE_ENTRYPOINT | 0 |
Set it to 1 or 0 |
If set to 1
, it will show all executed commands during docker startup.
2.2 Devilbox base path
.env file variable name |
Default | Note |
---|---|---|
DEVILBOX_PATH | . |
Relative or absolute path allowed |
This is the base path that will be prepended to all mount paths specified in .env
.
You will usually not need to change this value..
2.3 Host computer listening address
.env file variable name |
Default | Note |
---|---|---|
LOCAL_LISTEN_ADDRESS | 127.0.0.1: |
Address for every service to listen on the Docker host. Pay attention to the : after the IP address |
This determines the Host address your webserver and all other daemons should listen on.
In case it is not 127.0.0.1
(because you are using a VirtualBox Docker setup) change it to the IP address of the VirtualBox host. Otherwise you will not need to change this value.
- When you remove it completely, it will listen on all interfaces.
- When you use specific address, you must add a
:
at the end.
3. Project settings
3.1 Project domain
.env file variable name |
Default | Note |
---|---|---|
TLD_SUFFIX | loc |
Domain suffix for all your project. Can also be a subdomain such work.loc |
Each project will be served by http://<project-folder>.<TLD_SUFFIX>
. If you want to change the default loc
domain suffix to something else such as local, adjust this variable. Here are a few examples:
Project Folder | TLD_SUFFIX | URL |
---|---|---|
my-cake | loc | http://my-cake.loc |
my-cake | local | http://my-cake.local |
my-cake | dev | http://my-cake.dev |
my-cake | work.loc | http://my-cake.work.loc |
test | foo | http://test.foo |
project1 | bar | http://project1.bar |
The above examples should make it clear enough.
3.2 Project path
.env file variable name |
Default | Note |
---|---|---|
HOST_PATH_HTTPD_DATADIR | ./data/www |
Can be absolute or relative path. A relative path starts inside the devilbox git directory. |
This is the file system path on your host computer which will hold the Project Folders.