2016-10-09 16:47:49 +00:00
|
|
|
###
|
|
|
|
### ---------------------------------------------------
|
|
|
|
### D E V I L B O X R U N - T I M E S E T T I N G S
|
|
|
|
### ---------------------------------------------------
|
|
|
|
###
|
|
|
|
### All the following settings are applied during
|
|
|
|
### $ docker-compose up
|
|
|
|
###
|
|
|
|
### No need to rebuild any dockers!
|
|
|
|
###
|
|
|
|
|
2017-04-29 14:36:22 +00:00
|
|
|
|
2016-10-09 16:47:49 +00:00
|
|
|
###
|
|
|
|
### Show all executed commands in each
|
|
|
|
### docker image during docker-compose up?
|
|
|
|
###
|
|
|
|
### 1: Yes
|
|
|
|
### 0: No
|
2017-04-19 17:48:44 +00:00
|
|
|
DEBUG_COMPOSE_ENTRYPOINT=1
|
2016-10-09 16:47:49 +00:00
|
|
|
|
|
|
|
|
2016-12-14 10:15:33 +00:00
|
|
|
###
|
|
|
|
### Relative or absolute path to the devilbox repository.
|
|
|
|
### (Used as a prefix for all mount paths)
|
|
|
|
### There is no need to change this.
|
|
|
|
###
|
|
|
|
### The only exception is for OSX users wanting to use NFS
|
|
|
|
### mounts instead of Filesystem mounts due to degraded performance
|
|
|
|
### on OSX.
|
|
|
|
###
|
|
|
|
DEVILBOX_PATH=.
|
|
|
|
|
|
|
|
|
2016-12-02 20:08:27 +00:00
|
|
|
###
|
|
|
|
### At what IP address should the docker services listen
|
|
|
|
### on the Host computer?
|
|
|
|
###
|
|
|
|
### The specified default should be fine for Linux and OSX (127.0.0.1:).
|
|
|
|
### If you are on windows, you will probably have to change
|
|
|
|
### it to the IP address of the docker machine.
|
|
|
|
###
|
|
|
|
### a.) Leave blank, to listen on all interfaces (no trailing color ':')
|
|
|
|
### LOCAL_LISTEN_ADDR=
|
|
|
|
### b.) If an IP is specified, note the trailing colon ':'
|
|
|
|
### LOCAL_LISTEN_ADDR=127.0.0.1:
|
|
|
|
###
|
|
|
|
LOCAL_LISTEN_ADDR=127.0.0.1:
|
|
|
|
|
2016-10-09 16:47:49 +00:00
|
|
|
|
2017-05-07 13:51:12 +00:00
|
|
|
###
|
|
|
|
### This is the domain suffix your projects will be made available
|
|
|
|
### with mass-virtual-hosting.
|
|
|
|
### It is also required for the internal DNS server to be setup.
|
|
|
|
###
|
|
|
|
### Note: Only ALPHA ([a-zA-Z]+) characters are supported.
|
|
|
|
###
|
|
|
|
### Example:
|
|
|
|
### TLD_SUFFIX=loc
|
|
|
|
### Makes your project available under xxxx.loc
|
|
|
|
###
|
|
|
|
### Example:
|
|
|
|
### TLD_SUFFIX=local
|
|
|
|
### Makes your project available under xxxx.local
|
|
|
|
###
|
|
|
|
TLD_SUFFIX=loc
|
|
|
|
|
|
|
|
|
|
|
|
###
|
|
|
|
### TLD_SUFFIX domains are checked if they are set in the
|
|
|
|
### host computer /etc/hosts or available via attached DNS server.
|
|
|
|
### Timeout is done on vhosts.php (intranet) via ajax calls.
|
|
|
|
### In order to keep performance, set this to a low value.
|
|
|
|
### DNS checks might not succeed in time on slow machines.
|
|
|
|
### If DNS is valid, but timeout is expired, set this to a higher value.
|
|
|
|
###
|
|
|
|
### DNS_CHECK_TIMEOUT value is how many seconds to time out
|
|
|
|
### Default is to timeout after 1 second (DNS_CHECK_TIMEOUT=1)
|
|
|
|
###
|
|
|
|
DNS_CHECK_TIMEOUT=1
|
|
|
|
|
|
|
|
|
2017-04-29 14:36:22 +00:00
|
|
|
|
2016-10-09 16:47:49 +00:00
|
|
|
################################################################################
|
|
|
|
###
|
|
|
|
### 1. Choose Images (Version)
|
|
|
|
###
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
###
|
2016-11-15 18:52:39 +00:00
|
|
|
### You can choose any combination of httpd, mysql, postgresql or php.
|
2016-10-09 16:47:49 +00:00
|
|
|
### Each of them are fully compatible between one another.
|
|
|
|
###
|
|
|
|
|
|
|
|
|
|
|
|
###
|
2017-04-29 14:36:22 +00:00
|
|
|
### 1.1 Choose PHP Server Image
|
|
|
|
###
|
2017-05-20 14:24:37 +00:00
|
|
|
#PHP_SERVER=php-fpm-5.4
|
2017-04-29 14:36:22 +00:00
|
|
|
#PHP_SERVER=php-fpm-5.5
|
|
|
|
#PHP_SERVER=php-fpm-5.6
|
2017-05-20 14:24:37 +00:00
|
|
|
PHP_SERVER=php-fpm-7.0
|
2017-04-29 14:36:22 +00:00
|
|
|
#PHP_SERVER=php-fpm-7.1
|
|
|
|
#PHP_SERVER=hhvm-latest
|
|
|
|
|
|
|
|
|
|
|
|
###
|
|
|
|
### 1.2 Choose HTTPD Server Image
|
2016-10-09 16:47:49 +00:00
|
|
|
###
|
|
|
|
#HTTPD_SERVER=apache-2.2
|
2017-04-21 19:15:31 +00:00
|
|
|
#HTTPD_SERVER=apache-2.4
|
|
|
|
HTTPD_SERVER=nginx-stable
|
2016-10-17 02:05:30 +00:00
|
|
|
#HTTPD_SERVER=nginx-mainline
|
2016-10-09 16:47:49 +00:00
|
|
|
|
2017-04-29 14:36:22 +00:00
|
|
|
|
2016-10-09 16:47:49 +00:00
|
|
|
###
|
2017-04-29 14:36:22 +00:00
|
|
|
### 1.3 Choose MySQL Server Image
|
2016-10-09 16:47:49 +00:00
|
|
|
###
|
2016-11-15 18:52:39 +00:00
|
|
|
#MYSQL_SERVER=mysql-5.5
|
2016-10-24 23:57:53 +00:00
|
|
|
#MYSQL_SERVER=mysql-5.6
|
2016-12-30 17:38:54 +00:00
|
|
|
#MYSQL_SERVER=mysql-5.7
|
2017-04-21 20:25:02 +00:00
|
|
|
#MYSQL_SERVER=mysql-8.0
|
2016-10-25 20:27:34 +00:00
|
|
|
#MYSQL_SERVER=mariadb-5.5
|
2016-10-27 07:19:53 +00:00
|
|
|
#MYSQL_SERVER=mariadb-10.0
|
2017-05-06 12:18:30 +00:00
|
|
|
MYSQL_SERVER=mariadb-10.1
|
2016-10-30 15:11:54 +00:00
|
|
|
#MYSQL_SERVER=mariadb-10.2
|
2017-05-06 12:18:30 +00:00
|
|
|
#MYSQL_SERVER=mariadb-10.3
|
2016-10-25 20:27:34 +00:00
|
|
|
|
2016-10-09 16:47:49 +00:00
|
|
|
|
2016-11-15 18:52:39 +00:00
|
|
|
###
|
2017-04-29 14:36:22 +00:00
|
|
|
### 1.4 Choose PostgreSQL Server Image
|
2016-11-15 18:52:39 +00:00
|
|
|
###
|
2017-04-29 14:36:22 +00:00
|
|
|
#PGSQL_SERVER=9.1
|
|
|
|
#PGSQL_SERVER=9.2
|
|
|
|
#PGSQL_SERVER=9.3
|
|
|
|
#PGSQL_SERVER=9.4
|
|
|
|
#PGSQL_SERVER=9.5
|
|
|
|
PGSQL_SERVER=9.6
|
2016-10-09 16:47:49 +00:00
|
|
|
|
|
|
|
|
|
|
|
###
|
2017-04-23 11:20:32 +00:00
|
|
|
### 1.5 Choose Redis Server Image
|
|
|
|
### (only for docker-compose.optional.yml)
|
|
|
|
### $ docker-compose -f docker-compose.optional.yml up
|
|
|
|
###
|
2017-04-23 12:10:41 +00:00
|
|
|
#REDIS_SERVER=2.8
|
2017-04-23 11:20:32 +00:00
|
|
|
#REDIS_SERVER=3.0
|
2017-04-23 12:10:41 +00:00
|
|
|
REDIS_SERVER=3.2
|
2017-04-23 11:20:32 +00:00
|
|
|
|
|
|
|
|
2017-05-06 12:18:30 +00:00
|
|
|
###
|
|
|
|
### 1.6 Choose Memcahced Server Image
|
|
|
|
### (only for docker-compose.optional.yml)
|
|
|
|
### $ docker-compose -f docker-compose.optional.yml up
|
|
|
|
###
|
2017-05-20 18:12:31 +00:00
|
|
|
MEMCD_SERVER=1.4.21
|
|
|
|
#MEMCD_SERVER=1.4.22
|
|
|
|
#MEMCD_SERVER=1.4.23
|
|
|
|
#MEMCD_SERVER=1.4.24
|
|
|
|
#MEMCD_SERVER=1.4.25
|
|
|
|
#MEMCD_SERVER=1.4.26
|
|
|
|
#MEMCD_SERVER=1.4.27
|
|
|
|
#MEMCD_SERVER=1.4.28
|
|
|
|
#MEMCD_SERVER=1.4.29
|
|
|
|
#MEMCD_SERVER=1.4.30
|
|
|
|
#MEMCD_SERVER=1.4.31
|
|
|
|
#MEMCD_SERVER=1.4.32
|
|
|
|
#MEMCD_SERVER=1.4.33
|
|
|
|
#MEMCD_SERVER=1.4.34
|
|
|
|
#MEMCD_SERVER=1.4.35
|
|
|
|
#MEMCD_SERVER=1.4.36
|
|
|
|
#MEMCD_SERVER=latest
|
2017-05-06 12:18:30 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-10-09 16:47:49 +00:00
|
|
|
|
|
|
|
################################################################################
|
|
|
|
###
|
2016-11-15 18:52:39 +00:00
|
|
|
### 2. Host Mounts (Your computer)
|
2016-10-09 16:47:49 +00:00
|
|
|
###
|
|
|
|
################################################################################
|
|
|
|
|
2016-12-22 19:16:39 +00:00
|
|
|
###
|
|
|
|
### Local filesystem path to www projects.
|
|
|
|
###
|
2017-04-29 14:36:22 +00:00
|
|
|
HOST_PATH_HTTPD_DATADIR=./data/www
|
2016-10-09 16:47:49 +00:00
|
|
|
|
2016-12-22 19:16:39 +00:00
|
|
|
###
|
|
|
|
### Local filesystem path to mysql/mariadb datadir.
|
|
|
|
###
|
|
|
|
### This can be an existing mysql data directory or empty.
|
|
|
|
### If it already is a mysql data directory with content,
|
|
|
|
### it will be mounted into the docker and used.
|
|
|
|
###
|
|
|
|
### If this directory is empty, a new mysql database will be
|
|
|
|
### created.
|
|
|
|
###
|
2017-04-23 14:00:00 +00:00
|
|
|
### Note: Inside this path, a subdirectory with the mysql|mariadb
|
|
|
|
### version will be created where the actual data resides.
|
|
|
|
### This is to protect databases from being altered by
|
|
|
|
### newer or older mysql|mariadb server versions.
|
|
|
|
###
|
2017-04-29 14:36:22 +00:00
|
|
|
HOST_PATH_MYSQL_DATADIR=./data/mysql
|
|
|
|
|
2016-10-09 16:47:49 +00:00
|
|
|
|
2016-12-22 19:16:39 +00:00
|
|
|
###
|
|
|
|
### Local filesystem path to postgresql datadir.
|
|
|
|
###
|
|
|
|
### This can be an existing postgresql data directory or empty.
|
|
|
|
### If it already is a postgresql data directory with content,
|
|
|
|
### it will be mounted into the docker and used.
|
|
|
|
###
|
|
|
|
### If this directory is empty, a new postgresql database will be
|
|
|
|
### created.
|
|
|
|
###
|
2017-04-23 14:00:00 +00:00
|
|
|
### Note: Inside this path, a subdirectory with the postgresql
|
|
|
|
### version will be created where the actual data resides.
|
|
|
|
### This is to protect databases from being altered by
|
|
|
|
### newer or older postgres server versions.
|
2017-04-29 14:36:22 +00:00
|
|
|
HOST_PATH_PGSQL_DATADIR=./data/pgsql
|
2016-10-09 16:47:49 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
###
|
2017-04-29 14:36:22 +00:00
|
|
|
### 3. GENERAL DOCKER CONTAINER SETTINGS
|
|
|
|
###
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
###
|
|
|
|
### Set your user id and group id
|
|
|
|
###
|
|
|
|
### This should be changed to the value of your local
|
|
|
|
### users uid and gid
|
|
|
|
###
|
|
|
|
### Type `id` on the terminal to find out your values
|
|
|
|
###
|
2017-05-21 20:09:03 +00:00
|
|
|
NEW_UID=1000
|
|
|
|
NEW_GID=1000
|
2017-04-29 14:36:22 +00:00
|
|
|
|
|
|
|
|
|
|
|
###
|
|
|
|
### Timezone for all dockers and service config files
|
|
|
|
###
|
|
|
|
TIMEZONE=Europe/Berlin
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
###
|
|
|
|
### 3. PHP Docker Settings
|
|
|
|
###
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
###
|
|
|
|
### Xdebug
|
|
|
|
###
|
|
|
|
|
|
|
|
# Enable/Disable Xdebug
|
|
|
|
PHP_XDEBUG_ENABLE=1
|
|
|
|
|
|
|
|
# Your local port (your computer host [not the docker])
|
|
|
|
# where your ide/editor is listening for xdebug connections.
|
|
|
|
PHP_XDEBUG_REMOTE_PORT=9000
|
|
|
|
|
|
|
|
# Your local IP address (your computer host [not the docker])
|
|
|
|
# where your ide/editor is listening for xdebug connections.
|
|
|
|
PHP_XDEBUG_REMOTE_HOST=192.168.0.215
|
|
|
|
## TODO: Check if it works by automatically sending it to the broadcast address
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
###
|
|
|
|
### 4. HTTPD Docker Settings
|
2016-10-09 16:47:49 +00:00
|
|
|
###
|
|
|
|
################################################################################
|
|
|
|
|
2016-12-22 19:16:39 +00:00
|
|
|
###
|
|
|
|
### Expose HTTPD Port to Host
|
|
|
|
###
|
|
|
|
HOST_PORT_HTTPD=80
|
2016-10-09 16:47:49 +00:00
|
|
|
|
|
|
|
|
2017-04-29 14:36:22 +00:00
|
|
|
|
2016-10-09 16:47:49 +00:00
|
|
|
################################################################################
|
|
|
|
###
|
2017-04-29 14:36:22 +00:00
|
|
|
### 5. MySQL Docker Settings
|
2016-10-09 16:47:49 +00:00
|
|
|
###
|
|
|
|
################################################################################
|
|
|
|
|
2016-12-22 19:16:39 +00:00
|
|
|
###
|
|
|
|
### MySQL root user password
|
|
|
|
###
|
|
|
|
### If $HOST_PATH_TO_MYSQL_DATADIR already contains an existing
|
|
|
|
### mysql datadir, enter the password for the existing mysql database
|
|
|
|
###
|
|
|
|
### If $HOST_PATH_TO_MYSQL_DATADIR is empty, choose a new password that
|
|
|
|
### will be applied
|
|
|
|
###
|
2016-10-09 16:47:49 +00:00
|
|
|
MYSQL_ROOT_PASSWORD=
|
|
|
|
|
|
|
|
###
|
|
|
|
### Custom MySQL Runtime Settings
|
|
|
|
###
|
|
|
|
MYSQL_GENERAL_LOG=1
|
|
|
|
|
2016-12-22 19:16:39 +00:00
|
|
|
###
|
|
|
|
### Expose MySQL Port to Host
|
|
|
|
###
|
|
|
|
HOST_PORT_MYSQL=3306
|
|
|
|
|
2016-10-09 16:47:49 +00:00
|
|
|
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
###
|
2017-04-29 14:36:22 +00:00
|
|
|
### 6. PostgreSQL Docker Settings
|
2016-10-09 16:47:49 +00:00
|
|
|
###
|
|
|
|
################################################################################
|
|
|
|
|
2016-12-22 19:16:39 +00:00
|
|
|
###
|
|
|
|
### PostgreSQL 'root' user name (usually postgres)
|
|
|
|
###
|
2017-04-29 14:36:22 +00:00
|
|
|
PGSQL_ROOT_USER=postgres
|
2016-11-15 18:52:39 +00:00
|
|
|
|
2016-12-22 19:16:39 +00:00
|
|
|
###
|
|
|
|
### PostgreSQL 'root' user password
|
|
|
|
###
|
2017-04-29 14:36:22 +00:00
|
|
|
PGSQL_ROOT_PASSWORD=
|
2016-11-15 18:52:39 +00:00
|
|
|
|
2016-12-22 19:16:39 +00:00
|
|
|
###
|
2017-05-07 21:04:17 +00:00
|
|
|
### Expose PostgreSQL Port to Host
|
2016-12-22 19:16:39 +00:00
|
|
|
###
|
2017-04-29 14:36:22 +00:00
|
|
|
HOST_PORT_PGSQL=5432
|
2017-04-23 11:20:32 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
###
|
|
|
|
### 7. Redis Docker Settings
|
|
|
|
###
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
###
|
|
|
|
### Expost Redis Port to Host
|
|
|
|
###
|
|
|
|
HOST_PORT_REDIS=6379
|
2017-05-06 12:18:30 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
###
|
|
|
|
### 8. Memcached Docker Settings
|
|
|
|
###
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
###
|
2017-05-10 19:27:10 +00:00
|
|
|
### Expost Memcached Port to Host
|
2017-05-06 12:18:30 +00:00
|
|
|
###
|
2017-05-20 18:12:31 +00:00
|
|
|
HOST_PORT_MEMCD=11211
|
2017-05-10 19:27:10 +00:00
|
|
|
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
###
|
|
|
|
### 9. Bind Docker Settings
|
|
|
|
###
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
###
|
|
|
|
### Expost Bind Port to Host
|
|
|
|
###
|
|
|
|
HOST_PORT_BIND=53
|