blackbirdchess-docker-dev/env-example

356 lines
10 KiB
Plaintext
Raw Normal View History

2017-11-14 11:53:30 +01:00
###########################################################
2018-04-05 15:43:22 +02:00
###################### General Setup ######################
2017-11-14 11:53:30 +01:00
###########################################################
2018-04-05 15:43:22 +02:00
### Paths #################################################
2017-04-20 20:34:42 +02:00
2018-04-05 15:43:22 +02:00
# Point to the path of your applications code on your host
APP_CODE_PATH_HOST=../
2018-04-05 15:43:22 +02:00
# Point to where the `APP_CODE_PATH_HOST` should be in the container. You may add flags to the path `:cached`, `:delegated`. When using Docker Sync add `:nocopy`
APP_CODE_PATH_CONTAINER=/var/www:cached
2017-11-14 11:53:30 +01:00
2018-04-05 15:43:22 +02:00
# Choose storage path on your machine. For all storage systems
DATA_PATH_HOST=~/.laradock/data
2017-11-14 11:53:30 +01:00
2018-04-05 15:43:22 +02:00
### Drivers ################################################
2017-11-14 11:53:30 +01:00
2018-04-05 15:43:22 +02:00
# All volumes driver
VOLUMES_DRIVER=local
2017-11-14 11:53:30 +01:00
2018-04-05 15:43:22 +02:00
# All Networks driver
NETWORKS_DRIVER=bridge
2017-04-20 20:34:42 +02:00
2018-04-05 15:43:22 +02:00
### Docker compose files ##################################
2018-04-05 15:43:22 +02:00
# Select which docker-compose files to include. If using docker-sync append `:docker-compose.sync.yml` at the end
COMPOSE_FILE=docker-compose.yml
2018-04-05 15:43:22 +02:00
# Change the separator from : to ; on Windows
COMPOSE_PATH_SEPARATOR=:
# Define the prefix of container names. This is useful if you have multiple projects that use laradock to have seperate containers per project.
COMPOSE_PROJECT_NAME=laradock
2018-04-05 15:43:22 +02:00
### PHP Version ###########################################
2018-05-05 16:06:15 +02:00
# Select a PHP version of the Workspace and PHP-FPM containers (Does not apply to HHVM). Accepted values: 7.2 - 7.1 - 7.0 - 5.6
PHP_VERSION=7.2
2018-04-05 15:43:22 +02:00
### PHP Interpreter #######################################
2017-04-20 20:34:42 +02:00
2018-04-05 15:43:22 +02:00
# Select the PHP Interpreter. Accepted values: hhvm - php-fpm
PHP_INTERPRETER=php-fpm
### Docker Host IP ########################################
# Enter your Docker Host IP (will be appended to /etc/hosts). Default is `10.0.75.1`
2017-11-14 11:53:30 +01:00
DOCKER_HOST_IP=10.0.75.1
2018-04-05 15:43:22 +02:00
### Remote Interpreter ####################################
2017-04-20 20:34:42 +02:00
2018-04-05 15:43:22 +02:00
# Choose a Remote Interpreter entry matching name. Default is `laradock`
2017-11-14 11:53:30 +01:00
PHP_IDE_CONFIG=serverName=laradock
2018-04-05 15:43:22 +02:00
### Windows Path ##########################################
2017-11-14 11:53:30 +01:00
2018-04-05 15:43:22 +02:00
# A fix for Windows users, to ensure the application path works
2017-11-14 11:53:30 +01:00
COMPOSE_CONVERT_WINDOWS_PATHS=1
2018-04-05 15:43:22 +02:00
### Environment ###########################################
2018-04-05 15:43:22 +02:00
# If you need to change the sources (i.e. to China), set CHANGE_SOURCE to true
CHANGE_SOURCE=false
2018-04-05 15:43:22 +02:00
### Docker Sync ###########################################
# If you are using Docker Sync. For `osx` use 'native_osx', for `windows` use 'unison', for `linux` docker-sync is not required
DOCKER_SYNC_STRATEGY=native_osx
2017-11-14 11:53:30 +01:00
###########################################################
2018-04-05 15:43:22 +02:00
################ Containers Customization #################
2017-11-14 11:53:30 +01:00
###########################################################
2018-04-05 15:43:22 +02:00
### WORKSPACE #############################################
WORKSPACE_COMPOSER_GLOBAL_INSTALL=true
WORKSPACE_COMPOSER_REPO_PACKAGIST=
WORKSPACE_INSTALL_NODE=true
WORKSPACE_NODE_VERSION=stable
WORKSPACE_NPM_REGISTRY=
WORKSPACE_INSTALL_YARN=true
WORKSPACE_YARN_VERSION=latest
WORKSPACE_INSTALL_PHPREDIS=true
WORKSPACE_INSTALL_WORKSPACE_SSH=false
2018-05-07 10:58:55 +02:00
WORKSPACE_INSTALL_SUBVERSION=false
WORKSPACE_INSTALL_XDEBUG=false
2017-09-29 14:56:28 +02:00
WORKSPACE_INSTALL_LDAP=false
WORKSPACE_INSTALL_SOAP=false
2017-11-06 11:12:02 +01:00
WORKSPACE_INSTALL_IMAP=false
WORKSPACE_INSTALL_MONGO=false
WORKSPACE_INSTALL_AMQP=false
WORKSPACE_INSTALL_MSSQL=false
WORKSPACE_INSTALL_DRUSH=false
2018-05-28 05:23:59 +02:00
WORKSPACE_DRUSH_VERSION=8.1.17
2017-08-19 16:58:40 +02:00
WORKSPACE_INSTALL_DRUPAL_CONSOLE=false
2017-05-07 16:54:55 +02:00
WORKSPACE_INSTALL_AEROSPIKE=false
WORKSPACE_INSTALL_V8JS=false
WORKSPACE_INSTALL_LARAVEL_ENVOY=false
WORKSPACE_INSTALL_LARAVEL_INSTALLER=false
WORKSPACE_INSTALL_DEPLOYER=false
WORKSPACE_INSTALL_PRESTISSIMO=false
WORKSPACE_INSTALL_LINUXBREW=false
WORKSPACE_INSTALL_MC=false
WORKSPACE_INSTALL_SYMFONY=false
WORKSPACE_INSTALL_PYTHON=false
2017-07-08 12:58:05 +02:00
WORKSPACE_INSTALL_IMAGE_OPTIMIZERS=false
2017-09-05 01:36:24 +02:00
WORKSPACE_INSTALL_IMAGEMAGICK=false
WORKSPACE_INSTALL_TERRAFORM=false
Install Dependencies to Run Dusk Tests **Why we need this change?** Currently we are unable to run Dusk (Browser) tests in workspace container. This change, is to allow us to install all dependencies needed to run Dust test which consists of 1. Linux packages such as xvfb (x-virtual frame buffer to run browser in headless container) and etc. 2. Chrome browser. 3. Chrome driver. To install the Dusk dependencies. 1. Update `WORKSPACE_INSTALL_DUSK_DEPS` to true. 2. Run `docker-compose build workspace`. I've also added couple of aliases to facilitate the preparation of test environment. 1. xvfb = `Xvfb -ac :0 -screen 0 1024x768x16 &` (run x-virtual frame buffer in the background) 2. serve = `php artisan serve --quiet &` (run laravel app in the background) Once those are installed, we will need to update the default chrome driver argument in Laravel 5.5 from `--headless` to `sandbox`. Below are the steps to run Dusk in workspace. 1. `docker-compose run workspace bash` (get into workspace). 2. `laravel new dusk-test` (generate new lavarel app for testing purpose). 3. `cd dusk-test` (change directory to newly generate app folder). 4. `composer install --dev laravel/dusk` (install dusk via composer). 5. `php artisan dusk:install` (generate dusk files). 6. `sed -i '/APP_URL/d' .env` (remove APP_URL entry in .env) 7. `echo 'APP_URL=localhost:8000' >> .env` (add new APP_URL entry in .env) 8. `sed -i--'s/headless/no-sandbox/g' tests/DuskTestCase.php` (replace the default chrome driver argument). 9. `xvfb` (alias to run Xvfb instance in the background). 10. `serve` (alias to run laravel app in the background). 11. `dusk` (alias to run Dusk test).
2017-09-28 11:59:16 +02:00
WORKSPACE_INSTALL_DUSK_DEPS=false
WORKSPACE_INSTALL_PG_CLIENT=false
2018-01-09 04:25:57 +01:00
WORKSPACE_INSTALL_SWOOLE=false
WORKSPACE_PUID=1000
WORKSPACE_PGID=1000
WORKSPACE_CHROME_DRIVER_VERSION=2.32
WORKSPACE_TIMEZONE=UTC
WORKSPACE_SSH_PORT=2222
2018-04-05 15:43:22 +02:00
### PHP_FPM ###############################################
PHP_FPM_INSTALL_ZIP_ARCHIVE=true
PHP_FPM_INSTALL_BCMATH=true
PHP_FPM_INSTALL_MYSQLI=true
PHP_FPM_INSTALL_TOKENIZER=true
PHP_FPM_INSTALL_INTL=true
PHP_FPM_INSTALL_IMAGEMAGICK=true
PHP_FPM_INSTALL_OPCACHE=true
PHP_FPM_INSTALL_IMAGE_OPTIMIZERS=true
PHP_FPM_INSTALL_PHPREDIS=true
PHP_FPM_INSTALL_MEMCACHED=false
PHP_FPM_INSTALL_XDEBUG=false
2018-02-13 19:15:49 +01:00
PHP_FPM_INSTALL_IMAP=false
PHP_FPM_INSTALL_MONGO=false
PHP_FPM_INSTALL_AMQP=false
PHP_FPM_INSTALL_MSSQL=false
PHP_FPM_INSTALL_SOAP=false
2017-12-27 11:56:26 +01:00
PHP_FPM_INSTALL_GMP=false
PHP_FPM_INSTALL_EXIF=false
2017-05-07 16:54:55 +02:00
PHP_FPM_INSTALL_AEROSPIKE=false
PHP_FPM_INSTALL_PGSQL=false
PHP_FPM_INSTALL_GHOSTSCRIPT=false
2017-05-12 13:23:03 +02:00
PHP_FPM_INSTALL_LDAP=false
2017-05-07 19:42:46 +02:00
PHP_FPM_INSTALL_SWOOLE=false
PHP_FPM_INSTALL_PG_CLIENT=false
PHP_FPM_INSTALL_PCNTL=false
2018-04-05 15:43:22 +02:00
### PHP_WORKER ############################################
PHP_WORKER_INSTALL_PGSQL=false
2018-04-05 15:43:22 +02:00
### NGINX #################################################
2017-04-20 20:34:42 +02:00
NGINX_HOST_HTTP_PORT=80
2017-03-17 09:37:42 +01:00
NGINX_HOST_HTTPS_PORT=443
NGINX_HOST_LOG_PATH=./logs/nginx/
NGINX_SITES_PATH=./nginx/sites/
NGINX_PHP_UPSTREAM_CONTAINER=php-fpm
NGINX_PHP_UPSTREAM_PORT=9000
2018-04-05 15:43:22 +02:00
### APACHE ################################################
APACHE_HOST_HTTP_PORT=80
APACHE_HOST_HTTPS_PORT=443
APACHE_HOST_LOG_PATH=./logs/apache2
2017-06-30 12:22:55 +02:00
APACHE_SITES_PATH=./apache2/sites
APACHE_PHP_UPSTREAM_CONTAINER=php-fpm
APACHE_PHP_UPSTREAM_PORT=9000
2017-09-18 15:24:48 +02:00
APACHE_PHP_UPSTREAM_TIMEOUT=60
APACHE_DOCUMENT_ROOT=/var/www/
2018-04-05 15:43:22 +02:00
### MYSQL #################################################
2017-04-20 20:34:42 +02:00
MYSQL_VERSION=latest
MYSQL_DATABASE=default
MYSQL_USER=default
MYSQL_PASSWORD=secret
MYSQL_PORT=3306
MYSQL_ROOT_PASSWORD=root
MYSQL_ENTRYPOINT_INITDB=./mysql/docker-entrypoint-initdb.d
2018-04-05 15:43:22 +02:00
### REDIS #################################################
REDIS_PORT=6379
2018-04-05 15:43:22 +02:00
### Percona ###############################################
2017-04-20 20:34:42 +02:00
PERCONA_DATABASE=homestead
PERCONA_USER=homestead
PERCONA_PASSWORD=secret
PERCONA_PORT=3306
PERCONA_ROOT_PASSWORD=root
PERCONA_ENTRYPOINT_INITDB=./percona/docker-entrypoint-initdb.d
2018-04-05 15:43:22 +02:00
### MSSQL #################################################
2017-04-20 20:34:42 +02:00
2017-03-26 01:28:04 +01:00
MSSQL_DATABASE=homestead
MSSQL_PASSWORD=yourStrong(!)Password
MSSQL_PORT=1433
2018-04-05 15:43:22 +02:00
### MARIADB ###############################################
2017-04-20 20:34:42 +02:00
MARIADB_DATABASE=default
MARIADB_USER=default
MARIADB_PASSWORD=secret
MARIADB_PORT=3306
MARIADB_ROOT_PASSWORD=root
MARIADB_ENTRYPOINT_INITDB=./mariadb/docker-entrypoint-initdb.d
2018-04-05 15:43:22 +02:00
### POSTGRES ##############################################
2017-04-20 20:34:42 +02:00
POSTGRES_DB=default
POSTGRES_USER=default
POSTGRES_PASSWORD=secret
POSTGRES_PORT=5432
POSTGRES_ENTRYPOINT_INITDB=./postgres/docker-entrypoint-initdb.d
2018-04-05 15:43:22 +02:00
### RABBITMQ ##############################################
2017-04-20 20:34:42 +02:00
RABBITMQ_NODE_HOST_PORT=5672
RABBITMQ_MANAGEMENT_HTTP_HOST_PORT=15672
RABBITMQ_MANAGEMENT_HTTPS_HOST_PORT=15671
RABBITMQ_DEFAULT_USER=guest
RABBITMQ_DEFAULT_PASS=guest
2018-04-05 15:43:22 +02:00
### ELASTICSEARCH #########################################
2017-04-20 20:34:42 +02:00
ELASTICSEARCH_HOST_HTTP_PORT=9200
ELASTICSEARCH_HOST_TRANSPORT_PORT=9300
2018-04-05 15:43:22 +02:00
### KIBANA ################################################
KIBANA_HTTP_PORT=5601
2018-04-05 15:43:22 +02:00
### MEMCACHED #############################################
2017-04-20 20:34:42 +02:00
MEMCACHED_HOST_PORT=11211
2018-04-05 15:43:22 +02:00
### BEANSTALKD CONSOLE ####################################
2017-04-20 20:34:42 +02:00
BEANSTALKD_CONSOLE_BUILD_PATH=./beanstalkd-console
BEANSTALKD_CONSOLE_CONTAINER_NAME=beanstalkd-console
BEANSTALKD_CONSOLE_HOST_PORT=2080
2018-04-05 15:43:22 +02:00
### BEANSTALKD ############################################
2017-04-20 20:34:42 +02:00
BEANSTALKD_HOST_PORT=11300
2018-04-05 15:43:22 +02:00
### SELENIUM ##############################################
2017-04-20 20:34:42 +02:00
SELENIUM_PORT=4444
2018-04-05 15:43:22 +02:00
### MINIO #################################################
2017-04-20 20:34:42 +02:00
MINIO_PORT=9000
2018-04-05 15:43:22 +02:00
### ADMINER ###############################################
2017-04-20 20:34:42 +02:00
ADM_PORT=8080
2017-05-25 10:44:51 +02:00
ADM_INSTALL_MSSQL=false
2018-04-05 15:43:22 +02:00
### PHP MY ADMIN ##########################################
2017-04-20 20:34:42 +02:00
# Accepted values: mariadb - mysql
PMA_DB_ENGINE=mysql
2017-04-20 20:34:42 +02:00
# Credentials/Port:
PMA_USER=default
PMA_PASSWORD=secret
PMA_ROOT_PASSWORD=secret
PMA_PORT=8080
2018-04-05 15:43:22 +02:00
### MAILDEV ###############################################
2017-10-14 20:01:16 +02:00
MAILDEV_HTTP_PORT=1080
MAILDEV_SMTP_PORT=25
2018-04-05 15:43:22 +02:00
### VARNISH ###############################################
2017-04-20 20:34:42 +02:00
VARNISH_CONFIG=/etc/varnish/default.vcl
VARNISH_PORT=8080
VARNISH_BACKEND_PORT=8888
VARNISHD_PARAMS=-p default_ttl=3600 -p default_grace=3600
2018-04-05 15:43:22 +02:00
### Varnish ###############################################
2017-04-20 20:34:42 +02:00
# Proxy 1
VARNISH_PROXY1_CACHE_SIZE=128m
VARNISH_PROXY1_BACKEND_HOST=workspace
VARNISH_PROXY1_SERVER=SERVER1
2017-04-20 20:34:42 +02:00
# Proxy 2
VARNISH_PROXY2_CACHE_SIZE=128m
VARNISH_PROXY2_BACKEND_HOST=workspace
VARNISH_PROXY2_SERVER=SERVER2
2018-04-05 15:43:22 +02:00
### HAPROXY ###############################################
2017-04-20 20:34:42 +02:00
2017-03-26 03:13:14 +02:00
HAPROXY_HOST_HTTP_PORT=8085
2018-04-05 15:43:22 +02:00
### JENKINS ###############################################
2017-04-20 20:34:42 +02:00
JENKINS_HOST_HTTP_PORT=8090
JENKINS_HOST_SLAVE_AGENT_PORT=50000
JENKINS_HOME=./jenkins/jenkins_home
2018-04-05 15:43:22 +02:00
### GRAFANA ###############################################
GRAFANA_PORT=3000
2018-04-05 15:43:22 +02:00
### BLACKFIRE #############################################
2017-04-22 21:05:52 +02:00
2018-04-05 15:43:22 +02:00
# Create an account on blackfire.io. Don't enable blackfire and xDebug at the same time. # visit https://blackfire.io/docs/24-days/06-installation#install-probe-debian for more info.
2017-04-22 21:05:52 +02:00
INSTALL_BLACKFIRE=false
BLACKFIRE_CLIENT_ID=<client_id>
BLACKFIRE_CLIENT_TOKEN=<client_token>
BLACKFIRE_SERVER_ID=<server_id>
BLACKFIRE_SERVER_TOKEN=<server_token>
2018-04-05 15:43:22 +02:00
### AEROSPIKE #############################################
AEROSPIKE_SERVICE_PORT=3000
AEROSPIKE_FABRIC_PORT=3001
AEROSPIKE_HEARTBEAT_PORT=3002
AEROSPIKE_INFO_PORT=3003
## Temp solution, this should be in the dockerfile
# for all versions "https://github.com/aerospike/aerospike-client-php/archive/master.tar.gz"
2018-06-08 18:15:09 +02:00
# for php 7.2 (using this branch until the support for 7.2 on master) "https://github.com/aerospike/aerospike-client-php/archive/7.2.0-release-candidate.tar.gz"
AEROSPIKE_PHP_REPOSITORY=https://github.com/aerospike/aerospike-client-php/archive/7.2.0-release-candidate.tar.gz
2018-04-05 15:43:22 +02:00
### RETHINKDB #############################################
RETHINKDB_PORT=8090
2018-04-05 15:43:22 +02:00
### MONGODB ###############################################
MONGODB_PORT=27017
2017-04-22 21:05:52 +02:00
2018-04-05 15:43:22 +02:00
### CADDY #################################################
CADDY_HOST_HTTP_PORT=80
CADDY_HOST_HTTPS_PORT=443
CADDY_HOST_LOG_PATH=./logs/caddy
CADDY_CUSTOM_CADDYFILE=./caddy/Caddyfile
2017-04-22 21:05:52 +02:00
2018-04-05 15:43:22 +02:00
### LARAVEL ECHO SERVER ###################################
2017-05-27 15:24:50 +02:00
LARAVEL_ECHO_SERVER_PORT=6001
2018-04-05 15:43:22 +02:00
### SOLR ##################################################
2018-02-11 11:36:57 +01:00
SOLR_VERSION=5.5
SOLR_PORT=8983
SOLR_DATAIMPORTHANDLER_MYSQL=false