diff --git a/env-example b/.env.example
similarity index 86%
rename from env-example
rename to .env.example
index 0d4ebe6c..fcf07853 100644
--- a/env-example
+++ b/.env.example
@@ -38,8 +38,8 @@ COMPOSE_PROJECT_NAME=laradock
### PHP Version ###########################################
# Select a PHP version of the Workspace and PHP-FPM containers (Does not apply to HHVM).
-# Accepted values: 7.4 - 7.3 - 7.2 - 7.1 - 7.0 - 5.6
-PHP_VERSION=7.3
+# Accepted values: 8.1 - 8.0 - 7.4 - 7.3 - 7.2 - 7.1 - 7.0 - 5.6
+PHP_VERSION=7.4
### Phalcon Version ###########################################
@@ -74,8 +74,8 @@ COMPOSE_CONVERT_WINDOWS_PATHS=1
# If you need to change the sources (i.e. to China), set CHANGE_SOURCE to true
CHANGE_SOURCE=false
-# Set CHANGE_SOURCE and UBUNTU_SOURCE option if you want to change the Ubuntu system sources.list file.
-UBUNTU_SOURCE=aliyun
+# Set ORACLE INSTANT_CLIENT_MIRROR option if you want to use Intranet improve download, you can download files first
+ORACLE_INSTANT_CLIENT_MIRROR=https://github.com/diogomascarenha/oracle-instantclient/raw/master/
### Docker Sync ###########################################
@@ -98,12 +98,17 @@ SHELL_OH_MY_ZSH_ALIASES=false
WORKSPACE_BASE_IMAGE_TAG_PREFIX=latest
WORKSPACE_COMPOSER_GLOBAL_INSTALL=true
-WORKSPACE_COMPOSER_AUTH=false
+WORKSPACE_COMPOSER_VERSION=2
+WORKSPACE_COMPOSER_AUTH_JSON=false
WORKSPACE_COMPOSER_REPO_PACKAGIST=
WORKSPACE_NVM_NODEJS_ORG_MIRROR=
WORKSPACE_INSTALL_NODE=true
WORKSPACE_NODE_VERSION=node
WORKSPACE_NPM_REGISTRY=
+WORKSPACE_NPM_FETCH_RETRIES=2
+WORKSPACE_NPM_FETCH_RETRY_FACTOR=10
+WORKSPACE_NPM_FETCH_RETRY_MINTIMEOUT=10000
+WORKSPACE_NPM_FETCH_RETRY_MAXTIMEOUT=60000
WORKSPACE_INSTALL_PNPM=false
WORKSPACE_INSTALL_YARN=true
WORKSPACE_YARN_VERSION=latest
@@ -116,6 +121,7 @@ WORKSPACE_INSTALL_WORKSPACE_SSH=false
WORKSPACE_INSTALL_SUBVERSION=false
WORKSPACE_INSTALL_BZ2=false
WORKSPACE_INSTALL_GMP=false
+WORKSPACE_INSTALL_GNUPG=false
WORKSPACE_INSTALL_XDEBUG=false
WORKSPACE_INSTALL_PCOV=false
WORKSPACE_INSTALL_PHPDBG=false
@@ -128,10 +134,11 @@ WORKSPACE_INSTALL_IMAP=false
WORKSPACE_INSTALL_MONGO=false
WORKSPACE_INSTALL_AMQP=false
WORKSPACE_INSTALL_CASSANDRA=false
+WORKSPACE_INSTALL_ZMQ=false
WORKSPACE_INSTALL_GEARMAN=false
WORKSPACE_INSTALL_MSSQL=false
WORKSPACE_INSTALL_DRUSH=false
-WORKSPACE_DRUSH_VERSION=8.1.17
+WORKSPACE_DRUSH_VERSION=8.4.6
WORKSPACE_INSTALL_DRUPAL_CONSOLE=false
WORKSPACE_INSTALL_WP_CLI=false
WORKSPACE_INSTALL_AEROSPIKE=false
@@ -139,6 +146,7 @@ WORKSPACE_INSTALL_OCI8=false
WORKSPACE_INSTALL_V8JS=false
WORKSPACE_INSTALL_LARAVEL_ENVOY=false
WORKSPACE_INSTALL_LARAVEL_INSTALLER=false
+WORKSPACE_INSTALL_XLSWRITER=false
WORKSPACE_INSTALL_DEPLOYER=false
WORKSPACE_INSTALL_PRESTISSIMO=false
WORKSPACE_INSTALL_LINUXBREW=false
@@ -150,6 +158,7 @@ WORKSPACE_INSTALL_POWERLINE=false
WORKSPACE_INSTALL_SUPERVISOR=false
WORKSPACE_INSTALL_IMAGE_OPTIMIZERS=false
WORKSPACE_INSTALL_IMAGEMAGICK=false
+WORKSPACE_IMAGEMAGICK_VERSION=latest
WORKSPACE_INSTALL_TERRAFORM=false
WORKSPACE_INSTALL_DUSK_DEPS=false
WORKSPACE_INSTALL_PG_CLIENT=false
@@ -158,7 +167,7 @@ WORKSPACE_INSTALL_SWOOLE=false
WORKSPACE_INSTALL_TAINT=false
WORKSPACE_INSTALL_LIBPNG=false
WORKSPACE_INSTALL_GRAPHVIZ=false
-WORKSPACE_INSTALL_IONCUBE=false
+WORKSPACE_INSTALL_IONCUBE=false # PHP 8.0 is not supported yet. Reference: https://forum.ioncube.com/viewtopic.php?t=4592
WORKSPACE_INSTALL_MYSQL_CLIENT=false
WORKSPACE_INSTALL_PING=false
WORKSPACE_INSTALL_SSHPASS=false
@@ -174,19 +183,28 @@ WORKSPACE_CHROME_DRIVER_VERSION=2.42
WORKSPACE_TIMEZONE=UTC
WORKSPACE_SSH_PORT=2222
WORKSPACE_INSTALL_FFMPEG=false
+WORKSPACE_INSTALL_AUDIOWAVEFORM=false
WORKSPACE_INSTALL_WKHTMLTOPDF=false
+WORKSPACE_WKHTMLTOPDF_VERSION=0.12.6-1
WORKSPACE_INSTALL_GNU_PARALLEL=false
WORKSPACE_INSTALL_AST=true
-WORKSPACE_AST_VERSION=1.0.3
+WORKSPACE_AST_VERSION=1.0.10
WORKSPACE_BROWSERSYNC_HOST_PORT=3000
WORKSPACE_BROWSERSYNC_UI_HOST_PORT=3001
WORKSPACE_VUE_CLI_SERVE_HOST_PORT=8080
WORKSPACE_VUE_CLI_UI_HOST_PORT=8001
WORKSPACE_ANGULAR_CLI_SERVE_HOST_PORT=4200
WORKSPACE_INSTALL_GIT_PROMPT=false
+WORKSPACE_INSTALL_DOCKER_CLIENT=false
WORKSPACE_INSTALL_LNAV=false
WORKSPACE_INSTALL_PROTOC=false
+WORKSPACE_INSTALL_PHPDECIMAL=false
+WORKSPACE_INSTALL_ZOOKEEPER=false
+WORKSPACE_INSTALL_SSDB=false
+WORKSPACE_INSTALL_TRADER=false
WORKSPACE_PROTOC_VERSION=latest
+WORKSPACE_INSTALL_MEMCACHED=true
+WORKSPACE_INSTALL_EVENT=false
### PHP_FPM ###############################################
@@ -195,12 +213,15 @@ PHP_FPM_INSTALL_BCMATH=true
PHP_FPM_INSTALL_MYSQLI=true
PHP_FPM_INSTALL_INTL=true
PHP_FPM_INSTALL_IMAGEMAGICK=true
+PHP_FPM_IMAGEMAGICK_VERSION=latest
PHP_FPM_INSTALL_OPCACHE=true
PHP_FPM_INSTALL_IMAGE_OPTIMIZERS=true
PHP_FPM_INSTALL_PHPREDIS=true
PHP_FPM_INSTALL_MEMCACHED=false
PHP_FPM_INSTALL_BZ2=false
+PHP_FPM_INSTALL_ENCHANT=false
PHP_FPM_INSTALL_GMP=false
+PHP_FPM_INSTALL_GNUPG=false
PHP_FPM_INSTALL_XDEBUG=false
PHP_FPM_INSTALL_PCOV=false
PHP_FPM_INSTALL_XHPROF=false
@@ -210,6 +231,7 @@ PHP_FPM_INSTALL_IMAP=false
PHP_FPM_INSTALL_MONGO=false
PHP_FPM_INSTALL_AMQP=false
PHP_FPM_INSTALL_CASSANDRA=false
+PHP_FPM_INSTALL_ZMQ=false
PHP_FPM_INSTALL_GEARMAN=false
PHP_FPM_INSTALL_MSSQL=false
PHP_FPM_INSTALL_SSH2=false
@@ -229,7 +251,7 @@ PHP_FPM_INSTALL_POSTGIS=false
PHP_FPM_INSTALL_PCNTL=false
PHP_FPM_INSTALL_CALENDAR=false
PHP_FPM_INSTALL_FAKETIME=false
-PHP_FPM_INSTALL_IONCUBE=false
+PHP_FPM_INSTALL_IONCUBE=false # PHP 8.0 is not supported yet. Reference: https://forum.ioncube.com/viewtopic.php?t=4592
PHP_FPM_INSTALL_RDKAFKA=false
PHP_FPM_INSTALL_GETTEXT=false
PHP_FPM_INSTALL_XMLRPC=false
@@ -243,23 +265,46 @@ PHP_FPM_INSTALL_PING=false
PHP_FPM_INSTALL_SSHPASS=false
PHP_FPM_INSTALL_MAILPARSE=false
PHP_FPM_INSTALL_WKHTMLTOPDF=false
+PHP_FPM_KHTMLTOPDF_VERSION=0.12.6-1
+PHP_FPM_INSTALL_XLSWRITER=false
+PHP_FPM_INSTALL_PHPDECIMAL=false
+PHP_FPM_INSTALL_ZOOKEEPER=false
+PHP_FPM_INSTALL_SSDB=false
+PHP_FPM_INSTALL_TRADER=false
PHP_FPM_FFMPEG=false
+PHP_FPM_AUDIOWAVEFORM=false
PHP_FPM_ADDITIONAL_LOCALES="en_US.UTF-8 es_ES.UTF-8 fr_FR.UTF-8"
+PHP_FPM_INSTALL_DOCKER_CLIENT=false
PHP_FPM_DEFAULT_LOCALE=POSIX
+PHP_FPM_XDEBUG_PORT=9003
+PHP_FPM_INSTALL_EVENT=false
PHP_FPM_PUID=1000
PHP_FPM_PGID=1000
+### PHP_FPM_NEW_RELIC #####################################
+
+PHP_FPM_NEW_RELIC=false
+PHP_FPM_NEW_RELIC_KEY=0000
+PHP_FPM_NEW_RELIC_APP_NAME=app_name
+
### PHP_WORKER ############################################
PHP_WORKER_INSTALL_BZ2=false
PHP_WORKER_INSTALL_GD=false
+PHP_WORKER_INSTALL_XLSWRITER=false
PHP_WORKER_INSTALL_IMAGEMAGICK=false
+PHP_WORKER_IMAGEMAGICK_VERSION=latest
PHP_WORKER_INSTALL_GMP=false
+PHP_WORKER_INSTALL_GNUPG=false
+PHP_WORKER_INSTALL_LDAP=false
PHP_WORKER_INSTALL_PGSQL=false
+PHP_WORKER_INSTALL_MONGO=false
PHP_WORKER_INSTALL_BCMATH=false
+PHP_WORKER_INSTALL_MEMCACHED=false
# PHP_WORKER_INSTALL_OCI8 Does not work in php5.6 version
PHP_WORKER_INSTALL_OCI8=false
+PHP_WORKER_INSTALL_MSSQL=false
PHP_WORKER_INSTALL_PHALCON=false
PHP_WORKER_INSTALL_SOAP=false
PHP_WORKER_INSTALL_ZIP_ARCHIVE=false
@@ -269,11 +314,14 @@ PHP_WORKER_INSTALL_GHOSTSCRIPT=false
PHP_WORKER_INSTALL_SWOOLE=false
PHP_WORKER_INSTALL_TAINT=false
PHP_WORKER_INSTALL_FFMPEG=false
+PHP_WORKER_INSTALL_AUDIOWAVEFORM=false
PHP_WORKER_INSTALL_CASSANDRA=false
PHP_WORKER_INSTALL_GEARMAN=false
PHP_WORKER_INSTALL_REDIS=false
PHP_WORKER_INSTALL_IMAP=false
PHP_WORKER_INSTALL_XMLRPC=false
+PHP_WORKER_INSTALL_SSDB=false
+PHP_WORKER_INSTALL_EVENT=false
PHP_WORKER_PUID=1000
PHP_WORKER_PGID=1000
@@ -288,18 +336,33 @@ NGINX_PHP_UPSTREAM_CONTAINER=php-fpm
NGINX_PHP_UPSTREAM_PORT=9000
NGINX_SSL_PATH=./nginx/ssl/
+### OpenResty #################################################
+
+OPENRESTY_HOST_HTTP_PORT=80
+OPENRESTY_HOST_HTTPS_PORT=443
+OPENRESTY_HOST_LOG_PATH=./logs/openresty/
+OPENRESTY_SITES_PATH=./openresty/sites/
+OPENRESTY_PHP_UPSTREAM_CONTAINER=php-fpm
+OPENRESTY_PHP_UPSTREAM_PORT=9000
+OPENRESTY_SSL_PATH=./openresty/ssl/
+
### LARAVEL_HORIZON ################################################
LARAVEL_HORIZON_INSTALL_BZ2=false
LARAVEL_HORIZON_INSTALL_GD=false
LARAVEL_HORIZON_INSTALL_GMP=false
+LARAVEL_HORIZON_INSTALL_GNUPG=false
+LARAVEL_HORIZON_INSTALL_LDAP=false
LARAVEL_HORIZON_INSTALL_IMAGEMAGICK=false
+LARAVEL_HORIZON_IMAGEMAGICK_VERSION=latest
LARAVEL_HORIZON_INSTALL_SOCKETS=false
LARAVEL_HORIZON_INSTALL_YAML=false
LARAVEL_HORIZON_INSTALL_ZIP_ARCHIVE=false
-LARAVEL_HORIZON_INSTALL_PHPREDIS=true
+LARAVEL_HORIZON_INSTALL_PHPREDIS=false
LARAVEL_HORIZON_INSTALL_MONGO=false
+LARAVEL_HORIZON_INSTALL_CASSANDRA=false
LARAVEL_HORIZON_INSTALL_FFMPEG=false
+LARAVEL_HORIZON_INSTALL_AUDIOWAVEFORM=false
LARAVEL_HORIZON_PGID=1000
LARAVEL_HORIZON_PUID=1000
@@ -313,6 +376,7 @@ APACHE_PHP_UPSTREAM_CONTAINER=php-fpm
APACHE_PHP_UPSTREAM_PORT=9000
APACHE_PHP_UPSTREAM_TIMEOUT=60
APACHE_DOCUMENT_ROOT=/var/www/
+APACHE_SSL_PATH=./apache2/ssl/
APACHE_INSTALL_HTTP2=false
### MYSQL #################################################
@@ -325,14 +389,33 @@ MYSQL_PORT=3306
MYSQL_ROOT_PASSWORD=root
MYSQL_ENTRYPOINT_INITDB=./mysql/docker-entrypoint-initdb.d
+### CLICKHOUSE #################################################
+
+CLICKHOUSE_VERSION=22.2.2.1
+CLICKHOUSE_GOSU_VERSION=1.14
+CLICKHOUSE_CUSTOM_CONFIG=./clickhouse/config.xml
+CLICKHOUSE_USERS_CUSTOM_CONFIG=./clickhouse/users.xml
+CLICKHOUSE_USER=default
+CLICKHOUSE_PASSWORD=HAHA
+CLICKHOUSE_HTTP_PORT=8123
+CLICKHOUSE_CLIENT_PORT=9000
+CLICKHOUSE_NATIVE_PORT=9009
+CLICKHOUSE_ENTRYPOINT_INITDB=./clickhouse/docker-entrypoint-initdb.d
+CLICKHOUSE_HOST_LOG_PATH=./logs/clickhouse
+
### REDIS #################################################
REDIS_PORT=6379
+REDIS_PASSWORD=secret_redis
### REDIS CLUSTER #########################################
REDIS_CLUSTER_PORT_RANGE=7000-7005
+### SSDB #################################################
+
+SSDB_PORT=16801
+
### ZooKeeper #############################################
ZOOKEEPER_PORT=2181
@@ -371,6 +454,11 @@ POSTGRES_PASSWORD=secret
POSTGRES_PORT=5432
POSTGRES_ENTRYPOINT_INITDB=./postgres/docker-entrypoint-initdb.d
+### POSTGRES-POSTGIS ##############################################
+
+POSTGIS_VERSION=latest
+POSTGIS_INSTALL_PGSQL_HTTP_FOR_POSTGIS13=false
+
### SQS ##############################################
SQS_NODE_HOST_PORT=9324
@@ -381,8 +469,16 @@ SQS_MANAGEMENT_HTTP_HOST_PORT=9325
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
+RABBITMQ_WEB_STOMP_HOST_PORT=15674
+
+### MERCURE ##############################################
+
+MERCURE_NODE_HOST_HTTP_PORT=1337
+MERCURE_NODE_HOST_HTTPS_PORT=1338
+MERCURE_PUBLISHER_JWT_KEY=secret
+MERCURE_SUBSCRIBER_JWT_KEY=another_secret
+MERCURE_DEBUG=debug
+MERCURE_SERVER_NAME=:80
### MEILISEARCH ###########################################
@@ -423,6 +519,9 @@ SELENIUM_PORT=4444
### MINIO #################################################
MINIO_PORT=9000
+MINIO_CONSOLE_PORT=9001
+MINIO_ROOT_USER=laradock
+MINIO_ROOT_PASSWORD=laradock
### ADMINER ###############################################
@@ -444,6 +543,9 @@ PMA_USER=default
PMA_PASSWORD=secret
PMA_ROOT_PASSWORD=secret
PMA_PORT=8081
+PMA_MAX_EXECUTION_TIME=600
+PMA_MEMORY_LIMIT=256M
+PMA_UPLOAD_LIMIT=2G
### MAILDEV ###############################################
@@ -529,6 +631,8 @@ RETHINKDB_PORT=8090
### MONGODB ###############################################
MONGODB_PORT=27017
+MONGO_USERNAME=root
+MONGO_PASSWORD=example
### CADDY #################################################
@@ -798,7 +902,7 @@ TRAEFIK_HOST_HTTP_PORT=80
TRAEFIK_HOST_HTTPS_PORT=443
TRAEFIK_DASHBOARD_PORT=8888
# basic authentication for traefik dashboard username: admin password:admin
-TRAEFIK_DASHBOARD_USER=admin:$2y$10$lXaL3lj6raFic6rFqr2.lOBoCudAIhB6zyoqObNg290UFppiUzTTi
+TRAEFIK_DASHBOARD_USER='admin:$2y$10$lXaL3lj6raFic6rFqr2.lOBoCudAIhB6zyoqObNg290UFppiUzTTi'
ACME_DOMAIN=example.org
ACME_EMAIL=email@example.org
@@ -824,6 +928,15 @@ PGADMIN_PORT=5050
PGADMIN_DEFAULT_EMAIL=pgadmin4@pgadmin.org
PGADMIN_DEFAULT_PASSWORD=admin
+### SWAGGER EDITOR ###########################################
+
+SWAGGER_EDITOR_PORT=5151
+
+### SWAGGER UI ###############################################
+
+SWAGGER_API_URL=http://generator.swagger.io/api/swagger.json
+SWAGGER_UI_PORT=5555
+
### SONARQUBE ################################################
## docker-compose up -d sonarqube
## (If you encounter a database error)
@@ -924,3 +1037,16 @@ GEARMAN_MYSQL_TABLE=gearman_queue
### ELK Stack ##################################################
ELK_VERSION=7.9.1
+
+### Tarantool ##################################################
+TARANTOOL_PORT=3301
+TARANTOOL_ADMIN_PORT=8002
+
+### NATS ##################################################
+NATS_CLIENT_PORT=4222
+NATS_MONITORING_PORT=6222
+NATS_ROUTE_PORT=8222
+
+### SOKETI ##################################################
+SOKETI_PORT=6001
+SOKETI_METRICS_SERVER_PORT=9601
diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 00000000..dfdb8b77
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1 @@
+*.sh text eol=lf
diff --git a/.github/home-page-images/custom-sponsors/AU.png b/.github/home-page-images/custom-sponsors/AU.png
new file mode 100644
index 00000000..b95697de
Binary files /dev/null and b/.github/home-page-images/custom-sponsors/AU.png differ
diff --git a/.github/home-page-images/custom-sponsors/CA.png b/.github/home-page-images/custom-sponsors/CA.png
new file mode 100644
index 00000000..d0506fde
Binary files /dev/null and b/.github/home-page-images/custom-sponsors/CA.png differ
diff --git a/.github/home-page-images/custom-sponsors/PLD.png b/.github/home-page-images/custom-sponsors/PLD.png
new file mode 100644
index 00000000..f05dda2e
Binary files /dev/null and b/.github/home-page-images/custom-sponsors/PLD.png differ
diff --git a/.github/home-page-images/custom-sponsors/VeePN.png b/.github/home-page-images/custom-sponsors/VeePN.png
new file mode 100644
index 00000000..efad065d
Binary files /dev/null and b/.github/home-page-images/custom-sponsors/VeePN.png differ
diff --git a/.github/home-page-images/custom-sponsors/casinopilotti.png b/.github/home-page-images/custom-sponsors/casinopilotti.png
new file mode 100644
index 00000000..09f3bd4e
Binary files /dev/null and b/.github/home-page-images/custom-sponsors/casinopilotti.png differ
diff --git a/.github/workflows/build-deploy-docs.yml b/.github/workflows/build-deploy-docs.yml
new file mode 100644
index 00000000..03bad63f
--- /dev/null
+++ b/.github/workflows/build-deploy-docs.yml
@@ -0,0 +1,39 @@
+name: Build Deploy Docs
+
+on:
+ push:
+ branches:
+ - master
+ paths:
+ - '.github/workflows/build-deploy-docs.yml'
+ - 'DOCUMENTATION/**'
+
+jobs:
+ build-deploy-docs:
+ if: github.repository == 'laradock/laradock'
+ runs-on: ubuntu-20.04
+ concurrency:
+ group: ${{ github.workflow }}-${{ github.ref }}
+ defaults:
+ run:
+ working-directory: ./DOCUMENTATION
+ steps:
+ - name: Checkout Source Code
+ uses: actions/checkout@v2
+
+ - name: Setup Hugo
+ uses: peaceiris/actions-hugo@v2
+ with:
+ hugo-version: '0.55.0'
+ env:
+ ACTIONS_ALLOW_UNSECURE_COMMANDS: true
+
+ - name: Build Hugo Site
+ run: hugo --minify
+
+ - name: Deploy Hugo Site to Github Pages
+ uses: peaceiris/actions-gh-pages@v3
+ with:
+ github_token: ${{ secrets.GITHUB_TOKEN }}
+ publish_branch: gh-pages
+ publish_dir: ./docs
diff --git a/.github/workflows/main-ci.yml b/.github/workflows/main-ci.yml
index e01d283a..7d59bf14 100644
--- a/.github/workflows/main-ci.yml
+++ b/.github/workflows/main-ci.yml
@@ -1,19 +1,68 @@
name: CI
-on: [push, pull_request]
+on:
+ push:
+ branches: '**'
+ tags: '**'
+ paths-ignore:
+ - '.github/workflows/build-deploy-docs.yml'
+ - 'DOCUMENTATION/**'
+ pull_request:
+ schedule:
+ - cron: '0 0 * * 0'
jobs:
- build:
+ build-php:
+ # Don't trigger on schedule event when in a fork
+ if: github.event_name != 'schedule' || (github.event_name == 'schedule' && github.repository == 'laradock/laradock')
runs-on: ubuntu-latest
strategy:
+ fail-fast: false
matrix:
- php_version: ["7.1", "7.2", "7.3", "7.4"]
- service: [php-fpm, php-worker, workspace, laravel-horizon]
+ php_version: [ "5.6", "7.0", "7.1", "7.2", "7.3", "7.4", "8.0", "8.1" ]
+ service: [ php-fpm, php-worker, workspace ]
steps:
- - uses: actions/checkout@v2
- - name: Build the Docker image
- env:
- PHP_VERSION: ${{ matrix.php_version }}
- run: |
- cp env-example .env
- docker-compose build ${{ matrix.service }}
+ - uses: actions/checkout@v2
+ - name: Build the Docker image
+ env:
+ PHP_VERSION: ${{ matrix.php_version }}
+ run: |
+ set -eux
+ cp .env.example .env
+ sed -i -- 's/=false/=true/g' .env
+ sed -i -- 's/CHANGE_SOURCE=true/CHANGE_SOURCE=false/g' .env
+ sed -i -- 's/PHPDBG=true/PHPDBG=false/g' .env
+ sed -i -- 's/CASSANDRA=true/CASSANDRA=false/g' .env
+ sed -i -- 's/GEARMAN=true/GEARMAN=false/g' .env
+ sed -i -- 's/AEROSPIKE=true/AEROSPIKE=false/g' .env
+ sed -i -- 's/PHALCON=true/PHALCON=false/g' .env
+ sed -i -- 's/RDKAFKA=true/RDKAFKA=false/g' .env
+ sed -i -- 's/MAILPARSE=true/MAILPARSE=false/g' .env
+ sed -i -- 's/OCI8=true/OCI8=false/g' .env
+ sed -i -- 's/V8JS=true/V8JS=false/g' .env
+ sed -i -- 's/AUDIOWAVEFORM=true/AUDIOWAVEFORM=false/g' .env
+ sed -i -- 's/SSDB=true/SSDB=false/g' .env
+ sed -i -- 's/ENCHANT=true/ENCHANT=false/g' .env
+ sed -i -- 's/PG_CLIENT=true/PG_CLIENT=false/g' .env
+ sed -i -- 's/MSSQL=true/MSSQL=false/g' .env
+ docker-compose build ${{ matrix.service }}
+ docker-compose up -d --no-deps -- ${{ matrix.service }}
+ docker-compose exec -T -- ${{ matrix.service }} php -m
+ docker-compose down
+
+ build-other:
+ # Don't trigger on schedule event when in a fork
+ if: github.event_name != 'schedule' || (github.event_name == 'schedule' && github.repository == 'laradock/laradock')
+ runs-on: ubuntu-latest
+ strategy:
+ fail-fast: false
+ matrix:
+ service: [ 'nginx', 'redis', 'mysql', 'mariadb', 'percona', 'minio', 'mongo' ]
+ steps:
+ - uses: actions/checkout@v2
+ - name: Build the Docker image
+ run: |
+ cp .env.example .env
+ sed -i -- 's/=false/=true/g' .env
+ sed -i -- 's/CHANGE_SOURCE=true/CHANGE_SOURCE=false/g' .env
+ docker-compose build ${{ matrix.service }}
diff --git a/.gitignore b/.gitignore
index 45d4e72a..d2c5d26e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -13,6 +13,11 @@
/nginx/ssl/*.key
/nginx/ssl/*.csr
+/apache2/ssl/*.crt
+/apache2/ssl/*.key
+/apache2/ssl/*.csr
+/apache2/ssl/*.org
+
/.devcontainer/*
!/.devcontainer/devcontainer.example.json
!/.devcontainer/docker-compose.extend-example.yml
diff --git a/.travis.yml b/.travis.yml
index 4b681054..b34ef2ae 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -7,20 +7,6 @@ env:
matrix:
- HUGO_VERSION=0.20.2
- - PHP_VERSION=5.6 BUILD_SERVICE=workspace
- - PHP_VERSION=7.0 BUILD_SERVICE=workspace
- - PHP_VERSION=7.1 BUILD_SERVICE=workspace
- - PHP_VERSION=7.2 BUILD_SERVICE=workspace
- - PHP_VERSION=7.3 BUILD_SERVICE=workspace
- - PHP_VERSION=7.4 BUILD_SERVICE=workspace
-
- - PHP_VERSION=5.6 BUILD_SERVICE=php-fpm
- - PHP_VERSION=7.0 BUILD_SERVICE=php-fpm
- - PHP_VERSION=7.1 BUILD_SERVICE=php-fpm
- - PHP_VERSION=7.2 BUILD_SERVICE=php-fpm
- - PHP_VERSION=7.3 BUILD_SERVICE=php-fpm
- - PHP_VERSION=7.4 BUILD_SERVICE=php-fpm
-
- PHP_VERSION=hhvm BUILD_SERVICE=hhvm
# - PHP_VERSION=5.6 BUILD_SERVICE=php-worker
@@ -29,12 +15,16 @@ env:
- PHP_VERSION=7.2 BUILD_SERVICE=php-worker
- PHP_VERSION=7.3 BUILD_SERVICE=php-worker
- PHP_VERSION=7.4 BUILD_SERVICE=php-worker
+ - PHP_VERSION=8.0 BUILD_SERVICE=php-worker
+ - PHP_VERSION=8.1 BUILD_SERVICE=php-worker
- PHP_VERSION=7.0 BUILD_SERVICE=laravel-horizon
- PHP_VERSION=7.1 BUILD_SERVICE=laravel-horizon
- PHP_VERSION=7.2 BUILD_SERVICE=laravel-horizon
- PHP_VERSION=7.3 BUILD_SERVICE=laravel-horizon
- PHP_VERSION=7.4 BUILD_SERVICE=laravel-horizon
+ - PHP_VERSION=8.0 BUILD_SERVICE=laravel-horizon
+ - PHP_VERSION=8.1 BUILD_SERVICE=laravel-horizon
- PHP_VERSION=NA BUILD_SERVICE=solr
- PHP_VERSION=NA BUILD_SERVICE="mssql rethinkdb aerospike"
diff --git a/.vscode/extensions.json b/.vscode/extensions.json
new file mode 100644
index 00000000..549ed861
--- /dev/null
+++ b/.vscode/extensions.json
@@ -0,0 +1,6 @@
+{
+ "recommendations": [
+ "editorconfig.editorconfig",
+ "mikestead.dotenv"
+ ]
+}
diff --git a/.vscode/settings.json b/.vscode/settings.json
index 1166680a..3f259ad1 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -1,6 +1,6 @@
{
"files.associations": {
- "env-example": "dotenv",
+ ".env.example": "dotenv",
"Dockerfile-*": "dockerfile"
}
}
diff --git a/DOCUMENTATION/content/contributing/index.md b/DOCUMENTATION/content/contributing/index.md
index 4a39b2de..b2d05d61 100644
--- a/DOCUMENTATION/content/contributing/index.md
+++ b/DOCUMENTATION/content/contributing/index.md
@@ -81,7 +81,7 @@ To update the sidebar or add a new section to it, you can edit this `DOCUMENTATI
* Make sure you follow the same code/comments style.
-* Add the environment variables to the `env-example` if you have any.
+* Add the environment variables to the `.env.example` if you have any.
* **MOST IMPORTANTLY** update the `Documentation`, add as much information.
diff --git a/DOCUMENTATION/content/documentation/index.md b/DOCUMENTATION/content/documentation/index.md
index cecfa396..83ddacd3 100644
--- a/DOCUMENTATION/content/documentation/index.md
+++ b/DOCUMENTATION/content/documentation/index.md
@@ -196,6 +196,7 @@ More [options](https://docs.docker.com/compose/reference/logs/)
+
@@ -206,11 +207,14 @@ More [options](https://docs.docker.com/compose/reference/logs/)
## Install PHP Extensions
-Before installing PHP extensions, you have to decide first whether you need `FPM` or `CLI`, because each of them has it's own different container, if you need it for both, you have to edit both containers.
+You can set extensions to install in the .env file's corresponding section (`PHP_FPM`, `WORKSPACE`, `PHP_WORKER`),
+just change the `false` to `true` at the desired extension's line.
+After this you have to rebuild the container with the `--no-cache` option.
+
+```bash
+docker build --no-cache {container-name}
+```
-The PHP-FPM extensions should be installed in `php-fpm/Dockerfile-XX`. *(replace XX with your default PHP version number)*.
-
-The PHP-CLI extensions should be installed in `workspace/Dockerfile`.
@@ -218,9 +222,11 @@ The PHP-CLI extensions should be installed in `workspace/Dockerfile`.
+
## Change the (PHP-FPM) Version
-By default the latest stable PHP version is configured to run.
+
+By default, the latest stable PHP version is configured to run.
>The PHP-FPM is responsible for serving your application code, you don't have to change the PHP-CLI version if you are planning to run your application on different PHP-FPM version.
@@ -275,6 +281,9 @@ docker-compose build workspace
```
+
+Change the PHP-CLI Version
+
## Install xDebug
@@ -283,11 +292,11 @@ docker-compose build workspace
a) open the `.env` file
-b) search for the `WORKSPACE_INSTALL_XDEBUG` argument under the Workspace Container
+b) search for the `WORKSPACE_INSTALL_XDEBUG` argument under the Workspace settings
c) set it to `true`
-d) search for the `PHP_FPM_INSTALL_XDEBUG` argument under the PHP-FPM Container
+d) search for the `PHP_FPM_INSTALL_XDEBUG` argument under the PHP-FPM settings
e) set it to `true`
@@ -295,6 +304,21 @@ e) set it to `true`
For information on how to configure xDebug with your IDE and work it out, check this [Repository](https://github.com/LarryEitel/laravel-laradock-phpstorm) or follow up on the next section if you use linux and PhpStorm.
+```
+###########################################################
+################ Containers Customization #################
+###########################################################
+
+### WORKSPACE #############################################
+...
+WORKSPACE_INSTALL_XDEBUG=true
+...
+### PHP_FPM ###############################################
+...
+PHP_FPM_INSTALL_XDEBUG=true
+...
+```
+
@@ -453,11 +477,11 @@ docker-compose run --user=root --rm sonarqube chown sonarqube:sonarqube /opt/son
## Prepare Laradock for Production
-It's recommended for production to create a custom `docker-compose.yml` file, for example `production-docker-compose.yml`
+It's recommended for production to create a custom `docker-compose.yml` file, for example, `production-docker-compose.yml`
-In your new production `docker-compose.yml` file you should contain only the containers you are planning to run in production (usage example: `docker-compose -f production-docker-compose.yml up -d nginx mysql redis ...`).
+In your new production `docker-compose.yml` file, you should include only the containers you are planning to run in production (usage example: `docker-compose -f production-docker-compose.yml up -d nginx mysql redis ...`).
-Note: The Database (MySQL/MariaDB/...) ports should not be forwarded on production, because Docker will automatically publish the port on the host, which is quite insecure, unless specifically told not to. So make sure to remove these lines:
+Note: The Database (MySQL/MariaDB/...) ports should not be forwarded on production, because Docker will automatically publish the port on the host unless specifically told not to. Forwarding these ports on production is quite insecure - so make sure to remove these lines:
```
ports:
@@ -576,7 +600,7 @@ vue ui
## Run Laravel Queue Worker
-1 - Create supervisor configuration file (for ex., named `laravel-worker.conf`) for Laravel Queue Worker in `php-worker/supervisord.d/` by simply copy from `laravel-worker.conf.example`
+1 - Create a suitable configuration file (for example named `laravel-worker.conf`) for Laravel Queue Worker in `php-worker/supervisord.d/` by simply copying from `laravel-worker.conf.example`
2 - Start everything up
@@ -594,29 +618,20 @@ docker-compose up -d php-worker
## Run Laravel Scheduler
Laradock provides 2 ways to run Laravel Scheduler
-1 - Using cron in workspace container. Most of the time, when you start Laradock, it'll automatically start workspace container with cron inside, along with setting to run `schedule:run` command every minute.
-
-2 - Using Supervisord in php-worker to run `schedule:run`. This way is suggested when you don't want to start workspace in production environment.
-
-a) Comment out cron setting in workspace container, file `workspace/crontab/laradock`
-
-```bash
-# * * * * * laradock /usr/bin/php /var/www/artisan schedule:run >> /dev/null 2>&1
-```
-
-b) Create supervisor configuration file (for ex., named `laravel-scheduler.conf`) for Laravel Scheduler in `php-worker/supervisord.d/` by simply copy from `laravel-scheduler.conf.example`
-
-c) Start php-worker container
-
-```bash
-docker-compose up -d php-worker
-```
-
-
-
-
-
+1. Using cron in workspace container.
+Most of the time, when you start Laradock, it'll automatically start workspace container with cron inside, along with setting to run `schedule:run` command every minute.
+2. Using Supervisord in php-worker to run `schedule:run`.
+This way is suggested when you don't want to start workspace in production environment.
+ * Comment out cron setting in workspace container, file `workspace/crontab/laradock`
+ ```bash
+ # * * * * * laradock /usr/bin/php /var/www/artisan schedule:run >> /dev/null 2>&1
+ ```
+ * Create a suitable configuration file (for ex., named `laravel-scheduler.conf`) for Laravel Scheduler in `php-worker/supervisord.d/` by simply copying from `laravel-scheduler.conf.example`
+ * Start php-worker container
+ ```bash
+ docker-compose up -d php-worker
+ ```
## Use Browsersync
@@ -649,11 +664,11 @@ mix.browserSync({
## Use Mailu
-1 - You need register a domain.
+1. You will need a registered domain.
-2 - Required RECAPTCHA for signup email [HERE](https://www.google.com/recaptcha/admin)
+2. Required RECAPTCHA for signup email [HERE](https://www.google.com/recaptcha/admin)
-2 - modify following environment variable in `.env` file
+3. Modify following environment variable in `.env` file
```
MAILU_RECAPTCHA_PUBLIC_KEY=
@@ -662,36 +677,32 @@ MAILU_DOMAIN=laradock.io
MAILU_HOSTNAMES=mail.laradock.io
```
-2 - Open your browser and visit `http://YOUR_DOMAIN`.
-
-
+4. Open your browser and visit `http://YOUR_DOMAIN`.
## Use NetData
-1 - Run the NetData Container (`netdata`) with the `docker-compose up` command. Example:
+1. Run the NetData Container (`netdata`) with the `docker-compose up` command. Example:
```bash
docker-compose up -d netdata
```
-2 - Open your browser and visit the localhost on port **19999**: `http://localhost:19999`
+2. Open your browser and visit the localhost on port **19999**: `http://localhost:19999`
## Use Metabase
-1 - Run the Metabase Container (`metbase`) with the `docker-compose up` command. Example:
+1. Run the Metabase Container (`metabase`) with the `docker-compose up` command. Example:
+ ```bash
+ docker-compose up -d metabase
+ ```
+2. Open your browser and visit the localhost on port **3030**: `http://localhost:3030`
-```bash
-docker-compose up -d metabase
-```
-
-2 - Open your browser and visit the localhost on port **3030**: `http://localhost:3030`
-
-3 - You can use environment to configure Metabase container. See docs in: [Running Metabase on Docker](https://www.metabase.com/docs/v0.12.0/operations-guide/running-metabase-on-docker.html)
+3. You can use environment to configure Metabase container. See docs in: [Running Metabase on Docker](https://www.metabase.com/docs/v0.12.0/operations-guide/running-metabase-on-docker.html)
@@ -730,52 +741,40 @@ You may wanna change the default security configuration, so go to `http://localh
## Use Redis
-1 - First make sure you run the Redis Container (`redis`) with the `docker-compose up` command.
+1. First make sure you run the Redis Container (`redis`) with the `docker-compose up` command.
+ ```bash
+ docker-compose up -d redis
+ ```
+ > To execute redis commands, enter the redis container first `docker-compose exec redis bash` then enter the `redis-cli`.
-```bash
-docker-compose up -d redis
-```
-
-> To execute redis commands, enter the redis container first `docker-compose exec redis bash` then enter the `redis-cli`.
-
-2 - Open your Laravel's `.env` file and set the `REDIS_HOST` to `redis`
-
-```env
-REDIS_HOST=redis
-```
-
-If you're using Laravel, and you don't find the `REDIS_HOST` variable in your `.env` file. Go to the database configuration file `config/database.php` and replace the default `127.0.0.1` IP with `redis` for Redis like this:
-
-```php
-'redis' => [
- 'cluster' => false,
- 'default' => [
- 'host' => 'redis',
- 'port' => 6379,
- 'database' => 0,
+2. Open your Laravel's `.env` file and set the `REDIS_HOST` to `redis`
+ ```env
+ REDIS_HOST=redis
+ ```
+ If you're using Laravel, and you don't find the `REDIS_HOST` variable in your `.env` file. Go to the database configuration file `config/database.php` and replace the default `127.0.0.1` IP with `redis` for Redis like this:
+ ```php
+ 'redis' => [
+ 'cluster' => false,
+ 'default' => [
+ 'host' => 'redis',
+ 'port' => 6379,
+ 'database' => 0,
+ ],
],
-],
-```
-
-3 - To enable Redis Caching and/or for Sessions Management. Also from the `.env` file set `CACHE_DRIVER` and `SESSION_DRIVER` to `redis` instead of the default `file`.
-
-```env
-CACHE_DRIVER=redis
-SESSION_DRIVER=redis
-```
-
-4 - Finally make sure you have the `predis/predis` package `(~1.0)` installed via Composer:
-
-```bash
-composer require predis/predis:^1.0
-```
-
-5 - You can manually test it from Laravel with this code:
-
-```php
-\Cache::store('redis')->put('Laradock', 'Awesome', 10);
-```
-
+ ```
+3. To enable Redis Caching and/or for Sessions Management. Also from the `.env` file set `CACHE_DRIVER` and `SESSION_DRIVER` to `redis` instead of the default `file`.
+ ```env
+ CACHE_DRIVER=redis
+ SESSION_DRIVER=redis
+ ```
+4. Finally make sure you have the `predis/predis` package `(~1.0)` installed via Composer:
+ ```bash
+ composer require predis/predis:^1.0
+ ```
+5. You can manually test it from Laravel with this code:
+ ```php
+ \Cache::store('redis')->put('Laradock', 'Awesome', 10);
+ ```
@@ -784,36 +783,30 @@ composer require predis/predis:^1.0
## Use Redis Cluster
-
-1 - First make sure you run the Redis-Cluster Container (`redis-cluster`) with the `docker-compose up` command.
-
-```bash
-docker-compose up -d redis-cluster
-```
-
-2 - Open your Laravel's `config/database.php` and set the redis cluster configuration. Below is example configuration with phpredis.
-
-Read the [Laravel official documentation](https://laravel.com/docs/5.7/redis#configuration) for more details.
-
-```php
-'redis' => [
- 'client' => 'phpredis',
- 'options' => [
- 'cluster' => 'redis',
- ],
- 'clusters' => [
- 'default' => [
- [
- 'host' => 'redis-cluster',
- 'password' => null,
- 'port' => 7000,
- 'database' => 0,
+1. First make sure you run the Redis-Cluster Container (`redis-cluster`) with the `docker-compose up` command.
+ ```bash
+ docker-compose up -d redis-cluster
+ ```
+2. Open your Laravel's `config/database.php` and set the redis cluster configuration. Below is example configuration with phpredis.
+ Read the [Laravel official documentation](https://laravel.com/docs/5.7/redis#configuration) for more details.
+ ```php
+ 'redis' => [
+ 'client' => 'phpredis',
+ 'options' => [
+ 'cluster' => 'redis',
+ ],
+ 'clusters' => [
+ 'default' => [
+ [
+ 'host' => 'redis-cluster',
+ 'password' => null,
+ 'port' => 7000,
+ 'database' => 0,
+ ],
],
],
],
-],
-```
-
+ ```
@@ -891,51 +884,38 @@ run from any cli:
`curl -X PURGE https://yourwebsite.com/`.
## Use Mongo
-
-1 - First install `mongo` in the Workspace and the PHP-FPM Containers:
-
-a) open the `.env` file
-
-b) search for the `WORKSPACE_INSTALL_MONGO` argument under the Workspace Container
-
-c) set it to `true`
-
-d) search for the `PHP_FPM_INSTALL_MONGO` argument under the PHP-FPM Container
-
-e) set it to `true`
-
-2 - Re-build the containers `docker-compose build workspace php-fpm`
-
-
-
-3 - Run the MongoDB Container (`mongo`) with the `docker-compose up` command.
-
-```bash
-docker-compose up -d mongo
-```
-
-
-4 - Add the MongoDB configurations to the `config/database.php` configuration file:
-
-```php
-'connections' => [
-
- 'mongodb' => [
- 'driver' => 'mongodb',
- 'host' => env('DB_HOST', 'localhost'),
- 'port' => env('DB_PORT', 27017),
- 'database' => env('DB_DATABASE', 'database'),
- 'username' => '',
- 'password' => '',
- 'options' => [
- 'database' => '',
- ]
+1. First install `mongo` in the Workspace and the PHP-FPM Containers:
+ * open the `.env` file
+ * search for the `WORKSPACE_INSTALL_MONGO` argument under the Workspace Container
+ * set it to `true`
+ * search for the `PHP_FPM_INSTALL_MONGO` argument under the PHP-FPM Container
+ * set it to `true`
+2. Re-build the containers
+ * `docker-compose build workspace php-fpm`
+3. Run the MongoDB Container (`mongo`) with the `docker-compose up` command.
+ ```bash
+ docker-compose up -d mongo
+ ```
+4. Add the MongoDB configurations to the `config/database.php` configuration file:
+ ```php
+ 'connections' => [
+
+ 'mongodb' => [
+ 'driver' => 'mongodb',
+ 'host' => env('DB_HOST', 'localhost'),
+ 'port' => env('DB_PORT', 27017),
+ 'database' => env('DB_DATABASE', 'database'),
+ 'username' => '',
+ 'password' => '',
+ 'options' => [
+ 'database' => '',
+ ]
+ ],
+
+ // ...
+
],
-
- // ...
-
-],
-```
+ ```
5 - Open your Laravel's `.env` file and update the following variables:
@@ -965,21 +945,16 @@ More details about this [here](https://github.com/jenssegers/laravel-mongodb#ins
## Use PhpMyAdmin
+1. Run the phpMyAdmin Container (`phpmyadmin`) with the `docker-compose up` command.
+ ```bash
+ # use with mysql
+ docker-compose up -d mysql phpmyadmin
-1 - Run the phpMyAdmin Container (`phpmyadmin`) with the `docker-compose up` command. Example:
-
-```bash
-# use with mysql
-docker-compose up -d mysql phpmyadmin
-
-# use with mariadb
-docker-compose up -d mariadb phpmyadmin
-```
-
-*Note: To use with MariaDB, open `.env` and set `PMA_DB_ENGINE=mysql` to `PMA_DB_ENGINE=mariadb`.*
-
-2 - Open your browser and visit the localhost on port **8081**: `http://localhost:8081`
-
+ # use with mariadb
+ docker-compose up -d mariadb phpmyadmin
+ ```
+ *Note: To use with MariaDB, open `.env` and set `PMA_DB_ENGINE=mysql` to `PMA_DB_ENGINE=mariadb`.*
+2. Open your browser and visit the localhost on port **8081**: `http://localhost:8081`, use server: "mysql", user: "default" and password: "secret for the default mysql setup.
@@ -988,15 +963,11 @@ docker-compose up -d mariadb phpmyadmin
## Use Gitlab
-
-1 - Run the Gitlab Container (`gitlab`) with the `docker-compose up` command. Example:
-
-```bash
-docker-compose up -d gitlab
-```
-
-2 - Open your browser and visit the localhost on port **8989**: `http://localhost:8989`
-
+1. Run the Gitlab Container (`gitlab`) with the `docker-compose up` command. Example:
+ ```bash
+ docker-compose up -d gitlab
+ ```
+2. Open your browser and visit the localhost on port **8989**: `http://localhost:8989`
*Note: You may change GITLAB_DOMAIN_NAME to your own domain name like `http://gitlab.example.com` default is `http://localhost`*
@@ -1007,60 +978,48 @@ docker-compose up -d gitlab
## Use Gitlab Runner
+1. Retrieve the registration token in your gitlab project (Settings > CI / CD > Runners > Set up a specific Runner manually)
+2. Open the `.env` file and set the following changes:
+ ```
+ # so that gitlab container will pass the correct domain to gitlab-runner container
+ GITLAB_DOMAIN_NAME=http://gitlab
-1 - Retrieve the registration token in your gitlab project (Settings > CI / CD > Runners > Set up a specific Runner manually)
-
-2 - Open the `.env` file and set the following changes:
-```
-# so that gitlab container will pass the correct domain to gitlab-runner container
-GITLAB_DOMAIN_NAME=http://gitlab
-
-GITLAB_RUNNER_REGISTRATION_TOKEN=
-
-# so that gitlab-runner container will send POST request for registration to correct domain
-GITLAB_CI_SERVER_URL=http://gitlab
-```
-
-3 - Open the `docker-compose.yml` file and add the following changes:
-```yml
- gitlab-runner:
- environment: # these values will be used during `gitlab-runner register`
- - RUNNER_EXECUTOR=docker # change from shell (default)
- - DOCKER_IMAGE=alpine
- - DOCKER_NETWORK_MODE=laradock_backend
- networks:
- - backend # connect to network where gitlab service is connected
-```
-
-4 - Run the Gitlab-Runner Container (`gitlab-runner`) with the `docker-compose up` command. Example:
-
-```bash
-docker-compose up -d gitlab-runner
-```
-
-5 - Register the gitlab-runner to the gitlab container
-
-```bash
-docker-compose exec gitlab-runner bash
-gitlab-runner register
-```
-
-6 - Create a `.gitlab-ci.yml` file for your pipeline
-
-```yml
-before_script:
- - echo Hello!
-
-job1:
- scripts:
- - echo job1
-```
-
-7 - Push changes to gitlab
-
-8 - Verify that pipeline is running successfully
+ GITLAB_RUNNER_REGISTRATION_TOKEN=
+ # so that gitlab-runner container will send POST request for registration to correct domain
+ GITLAB_CI_SERVER_URL=http://gitlab
+ ```
+3. Open the `docker-compose.yml` file and add the following changes:
+ ```yml
+ gitlab-runner:
+ environment: # these values will be used during `gitlab-runner register`
+ - RUNNER_EXECUTOR=docker # change from shell (default)
+ - DOCKER_IMAGE=alpine
+ - DOCKER_NETWORK_MODE=laradock_backend
+ networks:
+ - backend # connect to network where gitlab service is connected
+ ```
+4. Run the Gitlab-Runner Container (`gitlab-runner`) with the `docker-compose up` command. Example:
+ ```bash
+ docker-compose up -d gitlab-runner
+ ```
+5. Register the gitlab-runner to the gitlab container
+ ```bash
+ docker-compose exec gitlab-runner bash
+ gitlab-runner register
+ ```
+6. Create a `.gitlab-ci.yml` file for your pipeline
+ ```yml
+ before_script:
+ - echo Hello!
+
+ job1:
+ scripts:
+ - echo job1
+ ```
+7. Push changes to gitlab
+8. Verify that pipeline is run successful
@@ -1069,13 +1028,11 @@ job1:
## Use Adminer
-1 - Run the Adminer Container (`adminer`) with the `docker-compose up` command. Example:
-
-```bash
-docker-compose up -d adminer
-```
-
-2 - Open your browser and visit the localhost on port **8081**: `http://localhost:8081`
+1. Run the Adminer Container (`adminer`) with the `docker-compose up` command. Example:
+ ```bash
+ docker-compose up -d adminer
+ ```
+2. Open your browser and visit the localhost on port **8080**: `http://localhost:8080`
#### Additional Notes
@@ -1089,19 +1046,14 @@ docker-compose up -d adminer
-
-
## Use Portainer
-
-1 - Run the Portainer Container (`portainer`) with the `docker-compose up` command. Example:
-
-```bash
-docker-compose up -d portainer
-```
-
-2 - Open your browser and visit the localhost on port **9010**: `http://localhost:9010`
+1. Run the Portainer Container (`portainer`) with the `docker-compose up` command. Example:
+ ```bash
+ docker-compose up -d portainer
+ ```
+2. Open your browser and visit the localhost on port **9010**: `http://localhost:9010`
@@ -1111,21 +1063,14 @@ docker-compose up -d portainer
## Use PgAdmin
-
-1 - Run the pgAdmin Container (`pgadmin`) with the `docker-compose up` command. Example:
-
-```bash
-docker-compose up -d postgres pgadmin
-```
-
-2 - Open your browser and visit the localhost on port **5050**: `http://localhost:5050`
-
-
-3 - At login page use default credentials:
-
-Username : pgadmin4@pgadmin.org
-
-Password : admin
+1. Run the pgAdmin Container (`pgadmin`) with the `docker-compose up` command. Example:
+ ```bash
+ docker-compose up -d postgres pgadmin
+ ```
+2. Open your browser and visit the localhost on port **5050**: `http://localhost:5050`
+3. At login page use default credentials:
+ Username : pgadmin4@pgadmin.org
+ Password : admin
@@ -1134,41 +1079,28 @@ Password : admin
## Use Beanstalkd
+1. Run the Beanstalkd Container:
+ ```bash
+ docker-compose up -d beanstalkd
+ ```
+2. Configure Laravel to connect to that container by editing the `config/queue.php` config file.
+ * first set `beanstalkd` as default queue driver
+ * set the queue host to beanstalkd : `QUEUE_HOST=beanstalkd`
+ *beanstalkd is now available on default port `11300`.*
+3. Require the dependency package [pda/pheanstalk](https://github.com/pda/pheanstalk) using composer.
+ Optionally you can use the Beanstalkd Console Container to manage your Queues from a web interface.
+ * Run the Beanstalkd Console Container:
+ ```bash
+ docker-compose up -d beanstalkd-console
+ ```
+ * Open your browser and visit `http://localhost:2080/`
+ _Note: You can customize the port on which beanstalkd console is listening by changing `BEANSTALKD_CONSOLE_HOST_PORT` in `.env`. The default value is *2080*._
-1 - Run the Beanstalkd Container:
+ * Add the server
+ - Host: beanstalkd
+ - Port: 11300
+4. Done
-```bash
-docker-compose up -d beanstalkd
-```
-
-2 - Configure Laravel to connect to that container by editing the `config/queue.php` config file.
-
-a. first set `beanstalkd` as default queue driver
-b. set the queue host to beanstalkd : `QUEUE_HOST=beanstalkd`
-
-*beanstalkd is now available on default port `11300`.*
-
-3 - Require the dependency package [pda/pheanstalk](https://github.com/pda/pheanstalk) using composer.
-
-
-Optionally you can use the Beanstalkd Console Container to manage your Queues from a web interface.
-
-1 - Run the Beanstalkd Console Container:
-
-```bash
-docker-compose up -d beanstalkd-console
-```
-
-2 - Open your browser and visit `http://localhost:2080/`
-
-_Note: You can customize the port on which beanstalkd console is listening by changing `BEANSTALKD_CONSOLE_HOST_PORT` in `.env`. The default value is *2080*._
-
-3 - Add the server
-
-- Host: beanstalkd
-- Port: 11300
-
-4 - Done.
@@ -1176,12 +1108,10 @@ _Note: You can customize the port on which beanstalkd console is listening by ch
## Use Confluence
-
-1 - Run the Confluence Container (`confluence`) with the `docker-compose up` command. Example:
-
-```bash
-docker-compose up -d confluence
-```
+1. Run the Confluence Container (`confluence`) with the `docker-compose up` command. Example:
+ ```bash
+ docker-compose up -d confluence
+ ```
2 - Open your browser and visit the localhost on port **8090**: `http://localhost:8090`
@@ -1214,23 +1144,14 @@ docker-compose up -d elasticsearch
### Install ElasticSearch Plugin
-1 - Install an ElasticSearch plugin.
-
-```bash
-docker-compose exec elasticsearch /usr/share/elasticsearch/bin/plugin install {plugin-name}
-```
-For ElasticSearch 5.0 and above, the previous "plugin" command has been renamed to "elasticsearch-plguin".
-Use the following instead:
-
-```bash
-docker-compose exec elasticsearch /usr/share/elasticsearch/bin/elasticsearch-plugin install {plugin-name}
-```
-
-2 - Restart elasticsearch container
-
-```bash
-docker-compose restart elasticsearch
-```
+1. Install an ElasticSearch plugin.
+ ```bash
+ docker-compose exec elasticsearch /usr/share/elasticsearch/bin/plugin install {plugin-name}
+ ```
+2. Restart elasticsearch container
+ ```bash
+ docker-compose restart elasticsearch
+ ```
@@ -1252,14 +1173,11 @@ docker-compose up -d meilisearch
## Use Selenium
-
-1 - Run the Selenium Container (`selenium`) with the `docker-compose up` command. Example:
-
-```bash
-docker-compose up -d selenium
-```
-
-2 - Open your browser and visit the localhost on port **4444** at the following URL: `http://localhost:4444/wd/hub`
+1. Run the Selenium Container (`selenium`) with the `docker-compose up` command. Example:
+ ```bash
+ docker-compose up -d selenium
+ ```
+2. Open your browser and visit the localhost on port **4444** at the following URL: `http://localhost:4444/wd/hub`
@@ -1273,38 +1191,35 @@ docker-compose up -d selenium
The RethinkDB is an open-source Database for Real-time Web ([RethinkDB](https://rethinkdb.com/)).
A package ([Laravel RethinkDB](https://github.com/duxet/laravel-rethinkdb)) is being developed and was released a version for Laravel 5.2 (experimental).
-1 - Run the RethinkDB Container (`rethinkdb`) with the `docker-compose up` command.
+1. Run the RethinkDB Container (`rethinkdb`) with the `docker-compose up` command.
+ ```bash
+ docker-compose up -d rethinkdb
+ ```
-```bash
-docker-compose up -d rethinkdb
-```
+2. Access the RethinkDB Administration Console [http://localhost:8090/#tables](http://localhost:8090/#tables) for create a database called `database`.
-2 - Access the RethinkDB Administration Console [http://localhost:8090/#tables](http://localhost:8090/#tables) for create a database called `database`.
+3. Add the RethinkDB configurations to the `config/database.php` configuration file:
+ ```php
+ 'connections' => [
+
+ 'rethinkdb' => [
+ 'name' => 'rethinkdb',
+ 'driver' => 'rethinkdb',
+ 'host' => env('DB_HOST', 'rethinkdb'),
+ 'port' => env('DB_PORT', 28015),
+ 'database' => env('DB_DATABASE', 'test'),
+ ]
+
+ // ...
+
+ ],
+ ```
-3 - Add the RethinkDB configurations to the `config/database.php` configuration file:
-
-```php
-'connections' => [
-
- 'rethinkdb' => [
- 'name' => 'rethinkdb',
- 'driver' => 'rethinkdb',
- 'host' => env('DB_HOST', 'rethinkdb'),
- 'port' => env('DB_PORT', 28015),
- 'database' => env('DB_DATABASE', 'test'),
- ]
-
- // ...
-
-],
-```
-
-4 - Open your Laravel's `.env` file and update the following variables:
-
-- set the `DB_CONNECTION` to your `rethinkdb`.
-- set the `DB_HOST` to `rethinkdb`.
-- set the `DB_PORT` to `28015`.
-- set the `DB_DATABASE` to `database`.
+4. Open your Laravel's `.env` file and update the following variables:
+ - set the `DB_CONNECTION` to your `rethinkdb`.
+ - set the `DB_HOST` to `rethinkdb`.
+ - set the `DB_PORT` to `28015`.
+ - set the `DB_DATABASE` to `database`.
#### Additional Notes
@@ -1316,32 +1231,40 @@ docker-compose up -d rethinkdb
## Use Minio
-1 - Configure Minio:
- - On the workspace container, change `INSTALL_MC` to true to get the client
- - Set `MINIO_ACCESS_KEY` and `MINIO_ACCESS_SECRET` if you wish to set proper keys
-
-2 - Run the Minio Container (`minio`) with the `docker-compose up` command. Example:
-
-```bash
-docker-compose up -d minio
-```
-
-3 - Open your browser and visit the localhost on port **9000** at the following URL: `http://localhost:9000`
-
-4 - Create a bucket either through the webui or using the mc client:
- ```bash
- mc mb minio/bucket
- ```
-
+1. Configure Minio:
+ - On the workspace container, change `INSTALL_MC` to true to get the client
+ - Set `MINIO_ACCESS_KEY` and `MINIO_ACCESS_SECRET` if you wish to set proper keys
+2. Run the Minio Container (`minio`) with the `docker-compose up` command. Example:
+ ```bash
+ docker-compose up -d minio
+ ```
+3. Open your browser and visit the localhost on port **9000** at the following URL: `http://localhost:9000`
+4. Create a bucket either through the webui or using the mc client:
+ ```bash
+ mc mb minio/bucket
+ ```
5 - When configuring your other clients use the following details:
```
- S3_HOST=http://minio
- S3_KEY=access
- S3_SECRET=secretkey
- S3_REGION=us-east-1
- S3_BUCKET=bucket
+ AWS_URL=http://minio:9000
+ AWS_ACCESS_KEY_ID=access
+ AWS_SECRET_ACCESS_KEY=secretkey
+ AWS_DEFAULT_REGION=us-east-1
+ AWS_BUCKET=test
+ AWS_PATH_STYLE=true
```
-
+6 - In `filesystems.php` you shoud use the following details (s3):
+ ```
+'s3' => [
+ 'driver' => 's3',
+ 'key' => env('AWS_ACCESS_KEY_ID'),
+ 'secret' => env('AWS_SECRET_ACCESS_KEY'),
+ 'region' => env('AWS_DEFAULT_REGION'),
+ 'bucket' => env('AWS_BUCKET'),
+ 'endpoint' => env('AWS_URL'),
+ 'use_path_style_endpoint' => env('AWS_PATH_STYLE', false)
+ ],
+```
+`'AWS_PATH_STYLE'` shout set to true only for local purpouse
@@ -1540,8 +1463,31 @@ docker-compose up -d mosquitto
5 - Publish: `mqtt pub -t 'test' -h localhost -p 9001 -C 'ws' -m 'Hello!'`
+
+
+## Use Tarantool (+ Admin panel)
+1 - Configure Tarantool Port and Tarantool Admin Port using environment variables: `TARANTOOL_PORT` and `TARANTOOL_ADMIN_PORT`. Default ports are 3301 and 8002.
+2 - Run the Tarantool and Tarantool Admin tool using `docker-compose up`command:
+
+```bash
+docker-compose up -d tarantool tarantool-admin
+```
+
+3 - You can open admin tool visiting localhost:8002
+
+4 - There you should set `Hostname` with the value `tarantool`
+
+5 - After that your tarantool data will be available inside admin panel.
+
+6 - Also you can connect to tarantool server in console mode with this command:
+
+```bash
+docker-compose exec tarantool console
+```
+
+7 - There you can operate with tarantool database ([official documentation](https://www.tarantool.io/en/doc/latest/) can be helpful).
@@ -1887,6 +1833,7 @@ To install NVM and NodeJS in the Workspace container
3 - Re-build the container `docker-compose build workspace`
+A `.npmrc` file is included in the `workspace` folder if you need to utilise this globally. This is copied automatically into the root and laradock user's folders on build.
@@ -2031,6 +1978,27 @@ To install FFMPEG in the Workspace container
**PS** Don't forget to install the binary in the `php-fpm` container too by applying the same steps above to its container, otherwise you'll get an error when running the `php-ffmpeg` binary.
+
+
+## Install BBC Audio Waveform Image Generator
+
+audiowaveform is a C++ command-line application that generates waveform data from either MP3, WAV, FLAC, or Ogg Vorbis format audio files.
+Waveform data can be used to produce a visual rendering of the audio, similar in appearance to audio editing applications.
+Waveform data files are saved in either binary format (.dat) or JSON (.json).
+
+To install BBC Audio Waveform Image Generator in the Workspace container
+
+1 - Open the `.env` file
+
+2 - Search for the `WORKSPACE_INSTALL_AUDIOWAVEFORM` argument under the Workspace Container and set it to `true`
+
+3 - Re-build the container `docker-compose build workspace`
+
+4 - If you use the `php-worker` or `laravel-horizon` container too, please follow the same steps above especially if you have processing that have been queued.
+
+**PS** Don't forget to install the binary in the `php-fpm` container too by applying the same steps above to its container, otherwise you'll get an error when running the `audiowaveform` binary.
+
+
## Install wkhtmltopdf
@@ -2249,6 +2217,20 @@ AST exposes the abstract syntax tree generated by PHP 7+. This extension is requ
**Note** If you need a specific version of AST then search for the `WORKSPACE_AST_VERSION` argument under the Workspace Container and set it to the desired version and continue step 4.
+
+
+## Install PHP Decimal extension
+The PHP Decimal extension adds support for correctly-rounded, arbitrary-precision decimal floating point arithmetic. Applications that rely on accurate numbers (ie. money, measurements, or mathematics) can use Decimal instead of float or string to represent numerical values.
+
+For more information visit the [PHP Decimal website](https://php-decimal.io).
+
+2 - Search for the `WORKSPACE_INSTALL_PHPDECIMAL` argument under the Workspace Container
+
+2 - Search for the `PHP_FPM_INSTALL_PHPDECIMAL` argument under the PHP-FPM container
+
+3 - Set it to `true`
+
+4 - Re-build the container `docker-compose build workspace php-fpm`
diff --git a/DOCUMENTATION/content/getting-started/index.md b/DOCUMENTATION/content/getting-started/index.md
index b96cdfe5..a97c78c0 100644
--- a/DOCUMENTATION/content/getting-started/index.md
+++ b/DOCUMENTATION/content/getting-started/index.md
@@ -75,7 +75,7 @@ Your folder structure should look like this:
We'll need to do step 1 of the [Usage](#Usage) section now to make this happen.
```
-cp env-example .env
+cp .env.example .env
```
At the top, change the `APP_CODE_PATH_HOST` variable to your project path.
@@ -107,6 +107,12 @@ Your folder structure should look like this:
* project-2
```
+Make sure the `APP_CODE_PATH_HOST` variable points to parent directory.
+
+```
+APP_CODE_PATH_HOST=../
+```
+
2 - Go to your web server and create config files to point to different project directory when visiting different domains:
For **Nginx** go to `nginx/sites`, for **Apache2** `apache2/sites`.
@@ -151,14 +157,14 @@ We recommend using a Docker version which is newer than 1.13.
->**Warning:** If you used an older version of Laradock it's highly recommended to rebuild the containers you need to use [see how you rebuild a container](#Build-Re-build-Containers) in order to prevent as much errors as possible.
+>**Warning:** If you used an older version of Laradock it's highly recommended to rebuild the containers you need to use [see how you rebuild a container](/documentation/#Build-Re-build-Containers) in order to prevent as much errors as possible.
-1 - Enter the laradock folder and copy `env-example` to `.env`
+1 - Enter the laradock folder and copy `.env.example` to `.env`
```shell
-cp env-example .env
+cp .env.example .env
```
You can edit the `.env` file to choose which software's you want to be installed in your environment. You can always refer to the `docker-compose.yml` file to see how those variables are being used.
diff --git a/DOCUMENTATION/content/help/index.md b/DOCUMENTATION/content/help/index.md
index 519d129a..c10bb00a 100644
--- a/DOCUMENTATION/content/help/index.md
+++ b/DOCUMENTATION/content/help/index.md
@@ -97,7 +97,7 @@ In China, the origin source of composer and npm is very slow. You can add `WORKS
Example:
```bash
-WORKSPACE_NPM_REGISTRY=https://registry.npm.taobao.org
+WORKSPACE_NPM_REGISTRY=https://registry.npmmirror.com
WORKSPACE_COMPOSER_REPO_PACKAGIST=https://packagist.phpcomposer.com
```
diff --git a/DOCUMENTATION/content/introduction/index.md b/DOCUMENTATION/content/introduction/index.md
index dc9f93e4..d1997b36 100644
--- a/DOCUMENTATION/content/introduction/index.md
+++ b/DOCUMENTATION/content/introduction/index.md
@@ -17,17 +17,17 @@ It supports a variety of common services, all pre-configured to provide a ready
## Features
-- Easy switch between PHP versions: 7.4, 7.3, 7.2, 7.1, 5.6...
+- Easy switch between PHP versions: 8.1, 8.0, 7.4, 7.3, 7.2, 7.1, 5.6...
- Choose your favorite database engine: MySQL, Postgres, MariaDB...
- Run your own stack: Memcached, HHVM, RabbitMQ...
- Each software runs on its own container: PHP-FPM, NGINX, PHP-CLI...
- Easy to customize any container, with simple edits to the `Dockerfile`.
-- All Images extends from an official base Image. (Trusted base Images).
+- All Images extend from an official base Image. (Trusted base Images).
- Pre-configured NGINX to host any code at your root directory.
- Can use Laradock per project, or single Laradock for all projects.
- Easy to install/remove software's in Containers using environment variables.
-- Clean and well structured Dockerfiles (`Dockerfile`).
-- Latest version of the Docker Compose file (`docker-compose`).
+- Clean and well-structured Dockerfiles (`Dockerfile`).
+- The Latest version of the Docker Compose file (`docker-compose`).
- Everything is visible and editable.
- Fast Images Builds.
@@ -46,10 +46,10 @@ Let's see how easy it is to setup our demo stack `PHP`, `NGINX`, `MySQL`, `Redis
git clone https://github.com/Laradock/laradock.git
```
-2 - Enter the laradock folder and rename `env-example` to `.env`.
+2 - Enter the laradock folder and rename `.env.example` to `.env`.
```shell
-cp env-example .env
+cp .env.example .env
```
3 - Run your containers:
@@ -192,6 +192,7 @@ That's it! enjoy :)
- PostGIS *(Database extender for PostgreSQL. It adds support for geographic objects allowing location queries to be run in SQL)*
- Blackfire *(Empowers all PHP developers and IT/Ops to continuously verify and improve their app's performance)*
- Laravel Echo *(Bring the power of WebSockets to your Laravel applications)*
+ - Mercure *(Server-sent events)*
- Phalcon *(A PHP web framework based on the model–view–controller pattern)*
- Minio *(Cloud storage server released under Apache License v2, compatible with Amazon S3)*
- AWS EB CLI *(CLI that helps you deploy and manage your AWS Elastic Beanstalk applications and environments)*
@@ -222,77 +223,6 @@ You can choose, which tools to install in your workspace container and other con
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Full PHP development environment based on Docker.
-
-
-
-
-
-
-
-
-Use Docker First - Learn About It Later!
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Full PHP development environment based on Docker.
-
-
-
-
-
-
-
-
-Use Docker First - Learn About It Later!
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
## Join Us
[![Gitter](https://badges.gitter.im/Laradock/laradock.svg)](https://gitter.im/Laradock/laradock?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
@@ -435,7 +365,7 @@ Laradock is an MIT-licensed open source project with its ongoing development mad
You can support us using any of the methods below:
-1: [Open Collective](https://opencollective.com/laradock/contribute)
+1: [Open Collective](https://opencollective.com/laradock)
2: [Paypal](https://paypal.me/mzmmzz)
@@ -455,7 +385,13 @@ Sponsoring is an act of giving in a different fashion. 🌱
-
+
+
+
+
+
+
+
@@ -468,12 +404,22 @@ Sponsoring is an act of giving in a different fashion. 🌱
+
+
+
+
+
+
+
### Silver Sponsors
+
+
+
@@ -485,14 +431,30 @@ Sponsoring is an act of giving in a different fashion. 🌱
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
### Bronze Sponsors
-
-
@@ -504,12 +466,67 @@ Sponsoring is an act of giving in a different fashion. 🌱
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
You can sponsor us using any of the methods below:
-1: Sponsor via [Open Collective](https://opencollective.com/laradock/contribute/).
+1: Sponsor via [Open Collective](https://opencollective.com/laradock/).
2: Email us at support@laradock.io.
diff --git a/DOCUMENTATION/static/custom-style.css b/DOCUMENTATION/static/custom-style.css
index d25a5ac1..6e20a8dd 100644
--- a/DOCUMENTATION/static/custom-style.css
+++ b/DOCUMENTATION/static/custom-style.css
@@ -1,5 +1,7 @@
/* Custom CSS */
-
+.article{
+ overflow-x:hidden;
+}
.article a {
border-bottom: none;
}
diff --git a/README-zh.md b/README-zh.md
index e50794b7..c80e530b 100644
--- a/README-zh.md
+++ b/README-zh.md
@@ -70,7 +70,20 @@ git clone https://github.com/laradock/laradock.git
2. 进入 Laradock 目录
```bash
-cp env-example .env
+cp .env.example .env
+```
+如果你在中国内地,可以修改一些配置来进行镜像加速,不过build时还是会请求GitHub来下载一些文件,此时需要保证你的计算机能连上GitHub
+(1)配置DockerHub镜像加速,[链接](https://www.runoob.com/docker/docker-mirror-acceleration.html)
+(2) 修改.env
+```
+# 开启ubuntu国内源
+CHANGE_SOURCE=true
+# composer镜像源
+WORKSPACE_COMPOSER_REPO_PACKAGIST=https://mirrors.aliyun.com/composer/
+# nvm镜像源
+WORKSPACE_NVM_NODEJS_ORG_MIRROR=https://npmmirror.com/mirrors/node
+# npm镜像源
+WORKSPACE_NPM_REGISTRY=https://registry.npmmirror.com
```
3. 运行这些容器。
diff --git a/README.md b/README.md
index 37f20dc1..125db955 100644
--- a/README.md
+++ b/README.md
@@ -7,6 +7,7 @@
+
@@ -171,7 +172,7 @@ Laradock is an MIT-licensed open source project with its ongoing development mad
You can support us using any of the methods below:
-1: [Open Collective](https://opencollective.com/laradock/contribute)
+1: [Open Collective](https://opencollective.com/laradock)
2: [Paypal](https://paypal.me/mzmmzz)
@@ -191,7 +192,13 @@ Sponsoring is an act of giving in a different fashion. 🌱
-
+
+
+
+
+
+
+
@@ -204,12 +211,22 @@ Sponsoring is an act of giving in a different fashion. 🌱
+
+
+
+
+
+
+
### Silver Sponsors
+
+
+
@@ -221,14 +238,30 @@ Sponsoring is an act of giving in a different fashion. 🌱
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
### Bronze Sponsors
-
-
@@ -240,12 +273,67 @@ Sponsoring is an act of giving in a different fashion. 🌱
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
You can sponsor us using any of the methods below:
-1: Sponsor via [Open Collective](https://opencollective.com/laradock/contribute/).
+1: Sponsor via [Open Collective](https://opencollective.com/laradock/).
2: Email us at support@laradock.io.
diff --git a/adminer/Dockerfile b/adminer/Dockerfile
index cb399771..61ca8d92 100644
--- a/adminer/Dockerfile
+++ b/adminer/Dockerfile
@@ -9,19 +9,19 @@ VOLUME /sessions
# SQL SERVER:
#####################################
USER root
+
ARG INSTALL_MSSQL=false
ENV INSTALL_MSSQL ${INSTALL_MSSQL}
+
RUN if [ ${INSTALL_MSSQL} = true ]; then \
set -xe \
- # && apk --update add --no-cache --virtual .phpize-deps $PHPIZE_DEPS unixodbc unixodbc-dev \
- # && pecl channel-update pecl.php.net \
- # && pecl install pdo_sqlsrv-4.1.8preview sqlsrv-4.1.8preview \
- # && echo "extension=sqlsrv.so" > /usr/local/etc/php/conf.d/20-sqlsrv.ini \
- # && echo "extension=pdo_sqlsrv.so" > /usr/local/etc/php/conf.d/20-pdo_sqlsrv.ini \
- && apk --update add --no-cache freetds unixodbc \
- && apk --update add --no-cache --virtual .build-deps $PHPIZE_DEPS freetds-dev unixodbc-dev \
- && docker-php-ext-install pdo_dblib \
- && apk del .build-deps \
+ && apk update \
+ && apk add --no-cache --virtual .php-build-dependencies unixodbc-dev freetds-dev \
+ && apk add --virtual .php-runtime-dependencies unixodbc freetds \
+ && docker-php-ext-configure pdo_odbc --with-pdo-odbc=unixODBC,/usr \
+ && docker-php-ext-install pdo_odbc pdo_dblib \
+ && apk del .php-build-dependencies \
+ && rm -rf /var/cache/apk/* \
;fi
USER adminer
diff --git a/apache2/Dockerfile b/apache2/Dockerfile
index ec824f4b..9fd43154 100644
--- a/apache2/Dockerfile
+++ b/apache2/Dockerfile
@@ -2,36 +2,31 @@ FROM webdevops/apache:ubuntu-18.04
LABEL maintainer="Eric Pfeiffer "
+ARG DOCUMENT_ROOT=/var/www/
ARG PHP_UPSTREAM_CONTAINER=php-fpm
ARG PHP_UPSTREAM_PORT=9000
ARG PHP_UPSTREAM_TIMEOUT=60
-ARG DOCUMENT_ROOT=/var/www/
+ARG APACHE_INSTALL_HTTP2=false
ENV WEB_PHP_SOCKET=${PHP_UPSTREAM_CONTAINER}:${PHP_UPSTREAM_PORT}
-
ENV WEB_DOCUMENT_ROOT=${DOCUMENT_ROOT}
-
+ENV APACHE_HTTP2=${APACHE_INSTALL_HTTP2}
ENV WEB_PHP_TIMEOUT=${PHP_UPSTREAM_TIMEOUT}
+ENV LOG_STDOUT=/var/log/apache2/access.log
+
+ENV LOG_STDERR=/var/log/apache2/error.log
+
EXPOSE 80 443
WORKDIR /var/www/
COPY vhost.conf /etc/apache2/sites-enabled/vhost.conf
-ARG APACHE_INSTALL_HTTP2=false
-RUN mkdir /etc/apache2/ssl 2> /dev/null
-RUN if [ ${APACHE_INSTALL_HTTP2} = true ]; then \
- openssl genrsa -out "/etc/apache2/ssl/ssl_site.key" 2048 \
- && openssl rand -out /root/.rnd -hex 256 \
- && openssl req -new -key "/etc/apache2/ssl/ssl_site.key" -out "/etc/apache2/ssl/ssl_site.csr" -subj "/CN=site.com/O=LGS/C=IT" \
- && openssl x509 -req -days 365 -in "/etc/apache2/ssl/ssl_site.csr" -signkey "/etc/apache2/ssl/ssl_site.key" -out "/etc/apache2/ssl/ssl_site.crt" \
- && a2enmod rewrite \
- && a2enmod headers \
- && a2enmod proxy proxy_html proxy_http xml2enc ssl http2 \
- && service apache2 restart \
-;fi
+ADD ./startup.sh /opt/startup.sh
ENTRYPOINT ["/opt/docker/bin/entrypoint.sh"]
-CMD ["supervisord"]
+CMD ["/bin/bash", "/opt/startup.sh"]
+
+EXPOSE 80 443
\ No newline at end of file
diff --git a/apache2/sites/default.apache.conf b/apache2/sites/default.apache.conf
index ed2311dd..964a18f2 100644
--- a/apache2/sites/default.apache.conf
+++ b/apache2/sites/default.apache.conf
@@ -13,4 +13,6 @@
+ ErrorLog /var/log/apache2/error.log
+ CustomLog /var/log/apache2/access.log combined
diff --git a/apache2/sites/default.apache.ssl.example b/apache2/sites/default.apache.ssl.example
new file mode 100644
index 00000000..c82a6c14
--- /dev/null
+++ b/apache2/sites/default.apache.ssl.example
@@ -0,0 +1,32 @@
+
+ ServerName laradock.test
+ ServerAlias *.laradock.test
+
+ RewriteEngine On
+ RewriteCond %{HTTPS} !on
+ RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
+
+
+
+ ServerName laradock.test
+ ServerAlias *.laradock.test
+ DocumentRoot /var/www/
+ Options Indexes FollowSymLinks
+
+ SSLEngine on
+ SSLCertificateFile /etc/apache2/ssl/ssl_site.crt
+ SSLCertificateKeyFile /etc/apache2/ssl/ssl_site.key
+
+
+ AllowOverride All
+
+ Allow from all
+
+ = 2.4>
+ Require all granted
+
+
+
+ ErrorLog /var/log/apache2/error.log
+ CustomLog /var/log/apache2/access.log combined
+
diff --git a/apache2/ssl/.gitignore b/apache2/ssl/.gitignore
new file mode 100644
index 00000000..003cd8e5
--- /dev/null
+++ b/apache2/ssl/.gitignore
@@ -0,0 +1,4 @@
+*.crt
+*.csr
+*.key
+*.pem
\ No newline at end of file
diff --git a/apache2/startup.sh b/apache2/startup.sh
new file mode 100644
index 00000000..d4eb6dc3
--- /dev/null
+++ b/apache2/startup.sh
@@ -0,0 +1,21 @@
+#!/bin/bash
+
+mkdir /etc/apache2/ssl 2> /dev/null
+
+# Change laradock.test to the URL to be used
+if [ ${APACHE_HTTP2} = true ]; then
+ if [ ! -f /etc/apache2/ssl/ssl_site.crt ]; then
+ openssl genrsa -out "/etc/apache2/ssl/ssl_site.key" 2048
+ openssl rand -out /root/.rnd -hex 256
+ openssl req -new -key "/etc/apache2/ssl/ssl_site.key" -out "/etc/apache2/ssl/ssl_site.csr" -subj "/CN=laradock.test/O=Laradock/C=BR"
+ openssl x509 -req -days 365 -extfile <(printf "subjectAltName=DNS:laradock.test,DNS:*.laradock.test") -in "/etc/apache2/ssl/ssl_site.csr" -signkey "/etc/apache2/ssl/ssl_site.key" -out "/etc/apache2/ssl/ssl_site.crt"
+ fi
+
+ a2enmod rewrite
+ a2enmod headers
+ a2enmod proxy proxy_html proxy_http xml2enc ssl http2
+ service apache2 restart
+fi
+
+# Start apache in foreground
+/usr/sbin/apache2ctl -D FOREGROUND
diff --git a/caddy/Dockerfile b/caddy/Dockerfile
index c9b74b70..e2af8fde 100644
--- a/caddy/Dockerfile
+++ b/caddy/Dockerfile
@@ -1,5 +1,5 @@
-FROM abiosoft/caddy:no-stats
+FROM caddy/caddy:latest
-CMD ["--conf", "/etc/caddy/Caddyfile", "--log", "stdout", "--agree=true"]
+COPY ./caddy/Caddyfile /etc/caddy/Caddyfile
-EXPOSE 80 443 2015
+EXPOSE 80 443
diff --git a/caddy/caddy/Caddyfile b/caddy/caddy/Caddyfile
index 1848d346..2fab010d 100644
--- a/caddy/caddy/Caddyfile
+++ b/caddy/caddy/Caddyfile
@@ -1,51 +1,9 @@
# Docs: https://caddyserver.com/docs/caddyfile
-0.0.0.0:80 {
- root /var/www/public
- fastcgi / php-fpm:9000 php {
- index index.php
- }
+laradock.test {
+ root * /var/www/public
+ php_fastcgi php-fpm:9000
+ file_server
- # To handle .html extensions with laravel change ext to
- # ext / .html
-
- rewrite {
- to {path} {path}/ /index.php?{query}
- }
- gzip
- browse
- log /var/log/caddy/access.log
- errors /var/log/caddy/error.log
- # Uncomment to enable TLS (HTTPS)
- # Change the first list to listen on port 443 when enabling TLS
- #tls self_signed
-
- # To use Lets encrpt tls with a DNS provider uncomment these
- # lines and change the provider as required
- #tls {
- # dns cloudflare
- #}
+ encode gzip
+ tls internal
}
-
-laradock1.demo:80 {
- root /var/www/public
- # Create a Webhook in git.
- #git {
- #repo https://github.com/xxx/xxx
- # path /home/xxx
- # #interval 60
- # hook webhook laradock
- # hook_type generic
- #}
-
-}
-
-laradock2.demo:80 {
- # Create a Proxy and cors.
- #proxy domain.com
- #cors
-}
-
-laradock3.demo:80 {
- import authlist.conf
- root /var/www/public
-}
\ No newline at end of file
diff --git a/caddy/caddy/authlist.conf b/caddy/caddy/authlist.conf
deleted file mode 100644
index 651bf55e..00000000
--- a/caddy/caddy/authlist.conf
+++ /dev/null
@@ -1 +0,0 @@
-basicauth / laradock laradock
diff --git a/certbot/run-certbot.sh b/certbot/run-certbot.sh
index c66ba2c5..3e9f3de7 100644
--- a/certbot/run-certbot.sh
+++ b/certbot/run-certbot.sh
@@ -3,5 +3,7 @@
letsencrypt certonly --webroot -w /var/www/letsencrypt -d "$CN" --agree-tos --email "$EMAIL" --non-interactive --text
cp /etc/letsencrypt/archive/"$CN"/cert1.pem /var/certs/"$CN"-cert1.pem
+cp /etc/letsencrypt/archive/"$CN"/chain1.pem /var/certs/chain1.pem
+cp /etc/letsencrypt/archive/"$CN"/fullchain1.pem /var/certs/fullchain1.pem
cp /etc/letsencrypt/archive/"$CN"/privkey1.pem /var/certs/"$CN"-privkey1.pem
diff --git a/clickhouse/Dockerfile b/clickhouse/Dockerfile
new file mode 100644
index 00000000..c3d1aab8
--- /dev/null
+++ b/clickhouse/Dockerfile
@@ -0,0 +1,53 @@
+FROM ubuntu:20.04
+
+ARG CLICKHOUSE_VERSION=22.2.2.1
+ARG CLICKHOUSE_GOSU_VERSION=1.14
+
+RUN apt-get update \
+ && apt-get install --yes --no-install-recommends \
+ apt-transport-https \
+ dirmngr \
+ gnupg \
+ && mkdir -p /etc/apt/sources.list.d \
+ && apt-key adv --keyserver keyserver.ubuntu.com --recv E0C56BD4 \
+ && echo "deb http://repo.yandex.ru/clickhouse/deb/stable/ main/" > /etc/apt/sources.list.d/clickhouse.list \
+ && apt-get update \
+ && env DEBIAN_FRONTEND=noninteractive \
+ apt-get install --allow-unauthenticated --yes --no-install-recommends \
+ clickhouse-common-static=$CLICKHOUSE_VERSION \
+ clickhouse-client=$CLICKHOUSE_VERSION \
+ clickhouse-server=$CLICKHOUSE_VERSION \
+ locales \
+ tzdata \
+ wget \
+ && rm -rf \
+ /var/lib/apt/lists/* \
+ /var/cache/debconf \
+ /tmp/* \
+ && apt-get clean
+
+ADD https://github.com/tianon/gosu/releases/download/$CLICKHOUSE_GOSU_VERSION/gosu-amd64 /bin/gosu
+
+RUN locale-gen en_US.UTF-8
+ENV LANG en_US.UTF-8
+ENV LANGUAGE en_US:en
+ENV LC_ALL en_US.UTF-8
+
+RUN mkdir /docker-entrypoint-initdb.d
+
+COPY docker_related_config.xml /etc/clickhouse-server/config.d/
+COPY config.xml /etc/clickhouse-server/config.xml
+COPY entrypoint.sh /entrypoint.sh
+
+RUN chmod +x \
+ /entrypoint.sh \
+ /bin/gosu
+
+EXPOSE 9000 8123 9009
+VOLUME /var/lib/clickhouse
+
+ENV CLICKHOUSE_CONFIG /etc/clickhouse-server/config.xml
+ENV CLICKHOUSE_USER ${CLICKHOUSE_USER}
+ENV CLICKHOUSE_PASSWORD ${CLICKHOUSE_PASSWORD}
+
+ENTRYPOINT ["/entrypoint.sh"]
diff --git a/clickhouse/config.xml b/clickhouse/config.xml
new file mode 100644
index 00000000..c1479eaa
--- /dev/null
+++ b/clickhouse/config.xml
@@ -0,0 +1,510 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ trace
+ /var/log/clickhouse-server/clickhouse-server.log
+ /var/log/clickhouse-server/clickhouse-server.err.log
+ 1000M
+ 10
+
+
+
+ 8123
+ 9000
+
+
+
+
+
+
+
+ /etc/clickhouse-server/server.crt
+ /etc/clickhouse-server/server.key
+
+ /etc/clickhouse-server/dhparam.pem
+ none
+ true
+ true
+ sslv2,sslv3
+ true
+
+
+
+ true
+ true
+ sslv2,sslv3
+ true
+
+
+
+ RejectCertificateHandler
+
+
+
+
+
+
+
+
+ 9009
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 4096
+ 3
+
+
+ 100
+
+
+
+
+
+ 8589934592
+
+
+ 5368709120
+
+
+
+ /var/lib/clickhouse/
+
+
+ /var/lib/clickhouse/tmp/
+
+
+ /var/lib/clickhouse/user_files/
+
+
+ users.xml
+
+
+ default
+
+
+
+
+
+ default
+
+
+
+
+
+
+
+
+ false
+
+
+
+
+
+
+
+ localhost
+ 9000
+
+
+
+
+
+
+ localhost
+ 9000
+
+
+
+
+ localhost
+ 9000
+
+
+
+
+
+
+ 127.0.0.1
+ 9000
+
+
+
+
+ 127.0.0.2
+ 9000
+
+
+
+
+
+
+ localhost
+ 9440
+ 1
+
+
+
+
+
+
+ localhost
+ 9000
+
+
+
+
+ localhost
+ 1
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 3600
+
+
+
+ 3600
+
+
+ 60
+
+
+
+
+
+
+
+
+
+
+
+
+ system
+
+
+ toYYYYMM(event_date)
+
+ 7500
+
+
+
+
+ system
+
+
+ toYYYYMM(event_date)
+ 7500
+
+
+
+
+ system
+
+ toYYYYMM(event_date)
+ 7500
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ *_dictionary.xml
+
+
+
+
+
+
+
+
+
+ /clickhouse/task_queue/ddl
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ click_cost
+ any
+
+ 0
+ 3600
+
+
+ 86400
+ 60
+
+
+
+ max
+
+ 0
+ 60
+
+
+ 3600
+ 300
+
+
+ 86400
+ 3600
+
+
+
+
+
+ /var/lib/clickhouse/format_schemas/
+
+
+
+
+
+
+
diff --git a/clickhouse/docker-entrypoint-initdb.d/init-db.sh b/clickhouse/docker-entrypoint-initdb.d/init-db.sh
new file mode 100644
index 00000000..e69de29b
diff --git a/clickhouse/docker_related_config.xml b/clickhouse/docker_related_config.xml
new file mode 100644
index 00000000..a1563c88
--- /dev/null
+++ b/clickhouse/docker_related_config.xml
@@ -0,0 +1,12 @@
+
+
+ ::
+ 0.0.0.0
+ 1
+
+
+
diff --git a/clickhouse/entrypoint.sh b/clickhouse/entrypoint.sh
new file mode 100644
index 00000000..03bacb7a
--- /dev/null
+++ b/clickhouse/entrypoint.sh
@@ -0,0 +1,103 @@
+#!/bin/bash
+
+# set some vars
+CLICKHOUSE_CONFIG="${CLICKHOUSE_CONFIG:-/etc/clickhouse-server/config.xml}"
+if [ x"$UID" == x0 ]; then
+ USER="$(id -u clickhouse)"
+ GROUP="$(id -g clickhouse)"
+ gosu="gosu $USER:$GROUP"
+else
+ USER="$(id -u)"
+ GROUP="$(id -g)"
+ gosu=""
+fi
+
+# port is needed to check if clickhouse-server is ready for connections
+HTTP_PORT="$(clickhouse extract-from-config --config-file $CLICKHOUSE_CONFIG --key=http_port)"
+
+# get CH directories locations
+DATA_DIR="$(clickhouse extract-from-config --config-file $CLICKHOUSE_CONFIG --key=path || true)"
+TMP_DIR="$(clickhouse extract-from-config --config-file $CLICKHOUSE_CONFIG --key=tmp_path || true)"
+USER_PATH="$(clickhouse extract-from-config --config-file $CLICKHOUSE_CONFIG --key=user_files_path || true)"
+LOG_PATH="$(clickhouse extract-from-config --config-file $CLICKHOUSE_CONFIG --key=logger.log || true)"
+LOG_DIR="$(dirname $LOG_PATH || true)"
+ERROR_LOG_PATH="$(clickhouse extract-from-config --config-file $CLICKHOUSE_CONFIG --key=logger.errorlog || true)"
+ERROR_LOG_DIR="$(dirname $ERROR_LOG_PATH || true)"
+FORMAT_SCHEMA_PATH="$(clickhouse extract-from-config --config-file $CLICKHOUSE_CONFIG --key=format_schema_path || true)"
+CLICKHOUSE_USER="${CLICKHOUSE_USER:-default}"
+
+for dir in "$DATA_DIR" \
+ "$ERROR_LOG_DIR" \
+ "$LOG_DIR" \
+ "$TMP_DIR" \
+ "$USER_PATH" \
+ "$FORMAT_SCHEMA_PATH"
+do
+ # check if variable not empty
+ [ -z "$dir" ] && continue
+ # ensure directories exist
+ if ! mkdir -p "$dir"; then
+ echo "Couldn't create necessary directory: $dir"
+ exit 1
+ fi
+
+ if [ x"$UID" == x0 ] && [ "$CLICKHOUSE_DO_NOT_CHOWN" != "1" ]; then
+ # ensure proper directories permissions
+ chown -R "$USER:$GROUP" "$dir"
+ elif [ "$(stat -c %u "$dir")" != "$USER" ]; then
+ echo "Necessary directory '$dir' isn't owned by user with id '$USER'"
+ exit 1
+ fi
+done
+
+
+
+if [ -n "$(ls /docker-entrypoint-initdb.d/)" ]; then
+ $gosu /usr/bin/clickhouse-server --config-file=$CLICKHOUSE_CONFIG &
+ pid="$!"
+
+ # check if clickhouse is ready to accept connections
+ # will try to send ping clickhouse via http_port (max 12 retries, with 1 sec delay)
+ if ! wget --spider --quiet --tries=12 --waitretry=1 --retry-connrefused "http://localhost:$HTTP_PORT/ping" ; then
+ echo >&2 'ClickHouse init process failed.'
+ exit 1
+ fi
+
+ if [ ! -z "$CLICKHOUSE_PASSWORD" ]; then
+ printf -v WITH_PASSWORD '%s %q' "--password" "$CLICKHOUSE_PASSWORD"
+ fi
+
+ clickhouseclient=( clickhouse-client --multiquery -u $CLICKHOUSE_USER $WITH_PASSWORD )
+
+ echo
+ for f in /docker-entrypoint-initdb.d/*; do
+ case "$f" in
+ *.sh)
+ if [ -x "$f" ]; then
+ echo "$0: running $f"
+ "$f"
+ else
+ echo "$0: sourcing $f"
+ . "$f"
+ fi
+ ;;
+ *.sql) echo "$0: running $f"; cat "$f" | "${clickhouseclient[@]}" ; echo ;;
+ *.sql.gz) echo "$0: running $f"; gunzip -c "$f" | "${clickhouseclient[@]}"; echo ;;
+ *) echo "$0: ignoring $f" ;;
+ esac
+ echo
+ done
+
+ if ! kill -s TERM "$pid" || ! wait "$pid"; then
+ echo >&2 'Finishing of ClickHouse init process failed.'
+ exit 1
+ fi
+fi
+
+# if no args passed to `docker run` or first argument start with `--`, then the user is passing clickhouse-server arguments
+if [[ $# -lt 1 ]] || [[ "$1" == "--"* ]]; then
+ exec $gosu /usr/bin/clickhouse-server --config-file=$CLICKHOUSE_CONFIG "$@"
+fi
+
+# Otherwise, we assume the user want to run his own process, for example a `bash` shell to explore this image
+exec "$@"
diff --git a/clickhouse/users.xml b/clickhouse/users.xml
new file mode 100644
index 00000000..ac054f1e
--- /dev/null
+++ b/clickhouse/users.xml
@@ -0,0 +1,138 @@
+
+
+
+
+
+
+
+ 10000000000
+
+
+ 0
+
+
+ random
+
+
+
+
+ 1
+
+
+
+
+
+
+
+
+ secret
+
+
+
+ ::/0
+
+
+
+ default
+
+
+ default
+
+
+
+
+
+
+ a = 1
+
+
+
+
+ a + b < 1 or c - d > 5
+
+
+
+
+ c = 1
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 3600
+
+
+ 0
+ 0
+ 0
+ 0
+ 0
+
+
+
+
diff --git a/docker-compose.neo4j.yml b/docker-compose.neo4j.yml
new file mode 100644
index 00000000..81b124ca
--- /dev/null
+++ b/docker-compose.neo4j.yml
@@ -0,0 +1,10 @@
+ neo4j:
+ ports:
+ - '7401:7474'
+ - '7602:7687'
+ environment:
+ - NEO4J_AUTH=none
+ volumes:
+ - '/root/neo4j/data:/data'
+ - '/root/neo4j/logs:/logs'
+ image: 'neo4j:latest'
diff --git a/docker-compose.sync.yml b/docker-compose.sync.yml
index 4536f3c4..c376c35b 100644
--- a/docker-compose.sync.yml
+++ b/docker-compose.sync.yml
@@ -1,4 +1,4 @@
-version: '3'
+version: '3.5'
services:
diff --git a/docker-compose.yml b/docker-compose.yml
index cb056aca..74fb92c2 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -1,11 +1,10 @@
-version: '3'
+version: '3.5'
networks:
frontend:
driver: ${NETWORKS_DRIVER}
backend:
driver: ${NETWORKS_DRIVER}
-
volumes:
mysql:
driver: ${VOLUMES_DRIVER}
@@ -53,6 +52,8 @@ volumes:
driver: ${VOLUMES_DRIVER}
docker-in-docker:
driver: ${VOLUMES_DRIVER}
+ react:
+ driver: ${VOLUMES_DRIVER}
services:
@@ -65,13 +66,13 @@ services:
- SHELL_OH_MY_ZSH=${SHELL_OH_MY_ZSH}
- SHELL_OH_MY_ZSH_AUTOSUGESTIONS=${SHELL_OH_MY_ZSH_AUTOSUGESTIONS}
- SHELL_OH_MY_ZSH_ALIASES=${SHELL_OH_MY_ZSH_ALIASES}
- - UBUNTU_SOURCE=${UBUNTU_SOURCE}
- BASE_IMAGE_TAG_PREFIX=${WORKSPACE_BASE_IMAGE_TAG_PREFIX}
- LARADOCK_PHP_VERSION=${PHP_VERSION}
- LARADOCK_PHALCON_VERSION=${PHALCON_VERSION}
- INSTALL_SUBVERSION=${WORKSPACE_INSTALL_SUBVERSION}
- INSTALL_BZ2=${WORKSPACE_INSTALL_BZ2}
- INSTALL_GMP=${WORKSPACE_INSTALL_GMP}
+ - INSTALL_GNUPG=${WORKSPACE_INSTALL_GNUPG}
- INSTALL_XDEBUG=${WORKSPACE_INSTALL_XDEBUG}
- INSTALL_PCOV=${WORKSPACE_INSTALL_PCOV}
- INSTALL_PHPDBG=${WORKSPACE_INSTALL_PHPDBG}
@@ -85,12 +86,17 @@ services:
- INSTALL_MONGO=${WORKSPACE_INSTALL_MONGO}
- INSTALL_AMQP=${WORKSPACE_INSTALL_AMQP}
- INSTALL_CASSANDRA=${WORKSPACE_INSTALL_CASSANDRA}
+ - INSTALL_ZMQ=${WORKSPACE_INSTALL_ZMQ}
- INSTALL_GEARMAN=${WORKSPACE_INSTALL_GEARMAN}
- INSTALL_PHPREDIS=${WORKSPACE_INSTALL_PHPREDIS}
- INSTALL_MSSQL=${WORKSPACE_INSTALL_MSSQL}
- NVM_NODEJS_ORG_MIRROR=${WORKSPACE_NVM_NODEJS_ORG_MIRROR}
- INSTALL_NODE=${WORKSPACE_INSTALL_NODE}
- NPM_REGISTRY=${WORKSPACE_NPM_REGISTRY}
+ - NPM_FETCH_RETRIES=${WORKSPACE_NPM_FETCH_RETRIES}
+ - NPM_FETCH_RETRY_FACTOR=${WORKSPACE_NPM_FETCH_RETRY_FACTOR}
+ - NPM_FETCH_RETRY_MINTIMEOUT=${WORKSPACE_NPM_FETCH_RETRY_MINTIMEOUT}
+ - NPM_FETCH_RETRY_MAXTIMEOUT=${WORKSPACE_NPM_FETCH_RETRY_MAXTIMEOUT}
- INSTALL_PNPM=${WORKSPACE_INSTALL_PNPM}
- INSTALL_YARN=${WORKSPACE_INSTALL_YARN}
- INSTALL_NPM_GULP=${WORKSPACE_INSTALL_NPM_GULP}
@@ -104,11 +110,13 @@ services:
- INSTALL_OCI8=${WORKSPACE_INSTALL_OCI8}
- INSTALL_V8JS=${WORKSPACE_INSTALL_V8JS}
- COMPOSER_GLOBAL_INSTALL=${WORKSPACE_COMPOSER_GLOBAL_INSTALL}
- - COMPOSER_AUTH=${WORKSPACE_COMPOSER_AUTH}
+ - COMPOSER_VERSION=${WORKSPACE_COMPOSER_VERSION}
+ - COMPOSER_AUTH_JSON=${WORKSPACE_COMPOSER_AUTH_JSON}
- COMPOSER_REPO_PACKAGIST=${WORKSPACE_COMPOSER_REPO_PACKAGIST}
- INSTALL_WORKSPACE_SSH=${WORKSPACE_INSTALL_WORKSPACE_SSH}
- INSTALL_LARAVEL_ENVOY=${WORKSPACE_INSTALL_LARAVEL_ENVOY}
- INSTALL_LARAVEL_INSTALLER=${WORKSPACE_INSTALL_LARAVEL_INSTALLER}
+ - INSTALL_XLSWRITER=${WORKSPACE_INSTALL_XLSWRITER}
- INSTALL_DEPLOYER=${WORKSPACE_INSTALL_DEPLOYER}
- INSTALL_PRESTISSIMO=${WORKSPACE_INSTALL_PRESTISSIMO}
- INSTALL_LINUXBREW=${WORKSPACE_INSTALL_LINUXBREW}
@@ -145,17 +153,27 @@ services:
- YARN_VERSION=${WORKSPACE_YARN_VERSION}
- DRUSH_VERSION=${WORKSPACE_DRUSH_VERSION}
- AST_VERSION=${WORKSPACE_AST_VERSION}
+ - IMAGEMAGICK_VERSION=${WORKSPACE_IMAGEMAGICK_VERSION}
- TZ=${WORKSPACE_TIMEZONE}
- BLACKFIRE_CLIENT_ID=${BLACKFIRE_CLIENT_ID}
- BLACKFIRE_CLIENT_TOKEN=${BLACKFIRE_CLIENT_TOKEN}
- INSTALL_POWERLINE=${WORKSPACE_INSTALL_POWERLINE}
- INSTALL_SUPERVISOR=${WORKSPACE_INSTALL_SUPERVISOR}
- INSTALL_FFMPEG=${WORKSPACE_INSTALL_FFMPEG}
+ - INSTALL_AUDIOWAVEFORM=${WORKSPACE_INSTALL_AUDIOWAVEFORM}
- INSTALL_WKHTMLTOPDF=${WORKSPACE_INSTALL_WKHTMLTOPDF}
+ - WKHTMLTOPDF_VERSION=${WORKSPACE_WKHTMLTOPDF_VERSION}
- INSTALL_GNU_PARALLEL=${WORKSPACE_INSTALL_GNU_PARALLEL}
- INSTALL_LNAV=${WORKSPACE_INSTALL_LNAV}
- INSTALL_PROTOC=${WORKSPACE_INSTALL_PROTOC}
+ - INSTALL_PHPDECIMAL=${WORKSPACE_INSTALL_PHPDECIMAL}
+ - INSTALL_ZOOKEEPER=${WORKSPACE_INSTALL_ZOOKEEPER}
+ - INSTALL_SSDB=${WORKSPACE_INSTALL_SSDB}
+ - INSTALL_TRADER=${WORKSPACE_INSTALL_TRADER}
- PROTOC_VERSION=${WORKSPACE_PROTOC_VERSION}
+ - INSTALL_DOCKER_CLIENT=${WORKSPACE_INSTALL_DOCKER_CLIENT}
+ - INSTALL_MEMCACHED=${WORKSPACE_INSTALL_MEMCACHED}
+ - INSTALL_EVENT=${WORKSPACE_INSTALL_EVENT}
- http_proxy
- https_proxy
- no_proxy
@@ -179,6 +197,7 @@ services:
- DOCKER_TLS_VERIFY=1
- DOCKER_TLS_CERTDIR=/certs
- DOCKER_CERT_PATH=/certs/client
+ - CHOKIDAR_USEPOLLING=true
networks:
- frontend
- backend
@@ -195,7 +214,9 @@ services:
- LARADOCK_PHP_VERSION=${PHP_VERSION}
- LARADOCK_PHALCON_VERSION=${PHALCON_VERSION}
- INSTALL_BZ2=${PHP_FPM_INSTALL_BZ2}
+ - INSTALL_ENCHANT=${PHP_FPM_INSTALL_ENCHANT}
- INSTALL_GMP=${PHP_FPM_INSTALL_GMP}
+ - INSTALL_GNUPG=${PHP_FPM_INSTALL_GNUPG}
- INSTALL_XDEBUG=${PHP_FPM_INSTALL_XDEBUG}
- INSTALL_PCOV=${PHP_FPM_INSTALL_PCOV}
- INSTALL_PHPDBG=${PHP_FPM_INSTALL_PHPDBG}
@@ -208,6 +229,7 @@ services:
- INSTALL_MONGO=${PHP_FPM_INSTALL_MONGO}
- INSTALL_AMQP=${PHP_FPM_INSTALL_AMQP}
- INSTALL_CASSANDRA=${PHP_FPM_INSTALL_CASSANDRA}
+ - INSTALL_ZMQ=${PHP_FPM_INSTALL_ZMQ}
- INSTALL_GEARMAN=${PHP_FPM_INSTALL_GEARMAN}
- INSTALL_MSSQL=${PHP_FPM_INSTALL_MSSQL}
- INSTALL_BCMATH=${PHP_FPM_INSTALL_BCMATH}
@@ -230,6 +252,7 @@ services:
- INSTALL_IMAGE_OPTIMIZERS=${PHP_FPM_INSTALL_IMAGE_OPTIMIZERS}
- INSTALL_IMAGEMAGICK=${PHP_FPM_INSTALL_IMAGEMAGICK}
- INSTALL_CALENDAR=${PHP_FPM_INSTALL_CALENDAR}
+ - INSTALL_XLSWRITER=${PHP_FPM_INSTALL_XLSWRITER}
- INSTALL_FAKETIME=${PHP_FPM_INSTALL_FAKETIME}
- INSTALL_IONCUBE=${PHP_FPM_INSTALL_IONCUBE}
- INSTALL_APCU=${PHP_FPM_INSTALL_APCU}
@@ -245,13 +268,25 @@ services:
- INSTALL_PCNTL=${PHP_FPM_INSTALL_PCNTL}
- ADDITIONAL_LOCALES=${PHP_FPM_ADDITIONAL_LOCALES}
- INSTALL_FFMPEG=${PHP_FPM_FFMPEG}
+ - INSTALL_AUDIOWAVEFORM=${PHP_FPM_AUDIOWAVEFORM}
- INSTALL_WKHTMLTOPDF=${PHP_FPM_INSTALL_WKHTMLTOPDF}
+ - WKHTMLTOPDF_VERSION=${WORKSPACE_WKHTMLTOPDF_VERSION}
- INSTALL_XHPROF=${PHP_FPM_INSTALL_XHPROF}
- INSTALL_XMLRPC=${PHP_FPM_INSTALL_XMLRPC}
+ - INSTALL_PHPDECIMAL=${PHP_FPM_INSTALL_PHPDECIMAL}
+ - INSTALL_ZOOKEEPER=${PHP_FPM_INSTALL_ZOOKEEPER}
+ - INSTALL_SSDB=${PHP_FPM_INSTALL_SSDB}
+ - INSTALL_TRADER=${PHP_FPM_INSTALL_TRADER}
+ - INSTALL_EVENT=${PHP_FPM_INSTALL_EVENT}
- DOWNGRADE_OPENSSL_TLS_AND_SECLEVEL=${PHP_DOWNGRADE_OPENSSL_TLS_AND_SECLEVEL}
- PUID=${PHP_FPM_PUID}
- PGID=${PHP_FPM_PGID}
+ - IMAGEMAGICK_VERSION=${PHP_FPM_IMAGEMAGICK_VERSION}
- LOCALE=${PHP_FPM_DEFAULT_LOCALE}
+ - PHP_FPM_NEW_RELIC=${PHP_FPM_NEW_RELIC}
+ - PHP_FPM_NEW_RELIC_KEY=${PHP_FPM_NEW_RELIC_KEY}
+ - PHP_FPM_NEW_RELIC_APP_NAME=${PHP_FPM_NEW_RELIC_APP_NAME}
+ - INSTALL_DOCKER_CLIENT=${PHP_FPM_INSTALL_DOCKER_CLIENT}
- http_proxy
- https_proxy
- no_proxy
@@ -259,6 +294,8 @@ services:
- ./php-fpm/php${PHP_VERSION}.ini:/usr/local/etc/php/php.ini
- ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}${APP_CODE_CONTAINER_FLAG}
- docker-in-docker:/certs/client
+ ports:
+ - "${PHP_FPM_XDEBUG_PORT}:9003"
expose:
- "9000"
extra_hosts:
@@ -289,10 +326,16 @@ services:
- INSTALL_GD=${PHP_WORKER_INSTALL_GD}
- INSTALL_IMAGEMAGICK=${PHP_WORKER_INSTALL_IMAGEMAGICK}
- INSTALL_GMP=${PHP_WORKER_INSTALL_GMP}
+ - INSTALL_GNUPG=${PHP_WORKER_INSTALL_GNUPG}
+ - INSTALL_LDAP=${PHP_WORKER_INSTALL_LDAP}
- INSTALL_PGSQL=${PHP_WORKER_INSTALL_PGSQL}
+ - INSTALL_MONGO=${PHP_WORKER_INSTALL_MONGO}
- INSTALL_BCMATH=${PHP_WORKER_INSTALL_BCMATH}
+ - INSTALL_MEMCACHED=${PHP_WORKER_INSTALL_MEMCACHED}
- INSTALL_OCI8=${PHP_WORKER_INSTALL_OCI8}
+ - INSTALL_MSSQL=${PHP_WORKER_INSTALL_MSSQL}
- INSTALL_PHALCON=${PHP_WORKER_INSTALL_PHALCON}
+ - INSTALL_XLSWRITER=${PHP_WORKER_INSTALL_XLSWRITER}
- INSTALL_SOAP=${PHP_WORKER_INSTALL_SOAP}
- INSTALL_ZIP_ARCHIVE=${PHP_WORKER_INSTALL_ZIP_ARCHIVE}
- INSTALL_MYSQL_CLIENT=${PHP_WORKER_INSTALL_MYSQL_CLIENT}
@@ -303,11 +346,15 @@ services:
- INSTALL_SWOOLE=${PHP_WORKER_INSTALL_SWOOLE}
- INSTALL_TAINT=${PHP_WORKER_INSTALL_TAINT}
- INSTALL_FFMPEG=${PHP_WORKER_INSTALL_FFMPEG}
+ - INSTALL_AUDIOWAVEFORM=${PHP_WORKER_INSTALL_AUDIOWAVEFORM}
- INSTALL_REDIS=${PHP_WORKER_INSTALL_REDIS}
- INSTALL_IMAP=${PHP_WORKER_INSTALL_IMAP}
- INSTALL_XMLRPC=${PHP_WORKER_INSTALL_XMLRPC}
+ - INSTALL_SSDB=${PHP_WORKER_INSTALL_SSDB}
+ - INSTALL_EVENT=${PHP_WORKER_INSTALL_EVENT}
- PUID=${PHP_WORKER_PUID}
- PGID=${PHP_WORKER_PGID}
+ - IMAGEMAGICK_VERSION=${PHP_WORKER_IMAGEMAGICK_VERSION}
volumes:
- ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}${APP_CODE_CONTAINER_FLAG}
- ./php-worker/supervisord.d:/etc/supervisord.d
@@ -327,6 +374,8 @@ services:
- INSTALL_BZ2=${LARAVEL_HORIZON_INSTALL_BZ2}
- INSTALL_GD=${LARAVEL_HORIZON_INSTALL_GD}
- INSTALL_GMP=${LARAVEL_HORIZON_INSTALL_GMP}
+ - INSTALL_GNUPG=${LARAVEL_HORIZON_INSTALL_GNUPG}
+ - INSTALL_LDAP=${LARAVEL_HORIZON_INSTALL_LDAP}
- INSTALL_IMAGEMAGICK=${LARAVEL_HORIZON_INSTALL_IMAGEMAGICK}
- INSTALL_PGSQL=${PHP_FPM_INSTALL_PGSQL}
- INSTALL_ZIP_ARCHIVE=${LARAVEL_HORIZON_INSTALL_ZIP_ARCHIVE}
@@ -334,12 +383,14 @@ services:
- INSTALL_MEMCACHED=${PHP_FPM_INSTALL_MEMCACHED}
- INSTALL_SOCKETS=${LARAVEL_HORIZON_INSTALL_SOCKETS}
- INSTALL_YAML=${LARAVEL_HORIZON_INSTALL_YAML}
- - INSTALL_CASSANDRA=${PHP_FPM_INSTALL_CASSANDRA}
+ - INSTALL_CASSANDRA=${LARAVEL_HORIZON_INSTALL_CASSANDRA}
- INSTALL_PHPREDIS=${LARAVEL_HORIZON_INSTALL_PHPREDIS}
- INSTALL_MONGO=${LARAVEL_HORIZON_INSTALL_MONGO}
- INSTALL_FFMPEG=${LARAVEL_HORIZON_INSTALL_FFMPEG}
+ - INSTALL_AUDIOWAVEFORM=${LARAVEL_HORIZON_INSTALL_AUDIOWAVEFORM}
- PUID=${LARAVEL_HORIZON_PUID}
- PGID=${LARAVEL_HORIZON_PGID}
+ - IMAGEMAGICK_VERSION=${LARAVEL_HORIZON_IMAGEMAGICK_VERSION}
volumes:
- ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}
- ./laravel-horizon/supervisord.d:/etc/supervisord.d
@@ -350,6 +401,17 @@ services:
networks:
- backend
+ ### Soketi Server ##############################################
+ soketi:
+ build:
+ context: ./soketi
+ ports:
+ - "${SOKETI_PORT}:6001"
+ - "${SOKETI_METRICS_SERVER_PORT}:9601"
+ networks:
+ - frontend
+ - backend
+
### NGINX Server #########################################
nginx:
build:
@@ -376,6 +438,32 @@ services:
- frontend
- backend
+### OpenResty Server #########################################
+ openresty:
+ build:
+ context: ./openresty
+ args:
+ - CHANGE_SOURCE=${CHANGE_SOURCE}
+ - PHP_UPSTREAM_CONTAINER=${OPENRESTY_PHP_UPSTREAM_CONTAINER}
+ - PHP_UPSTREAM_PORT=${OPENRESTY_PHP_UPSTREAM_PORT}
+ - http_proxy
+ - https_proxy
+ - no_proxy
+ volumes:
+ - ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}${APP_CODE_CONTAINER_FLAG}
+ - ${OPENRESTY_HOST_LOG_PATH}:/var/log/nginx
+ - ${OPENRESTY_SITES_PATH}:/etc/nginx/sites-available
+ - ${OPENRESTY_SSL_PATH}:/etc/nginx/ssl
+ ports:
+ - "${OPENRESTY_HOST_HTTP_PORT}:80"
+ - "${OPENRESTY_HOST_HTTPS_PORT}:443"
+ - "${VARNISH_BACKEND_PORT}:81"
+ depends_on:
+ - php-fpm
+ networks:
+ - frontend
+ - backend
+
### Blackfire ########################################
blackfire:
image: blackfire/blackfire
@@ -401,6 +489,7 @@ services:
- ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}${APP_CODE_CONTAINER_FLAG}
- ${APACHE_HOST_LOG_PATH}:/var/log/apache2
- ${APACHE_SITES_PATH}:/etc/apache2/sites-available
+ - ${APACHE_SSL_PATH}:/etc/apache2/ssl
ports:
- "${APACHE_HOST_HTTP_PORT}:80"
- "${APACHE_HOST_HTTPS_PORT}:443"
@@ -431,9 +520,10 @@ services:
- ${DATA_PATH_HOST}/minio/config:/root/.minio
ports:
- "${MINIO_PORT}:9000"
+ - "${MINIO_CONSOLE_PORT}:9001"
environment:
- - MINIO_ACCESS_KEY=access
- - MINIO_SECRET_KEY=secretkey
+ - MINIO_ROOT_USER=${MINIO_ROOT_USER}
+ - MINIO_ROOT_PASSWORD=${MINIO_ROOT_PASSWORD}
networks:
- frontend
- backend
@@ -485,7 +575,7 @@ services:
- SA_PASSWORD=${MSSQL_PASSWORD}
- ACCEPT_EULA=Y
volumes:
- - ${DATA_PATH_HOST}/mssql:/var/opt/mssql
+ - mssql:/var/opt/mssql
ports:
- "${MSSQL_PORT}:1433"
networks:
@@ -550,7 +640,11 @@ services:
### PostgreSQL PostGis ###################################
postgres-postgis:
- build: ./postgres-postgis
+ build:
+ context: ./postgres-postgis
+ args:
+ - POSTGIS_VERSION=${POSTGIS_VERSION}
+ - INSTALL_PGSQL_HTTP_FOR_POSTGIS13=${POSTGIS_INSTALL_PGSQL_HTTP_FOR_POSTGIS13}
volumes:
- ${DATA_PATH_HOST}/postgres:/var/lib/postgresql/data
ports:
@@ -564,14 +658,24 @@ services:
### Neo4j ################################################
neo4j:
- build: ./neo4j
ports:
- - "7474:7474"
- - "1337:1337"
+ - '7401:7474'
+ - '7402:7687'
environment:
- - NEO4J_AUTH=default:secret
+ - NEO4J_AUTH=none
volumes:
- - ${DATA_PATH_HOST}/neo4j:/var/lib/neo4j/data
+ - ${DATA_PATH_HOST}/neo4j/data:/data
+ - ${DATA_PATH_HOST}/neo4j/logs:/logs
+ image: 'neo4j:latest'
+ networks:
+ - backend
+### Nats ################################################
+ nats:
+ build: ./nats
+ ports:
+ - "${NATS_CLIENT_PORT}:4222"
+ - "${NATS_MONITORING_PORT}:6222"
+ - "${NATS_ROUTE_PORT}:8222"
networks:
- backend
@@ -580,6 +684,9 @@ services:
build: ./mongo
ports:
- "${MONGODB_PORT}:27017"
+ environment:
+ - MONGO_INITDB_ROOT_USERNAME=${MONGO_USERNAME}
+ - MONGO_INITDB_ROOT_PASSWORD=${MONGO_PASSWORD}
volumes:
- ${DATA_PATH_HOST}/mongo:/data/db
- ${DATA_PATH_HOST}/mongo_config:/data/configdb
@@ -596,11 +703,43 @@ services:
networks:
- backend
-### Redis ################################################
+ ### ClickHouse #############################################
+ clickhouse:
+ build:
+ context: ./clickhouse
+ args:
+ - CLICKHOUSE_VERSION=${CLICKHOUSE_VERSION}
+ - CLICKHOUSE_GOSU_VERSION=${CLICKHOUSE_GOSU_VERSION}
+ environment:
+ - CLICKHOUSE_USER=${CLICKHOUSE_USER}
+ - CLICKHOUSE_PASSWORD=${CLICKHOUSE_PASSWORD}
+ volumes:
+ - ${DATA_PATH_HOST}/clickhouse:/var/lib/clickhouse
+ - ${CLICKHOUSE_CUSTOM_CONFIG}:/etc/clickhouse-server/config.xml
+ - ${CLICKHOUSE_USERS_CUSTOM_CONFIG}:/etc/clickhouse-server/users.xml
+ - ${CLICKHOUSE_HOST_LOG_PATH}:/var/log/clickhouse
+ - ${CLICKHOUSE_ENTRYPOINT_INITDB}:/docker-entrypoint-initdb.d
+ links:
+ - workspace
+ ports:
+ - "${CLICKHOUSE_HTTP_PORT}:8123"
+ - "${CLICKHOUSE_CLIENT_PORT}:9000"
+ - "${CLICKHOUSE_NATIVE_PORT}:9009"
+ ulimits:
+ nproc: 65535
+ nofile:
+ soft: 262144
+ hard: 262144
+ networks:
+# - frontend
+ - backend
+
+ ### Redis ################################################
redis:
build: ./redis
volumes:
- ${DATA_PATH_HOST}/redis:/data
+ command: --requirepass ${REDIS_PASSWORD}
ports:
- "${REDIS_PORT}:6379"
networks:
@@ -613,6 +752,15 @@ services:
- "${REDIS_CLUSTER_PORT_RANGE}:7000-7005"
networks:
- backend
+### SSDB ################################################
+ ssdb:
+ build: ./ssdb
+ volumes:
+ - ${DATA_PATH_HOST}/ssdb:/data
+ ports:
+ - "${SSDB_PORT}:8888"
+ networks:
+ - backend
### ZooKeeper #########################################
zookeeper:
@@ -687,18 +835,36 @@ services:
- "${RABBITMQ_NODE_HOST_PORT}:5672"
- "${RABBITMQ_MANAGEMENT_HTTP_HOST_PORT}:15672"
- "${RABBITMQ_MANAGEMENT_HTTPS_HOST_PORT}:15671"
+ - "${RABBITMQ_WEB_STOMP_HOST_PORT}:15674"
privileged: true
- environment:
- - RABBITMQ_DEFAULT_USER=${RABBITMQ_DEFAULT_USER}
- - RABBITMQ_DEFAULT_PASS=${RABBITMQ_DEFAULT_PASS}
hostname: laradock-rabbitmq
volumes:
- ${DATA_PATH_HOST}/rabbitmq:/var/lib/rabbitmq
+ - ./rabbitmq/rabbitmq.conf:/etc/rabbitmq/rabbitmq.conf
+ - ./rabbitmq/management_agent.disable_metrics_collector.conf:/etc/rabbitmq/conf.d/management_agent.disable_metrics_collector.conf
depends_on:
- php-fpm
networks:
- backend
+### Mercure #############################################
+ mercure:
+ build: ./mercure
+ ports:
+ - "${MERCURE_NODE_HOST_HTTP_PORT}:80"
+ - "${MERCURE_NODE_HOST_HTTPS_PORT}:443"
+ privileged: true
+ environment:
+ - MERCURE_PUBLISHER_JWT_KEY=${MERCURE_PUBLISHER_JWT_KEY}
+ - MERCURE_SUBSCRIBER_JWT_KEY=${MERCURE_SUBSCRIBER_JWT_KEY}
+ - DEBUG=${MERCURE_DEBUG}
+ - SERVER_NAME=${MERCURE_SERVER_NAME}
+ - MERCURE_EXTRA_DIRECTIVES=cors_allowed_origins *\npublish_allowed_origins http://localhost:${MERCURE_NODE_HOST_HTTP_PORT} https://localhost:${MERCURE_NODE_HOST_HTTP_PORT}
+ hostname: laradock-mercure
+ networks:
+ - frontend
+ - backend
+
### Cassandra ############################################
cassandra:
build: ./cassandra
@@ -799,6 +965,9 @@ services:
- MYSQL_USER=${PMA_USER}
- MYSQL_PASSWORD=${PMA_PASSWORD}
- MYSQL_ROOT_PASSWORD=${PMA_ROOT_PASSWORD}
+ - MAX_EXECUTION_TIME=${PMA_MAX_EXECUTION_TIME}
+ - MEMORY_LIMIT=${PMA_MEMORY_LIMIT}
+ - UPLOAD_LIMIT=${PMA_UPLOAD_LIMIT}
ports:
- "${PMA_PORT}:80"
depends_on:
@@ -844,11 +1013,11 @@ services:
### MeiliSearch ##########################################
meilisearch:
image: getmeili/meilisearch:latest
- volumes:
- - ${DATA_PATH_HOST}/meilisearch:/var/lib/meilisearch
- ports:
+ volumes:
+ - ${DATA_PATH_HOST}/meilisearch:/data.ms
+ ports:
- "${MEILISEARCH_HOST_PORT}:7700"
- networks:
+ networks:
- frontend
- backend
@@ -1307,6 +1476,7 @@ services:
volumes:
- ${DATA_PATH_HOST}/gitlab/runner:/etc/gitlab-runner
- /var/run/docker.sock:/var/run/docker.sock:rw
+ restart: always
### JupyterHub #########################################
jupyterhub:
@@ -1365,9 +1535,9 @@ services:
### Docker-in-Docker ################################################
docker-in-docker:
- image: docker:19.03-dind
+ image: docker:20.10-dind
environment:
- DOCKER_TLS_SAN: DNS:docker-in-docker
+ DOCKER_TLS_SAN: DNS:docker-in-docker
privileged: true
volumes:
- ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}
@@ -1400,6 +1570,7 @@ services:
- ADMIN_PASS=${REDIS_WEBUI_PASSWORD}
- REDIS_1_HOST=${REDIS_WEBUI_CONNECT_HOST}
- REDIS_1_PORT=${REDIS_WEBUI_CONNECT_PORT}
+ - REDIS_1_AUTH=${REDIS_PASSWORD}
networks:
- backend
ports:
@@ -1436,6 +1607,18 @@ services:
networks:
- backend
+### Weaver (Athena PDF) #################################################
+ weaver:
+ image: arachnysdocker/athenapdf-service
+ ports:
+ - "8080:8080"
+ env_file:
+ - ./weaver/conf/sample.env
+ networks:
+ - backend
+ depends_on:
+ - workspace
+
### IDE-THEIA ################################################
ide-theia:
build:
@@ -1799,6 +1982,24 @@ services:
volumes:
- ${DATA_PATH_HOST}/Confluence:/var/atlassian/application-data
+### SWAGGER EDITOR ############################################
+ swagger-editor:
+ build: ./swagger-editor
+ ports:
+ - ${SWAGGER_EDITOR_PORT}:8080
+ networks:
+ - backend
+
+### SWAGGER UI ################################################
+ swagger-ui:
+ build: ./swagger-ui
+ environment:
+ - API_URL=${SWAGGER_API_URL}
+ ports:
+ - ${SWAGGER_UI_PORT}:8080
+ networks:
+ - backend
+
### tomcat ####################################################
tomcat:
container_name: tomcat
@@ -1813,3 +2014,64 @@ services:
- ${DATA_PATH_HOST}/tomcat/logs:/usr/local/tomcat/logs
# restart: always
+### react #####################################################
+ react:
+ build:
+ context: ./react
+ ports:
+ - "3000:3000"
+ container_name: react
+ stdin_open: true
+ environment:
+ - CHOKIDAR_USEPOLLING=true
+ networks:
+ - frontend
+ - backend
+ volumes:
+ - ./react:/usr/src/app/react
+ - /usr/src/app/react/node_modules
+
+### kafka ####################################################
+ kafka:
+ image: wurstmeister/kafka
+ ports:
+ - "9092:9092"
+ environment:
+ KAFKA_BROKER_ID: 1
+ KAFKA_ADVERTISED_HOST_NAME: 127.0.0.1
+ KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://127.0.0.1:9092
+ KAFKA_MESSAGE_MAX_BYTES: 2000000
+ KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
+ volumes:
+ - ${DATA_PATH_HOST}/kafka:/kafka
+ - /var/run/docker.sock:/var/run/docker.sock
+ networks:
+ - backend
+
+### kafka-manager ###########################################
+ kafka-manager:
+ image: sheepkiller/kafka-manager
+ ports:
+ - 9020:9000
+ environment:
+ ZK_HOSTS: zookeeper:2181
+ networks:
+ - backend
+
+
+### tarantool ###########################################
+ tarantool:
+ build: ./tarantool
+ volumes:
+ - ${DATA_PATH_HOST}/tarantool:/var/lib/tarantool
+ - ./tarantool/lua:/opt/tarantool
+ ports:
+ - ${TARANTOOL_PORT}:3301
+ networks:
+ - backend
+ tarantool-admin:
+ build: ./tarantool-admin
+ ports:
+ - ${TARANTOOL_ADMIN_PORT}:80
+ networks:
+ - backend
diff --git a/elasticsearch/Dockerfile b/elasticsearch/Dockerfile
index 2ed98015..a0e269bb 100644
--- a/elasticsearch/Dockerfile
+++ b/elasticsearch/Dockerfile
@@ -1,4 +1,4 @@
ARG ELK_VERSION
-FROM docker.elastic.co/elasticsearch/elasticsearch:${ELK_VERSION}
+FROM elasticsearch:${ELK_VERSION}
EXPOSE 9200 9300
diff --git a/ipython/Dockerfile.controller b/ipython/Dockerfile.controller
index d325c6f8..2993d5f8 100644
--- a/ipython/Dockerfile.controller
+++ b/ipython/Dockerfile.controller
@@ -1,4 +1,4 @@
-FROM python:3.5-alpine
+FROM python:3.8-alpine
LABEL maintainer="ahkui "
diff --git a/jenkins/Dockerfile b/jenkins/Dockerfile
index df66c423..99d71acd 100644
--- a/jenkins/Dockerfile
+++ b/jenkins/Dockerfile
@@ -36,11 +36,11 @@ COPY init.groovy /usr/share/jenkins/ref/init.groovy.d/tcp-slave-agent-port.groov
# jenkins version being bundled in this docker image
ARG JENKINS_VERSION
-ENV JENKINS_VERSION ${JENKINS_VERSION:-2.89.2}
+ENV JENKINS_VERSION ${JENKINS_VERSION:-2.303.2}
# jenkins.war checksum, download will be validated using it
-# 2.89.2
-ARG JENKINS_SHA=014f669f32bc6e925e926e260503670b32662f006799b133a031a70a794c8a14
+# 2.303.2
+ARG JENKINS_SHA=c4b8532e25a33001a3d8883d3cd87a664953ace239b486839b683065817d29cf
# Can be used to customize where jenkins.war get downloaded from
diff --git a/kibana/Dockerfile b/kibana/Dockerfile
index adce23cb..7fdd7cb5 100644
--- a/kibana/Dockerfile
+++ b/kibana/Dockerfile
@@ -1,4 +1,4 @@
ARG ELK_VERSION
-FROM docker.elastic.co/kibana/kibana:${ELK_VERSION}
+FROM kibana:${ELK_VERSION}
EXPOSE 5601
diff --git a/laravel-echo-server/Dockerfile b/laravel-echo-server/Dockerfile
index 26a64c1a..bbdd54d5 100644
--- a/laravel-echo-server/Dockerfile
+++ b/laravel-echo-server/Dockerfile
@@ -16,9 +16,9 @@ RUN if [ ${CHANGE_SOURCE} = true ]; then \
;fi
RUN apk add --update \
- python \
- python-dev \
- py-pip \
+ python3 \
+ python3-dev \
+ py3-pip \
build-base
RUN npm install
diff --git a/laravel-horizon/Dockerfile b/laravel-horizon/Dockerfile
index 7e3cfa30..e35f8b06 100644
--- a/laravel-horizon/Dockerfile
+++ b/laravel-horizon/Dockerfile
@@ -23,19 +23,26 @@ RUN apk --update add wget \
curl \
git \
build-base \
- libmemcached-dev \
libmcrypt-dev \
libxml2-dev \
+ pcre-dev \
zlib-dev \
autoconf \
cyrus-sasl-dev \
libgsasl-dev \
- supervisor \
oniguruma-dev \
+ libressl \
+ libressl-dev \
+ supervisor \
procps
-RUN docker-php-ext-install mysqli mbstring pdo pdo_mysql tokenizer xml pcntl
-RUN pecl channel-update pecl.php.net && pecl install memcached mcrypt-1.0.1 mongodb && docker-php-ext-enable memcached mongodb
+RUN pecl channel-update pecl.php.net; \
+ docker-php-ext-install mysqli mbstring pdo pdo_mysql xml pcntl; \
+ if [ $(php -r "echo PHP_MAJOR_VERSION;") = "8" ] && [ $(php -r "echo PHP_MINOR_VERSION;") = "1" ]; then \
+ php -m | grep -q 'tokenizer'; \
+ else \
+ docker-php-ext-install tokenizer; \
+ fi
# Add a non-root user to help install ffmpeg:
ARG PUID=1000
@@ -53,14 +60,66 @@ RUN if [ ${INSTALL_BZ2} = true ]; then \
docker-php-ext-install bz2 \
;fi
+###########################################################################
+# PHP GnuPG:
+###########################################################################
+
+ARG INSTALL_GNUPG=false
+
+RUN set -eux; if [ ${INSTALL_GNUPG} = true ]; then \
+ apk add --no-cache --no-progress --virtual BUILD_DEPS_PHP_GNUPG gpgme-dev; \
+ apk add --no-cache --no-progress gpgme; \
+ pecl install gnupg; \
+ docker-php-ext-enable gnupg; \
+ fi
+
+#Install LDAP
+ARG INSTALL_LDAP=false;
+RUN set -eux; if [ ${INSTALL_LDAP} = true ]; then \
+ apk add --no-cache --no-progress openldap-dev; \
+ docker-php-ext-install ldap; \
+ php -m | grep -oiE '^ldap$'; \
+ fi
+
#Install GD package:
ARG INSTALL_GD=false
RUN if [ ${INSTALL_GD} = true ]; then \
apk add --update --no-cache freetype-dev libjpeg-turbo-dev jpeg-dev libpng-dev; \
- docker-php-ext-configure gd --with-freetype-dir=/usr/lib/ --with-jpeg-dir=/usr/lib/ --with-png-dir=/usr/lib/ && \
+ if [ $(php -r "echo PHP_VERSION_ID - PHP_RELEASE_VERSION;") = "80000" ] || [ $(php -r "echo PHP_VERSION_ID - PHP_RELEASE_VERSION;") = "70400" ]; then \
+ docker-php-ext-configure gd --with-freetype --with-jpeg; \
+ else \
+ docker-php-ext-configure gd --with-freetype-dir=/usr/lib/ --with-jpeg-dir=/usr/lib/ --with-png-dir=/usr/lib/; \
+ fi && \
docker-php-ext-install gd \
;fi
+#Install ImageMagick package:
+ARG INSTALL_IMAGEMAGICK=false
+ARG IMAGEMAGICK_VERSION=latest
+ENV IMAGEMAGICK_VERSION ${IMAGEMAGICK_VERSION}
+RUN set -eux; \
+ if [ ${INSTALL_IMAGEMAGICK} = true ]; then \
+ apk add --update --no-cache imagemagick-dev imagemagick; \
+ if [ $(php -r "echo PHP_MAJOR_VERSION;") = "8" ]; then \
+ cd /tmp && \
+ if [ ${IMAGEMAGICK_VERSION} = "latest" ]; then \
+ git clone https://github.com/Imagick/imagick; \
+ else \
+ git clone --branch ${IMAGEMAGICK_VERSION} https://github.com/Imagick/imagick; \
+ fi && \
+ cd imagick && \
+ phpize && \
+ ./configure && \
+ make && \
+ make install && \
+ rm -r /tmp/imagick; \
+ else \
+ pecl install imagick; \
+ fi && \
+ docker-php-ext-enable imagick; \
+ php -m | grep -q 'imagick'; \
+ fi
+
#Install GMP package:
ARG INSTALL_GMP=false
RUN if [ ${INSTALL_GMP} = true ]; then \
@@ -68,16 +127,6 @@ RUN if [ ${INSTALL_GMP} = true ]; then \
docker-php-ext-install gmp \
;fi
-#Install ImageMagick package:
-ARG INSTALL_IMAGEMAGICK=false
-RUN set -eux; \
- if [ ${INSTALL_IMAGEMAGICK} = true ]; then \
- apk add --update --no-cache imagemagick-dev; \
- pecl install imagick; \
- docker-php-ext-enable imagick; \
- php -m | grep -q 'imagick'; \
- fi
-
#Install BCMath package:
ARG INSTALL_BCMATH=false
RUN if [ ${INSTALL_BCMATH} = true ]; then \
@@ -102,7 +151,7 @@ ARG INSTALL_ZIP_ARCHIVE=false
RUN set -eux; \
if [ ${INSTALL_ZIP_ARCHIVE} = true ]; then \
apk --update add libzip-dev && \
- if [ ${LARADOCK_PHP_VERSION} = "7.3" ] || [ ${LARADOCK_PHP_VERSION} = "7.4" ]; then \
+ if [ ${LARADOCK_PHP_VERSION} = "7.3" ] || [ ${LARADOCK_PHP_VERSION} = "7.4" ] || [ $(php -r "echo PHP_MAJOR_VERSION;") = "8" ]; then \
docker-php-ext-configure zip; \
else \
docker-php-ext-configure zip --with-libzip; \
@@ -115,10 +164,14 @@ RUN set -eux; \
ARG INSTALL_PHPREDIS=false
RUN if [ ${INSTALL_PHPREDIS} = true ]; then \
# Install Php Redis Extension
- printf "\n" | pecl install -o -f redis \
- && rm -rf /tmp/pear \
- && docker-php-ext-enable redis \
-;fi
+ if [ $(php -r "echo PHP_MAJOR_VERSION;") = "5" ]; then \
+ printf "\n" | pecl install -o -f redis-4.3.0; \
+ else \
+ printf "\n" | pecl install -o -f redis; \
+ fi; \
+ rm -rf /tmp/pear; \
+ docker-php-ext-enable redis; \
+fi
ARG INSTALL_FFMPEG=false
RUN if [ ${INSTALL_FFMPEG} = true ]; then \
@@ -126,32 +179,67 @@ RUN if [ ${INSTALL_FFMPEG} = true ]; then \
apk add ffmpeg \
;fi
+# Install BBC Audio Waveform Image Generator:
+ARG INSTALL_AUDIOWAVEFORM=false
+RUN if [ ${INSTALL_AUDIOWAVEFORM} = true ]; then \
+ apk add git make cmake gcc g++ libmad-dev libid3tag-dev libsndfile-dev gd-dev boost-dev libgd libpng-dev zlib-dev \
+ && apk add autoconf automake libtool gettext \
+ && wget https://github.com/xiph/flac/archive/1.3.3.tar.gz \
+ && tar xzf 1.3.3.tar.gz \
+ && cd flac-1.3.3 \
+ && ./autogen.sh \
+ && ./configure --enable-shared=no \
+ && make \
+ && make install \
+ && cd .. \
+ && git clone https://github.com/bbc/audiowaveform.git \
+ && cd audiowaveform \
+ && wget https://github.com/google/googletest/archive/release-1.10.0.tar.gz \
+ && tar xzf release-1.10.0.tar.gz \
+ && ln -s googletest-release-1.10.0/googletest googletest \
+ && ln -s googletest-release-1.10.0/googlemock googlemock \
+ && mkdir build \
+ && cd build \
+ && cmake .. \
+ && make \
+ && make install \
+;fi
+
+
# Install Cassandra drivers:
ARG INSTALL_CASSANDRA=false
RUN if [ ${INSTALL_CASSANDRA} = true ]; then \
- apk --update add cassandra-cpp-driver \
- ;fi
-
-WORKDIR /usr/src
-RUN if [ ${INSTALL_CASSANDRA} = true ]; then \
- git clone https://github.com/datastax/php-driver.git \
- && cd php-driver/ext \
- && phpize \
- && mkdir -p /usr/src/php-driver/build \
- && cd /usr/src/php-driver/build \
- && ../ext/configure > /dev/null \
- && make clean >/dev/null \
- && make >/dev/null 2>&1 \
- && make install \
- && docker-php-ext-enable cassandra \
+ if [ $(php -r "echo PHP_MAJOR_VERSION;") = "8" ]; then \
+ echo "PHP Driver for Cassandra is not supported for PHP 8.0."; \
+ else \
+ apk add --update --no-cache cassandra-cpp-driver libuv gmp \
+ && apk add --update --no-cache cassandra-cpp-driver-dev gmp-dev --virtual .build-sec \
+ && cd /usr/src \
+ && git clone https://github.com/datastax/php-driver.git \
+ && cd php-driver/ext \
+ && phpize \
+ && mkdir -p /usr/src/php-driver/build \
+ && cd /usr/src/php-driver/build \
+ && ../ext/configure > /dev/null \
+ && make clean > /dev/null \
+ && make > /dev/null 2>&1 \
+ && make install \
+ && docker-php-ext-enable cassandra \
+ && apk del .build-sec; \
+ fi \
;fi
# Install MongoDB drivers:
ARG INSTALL_MONGO=false
RUN if [ ${INSTALL_MONGO} = true ]; then \
- pecl install mongodb \
- && docker-php-ext-enable mongodb \
- ;fi
+ if [ $(php -r "echo PHP_MAJOR_VERSION;") = "5" ]; then \
+ pecl install mongo; \
+ docker-php-ext-enable mongo; \
+ else \
+ pecl install mongodb; \
+ docker-php-ext-enable mongodb; \
+ fi; \
+ fi
###########################################################################
# YAML: extension
@@ -162,16 +250,20 @@ ARG INSTALL_YAML=false
RUN if [ ${INSTALL_YAML} = true ]; then \
apk --update add -U --no-cache --virtual temp yaml-dev \
&& apk add --no-cache yaml \
- && docker-php-source extract \
- && pecl channel-update pecl.php.net \
- && pecl install yaml \
+ && docker-php-source extract; \
+ if [ $(php -r "echo PHP_MAJOR_VERSION;") = "5" ]; then \
+ pecl install yaml-1.3.2; \
+ elif [ $(php -r "echo PHP_MAJOR_VERSION;") = "7" ] && [ $(php -r "echo PHP_MINOR_VERSION;") = "0" ]; then \
+ pecl install yaml-2.0.4; \
+ else \
+ pecl install yaml; \
+ fi \
&& docker-php-ext-enable yaml \
&& pecl clear-cache \
&& docker-php-source delete \
&& apk del temp \
;fi
-
###########################################################################
# PHP Memcached:
###########################################################################
@@ -179,25 +271,20 @@ RUN if [ ${INSTALL_YAML} = true ]; then \
ARG INSTALL_MEMCACHED=false
RUN if [ ${INSTALL_MEMCACHED} = true ]; then \
+ apk --update add libmemcached-dev; \
# Install the php memcached extension
if [ $(php -r "echo PHP_MAJOR_VERSION;") = "5" ]; then \
- curl -L -o /tmp/memcached.tar.gz "https://github.com/php-memcached-dev/php-memcached/archive/2.2.0.tar.gz"; \
+ pecl install memcached-2.2.0; \
else \
- curl -L -o /tmp/memcached.tar.gz "https://github.com/php-memcached-dev/php-memcached/archive/v3.1.3.tar.gz"; \
- fi \
- && mkdir -p memcached \
- && tar -C memcached -zxvf /tmp/memcached.tar.gz --strip 1 \
- && ( \
- cd memcached \
- && phpize \
- && ./configure \
- && make -j$(nproc) \
- && make install \
- ) \
- && rm -r memcached \
- && rm /tmp/memcached.tar.gz \
- && docker-php-ext-enable memcached \
- ;fi
+ pecl install memcached; \
+ fi; \
+ docker-php-ext-enable memcached; \
+ php -m | grep -r 'memcached'; \
+fi
+
+#--------------------------------------------------------------------------
+# Clean up
+#--------------------------------------------------------------------------
RUN rm /var/cache/apk/* \
&& mkdir -p /var/www
diff --git a/laravel-horizon/supervisord.d/laravel-horizon.conf.example b/laravel-horizon/supervisord.d/laravel-horizon.conf.example
index f664320a..4ac80b96 100644
--- a/laravel-horizon/supervisord.d/laravel-horizon.conf.example
+++ b/laravel-horizon/supervisord.d/laravel-horizon.conf.example
@@ -5,3 +5,4 @@ command=php /var/www/artisan horizon
autostart=true
autorestart=true
redirect_stderr=true
+stdout_logfile=/var/www/storage/logs/horizon.log
diff --git a/logstash/Dockerfile b/logstash/Dockerfile
index cc862b21..92564bf2 100644
--- a/logstash/Dockerfile
+++ b/logstash/Dockerfile
@@ -1,5 +1,5 @@
ARG ELK_VERSION
-FROM docker.elastic.co/logstash/logstash:${ELK_VERSION}
+FROM logstash:${ELK_VERSION}
USER root
RUN rm -f /usr/share/logstash/pipeline/logstash.conf
diff --git a/mariadb/my.cnf b/mariadb/my.cnf
index f14f2690..fd51f7ea 100644
--- a/mariadb/my.cnf
+++ b/mariadb/my.cnf
@@ -5,3 +5,6 @@
# For explanations see
# http://dev.mysql.com/doc/mysql/en/server-system-variables.html
+[mysqld]
+innodb_log_file_size = 4048M
+innodb_strict_mode = 0
diff --git a/mercure/Dockerfile b/mercure/Dockerfile
new file mode 100644
index 00000000..0ce140a9
--- /dev/null
+++ b/mercure/Dockerfile
@@ -0,0 +1,5 @@
+FROM dunglas/mercure
+
+LABEL maintainer="Kévin Dunglas "
+
+EXPOSE 80 443
diff --git a/minio/Dockerfile b/minio/Dockerfile
index f394fcf7..eea0b415 100644
--- a/minio/Dockerfile
+++ b/minio/Dockerfile
@@ -2,4 +2,4 @@ FROM minio/minio
LABEL maintainer="Thor Erik Lie "
-ENTRYPOINT ["minio", "server", "/export"]
+ENTRYPOINT ["minio", "server", "--console-address", ":9001", "/export"]
diff --git a/nats/Dockerfile b/nats/Dockerfile
new file mode 100644
index 00000000..9e381b2f
--- /dev/null
+++ b/nats/Dockerfile
@@ -0,0 +1,5 @@
+FROM nats:latest
+
+LABEL maintainer="Alexander Palchikov "
+
+COPY nats-server.conf /etc/nats/nats-server.conf
\ No newline at end of file
diff --git a/nats/nats-server.conf b/nats/nats-server.conf
new file mode 100644
index 00000000..cac772b0
--- /dev/null
+++ b/nats/nats-server.conf
@@ -0,0 +1,25 @@
+# Client port of 4222 on all interfaces
+port: 4222
+
+# HTTP monitoring port
+monitor_port: 8222
+
+# This is for clustering multiple servers together.
+cluster {
+
+ # Route connections to be received on any interface on port 6222
+ port: 6222
+
+ # Routes are protected, so need to use them with --routes flag
+ # e.g. --routes=nats-route://ruser:T0pS3cr3t@otherdockerhost:6222
+ authorization {
+ user: ruser
+ password: T0pS3cr3t
+ timeout: 2
+ }
+
+ # Routes are actively solicited and connected to from this server.
+ # This Docker image has none by default, but you can pass a
+ # flag to the gnatsd docker image to create one to an existing server.
+ routes = []
+}
\ No newline at end of file
diff --git a/neo4j/.sentinel b/neo4j/.sentinel
new file mode 100644
index 00000000..e69de29b
diff --git a/neo4j/Dockerfile b/neo4j/Dockerfile
index 112af5cd..de412e77 100644
--- a/neo4j/Dockerfile
+++ b/neo4j/Dockerfile
@@ -1,7 +1,51 @@
-FROM tpires/neo4j
+FROM openjdk:8-jre-slim
-LABEL maintainer="Mahmoud Zalt "
+ENV NEO4J_SHA256=1c8b6ac0ffd346f0707fe1af713ef74f1c6ce1ea6feb5e9a0bd170e7a8a34a10 \
+ NEO4J_TARBALL=neo4j-community-3.5.17-unix.tar.gz \
+ NEO4J_EDITION=community \
+ NEO4J_HOME="/var/lib/neo4j" \
+ TINI_VERSION="v0.18.0" \
+ TINI_SHA256="12d20136605531b09a2c2dac02ccee85e1b874eb322ef6baf7561cd93f93c855"
+ARG NEO4J_URI=https://dist.neo4j.org/neo4j-community-3.5.17-unix.tar.gz
-VOLUME /var/lib/neo4j/data
+RUN addgroup --system neo4j && adduser --system --no-create-home --home "${NEO4J_HOME}" --ingroup neo4j neo4j
-EXPOSE 7474 1337
+COPY ./local-package/* /tmp/
+
+RUN apt update \
+ && apt install -y curl wget gosu jq \
+ && curl -L --fail --silent --show-error "https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini" > /sbin/tini \
+ && echo "${TINI_SHA256} /sbin/tini" | sha256sum -c --strict --quiet \
+ && chmod +x /sbin/tini \
+ && curl --fail --silent --show-error --location --remote-name ${NEO4J_URI} \
+ && echo "${NEO4J_SHA256} ${NEO4J_TARBALL}" | sha256sum -c --strict --quiet \
+ && tar --extract --file ${NEO4J_TARBALL} --directory /var/lib \
+ && mv /var/lib/neo4j-* "${NEO4J_HOME}" \
+ && rm ${NEO4J_TARBALL} \
+ && mv "${NEO4J_HOME}"/data /data \
+ && mv "${NEO4J_HOME}"/logs /logs \
+ && chown -R neo4j:neo4j /data \
+ && chmod -R 777 /data \
+ && chown -R neo4j:neo4j /logs \
+ && chmod -R 777 /logs \
+ && chown -R neo4j:neo4j "${NEO4J_HOME}" \
+ && chmod -R 777 "${NEO4J_HOME}" \
+ && ln -s /data "${NEO4J_HOME}"/data \
+ && ln -s /logs "${NEO4J_HOME}"/logs \
+ && mv /tmp/neo4jlabs-plugins.json /neo4jlabs-plugins.json \
+ && rm -rf /tmp/* \
+ && rm -rf /var/lib/apt/lists/* \
+ && apt-get -y purge --auto-remove curl
+
+ENV PATH "${NEO4J_HOME}"/bin:$PATH
+
+WORKDIR "${NEO4J_HOME}"
+
+VOLUME /data /logs
+
+COPY docker-entrypoint.sh /docker-entrypoint.sh
+
+EXPOSE 7474 7473 7687
+
+ENTRYPOINT ["/sbin/tini", "-g", "--", "/docker-entrypoint.sh"]
+CMD ["neo4j"]
diff --git a/neo4j/docker-entrypoint.sh b/neo4j/docker-entrypoint.sh
new file mode 100755
index 00000000..fd83c042
--- /dev/null
+++ b/neo4j/docker-entrypoint.sh
@@ -0,0 +1,484 @@
+#!/bin/bash -eu
+
+cmd="$1"
+
+function running_as_root
+{
+ test "$(id -u)" = "0"
+}
+
+function secure_mode_enabled
+{
+ test "${SECURE_FILE_PERMISSIONS:=no}" = "yes"
+}
+
+function containsElement
+{
+ local e match="$1"
+ shift
+ for e; do [[ "$e" == "$match" ]] && return 0; done
+ return 1
+}
+
+function is_readable
+{
+ # this code is fairly ugly but works no matter who this script is running as.
+ # It would be nice if the writability tests could use this logic somehow.
+ local _file=${1}
+ perm=$(stat -c %a "${_file}")
+
+ # everyone permission
+ if [[ ${perm:2:1} -ge 4 ]]; then
+ return 0
+ fi
+ # owner permissions
+ if [[ ${perm:0:1} -ge 4 ]]; then
+ if [[ "$(stat -c %U ${_file})" = "${userid}" ]] || [[ "$(stat -c %u ${_file})" = "${userid}" ]]; then
+ return 0
+ fi
+ fi
+ # group permissions
+ if [[ ${perm:1:1} -ge 4 ]]; then
+ if containsElement "$(stat -c %g ${_file})" "${groups[@]}" || containsElement "$(stat -c %G ${_file})" "${groups[@]}" ; then
+ return 0
+ fi
+ fi
+ return 1
+}
+
+function is_writable
+{
+ # It would be nice if this and the is_readable function could combine somehow
+ local _file=${1}
+ perm=$(stat -c %a "${_file}")
+
+ # everyone permission
+ if containsElement ${perm:2:1} 2 3 6 7; then
+ return 0
+ fi
+ # owner permissions
+ if containsElement ${perm:0:1} 2 3 6 7; then
+ if [[ "$(stat -c %U ${_file})" = "${userid}" ]] || [[ "$(stat -c %u ${_file})" = "${userid}" ]]; then
+ return 0
+ fi
+ fi
+ # group permissions
+ if containsElement ${perm:1:1} 2 3 6 7; then
+ if containsElement "$(stat -c %g ${_file})" "${groups[@]}" || containsElement "$(stat -c %G ${_file})" "${groups[@]}" ; then
+ return 0
+ fi
+ fi
+ return 1
+}
+
+
+function print_permissions_advice_and_fail
+{
+ _directory=${1}
+ echo >&2 "
+Folder ${_directory} is not accessible for user: ${userid} or group ${groupid} or groups ${groups[@]}, this is commonly a file permissions issue on the mounted folder.
+
+Hints to solve the issue:
+1) Make sure the folder exists before mounting it. Docker will create the folder using root permissions before starting the Neo4j container. The root permissions disallow Neo4j from writing to the mounted folder.
+2) Pass the folder owner's user ID and group ID to docker run, so that docker runs as that user.
+If the folder is owned by the current user, this can be done by adding this flag to your docker run command:
+ --user=\$(id -u):\$(id -g)
+ "
+ exit 1
+}
+
+function check_mounted_folder_readable
+{
+ local _directory=${1}
+ if ! is_readable "${_directory}"; then
+ print_permissions_advice_and_fail "${_directory}"
+ fi
+}
+
+function check_mounted_folder_with_chown
+{
+# The /data and /log directory are a bit different because they are very likely to be mounted by the user but not
+# necessarily writable.
+# This depends on whether a user ID is passed to the container and which folders are mounted.
+#
+# No user ID passed to container:
+# 1) No folders are mounted.
+# The /data and /log folder are owned by neo4j by default, so should be writable already.
+# 2) Both /log and /data are mounted.
+# This means on start up, /data and /logs are owned by an unknown user and we should chown them to neo4j for
+# backwards compatibility.
+#
+# User ID passed to container:
+# 1) Both /data and /logs are mounted
+# The /data and /logs folders are owned by an unknown user but we *should* have rw permission to them.
+# That should be verified and error (helpfully) if not.
+# 2) User mounts /data or /logs *but not both*
+# The unmounted folder is still owned by neo4j, which should already be writable. The mounted folder should
+# have rw permissions through user id. This should be verified.
+# 3) No folders are mounted.
+# The /data and /log folder are owned by neo4j by default, and these are already writable by the user.
+# (This is a very unlikely use case).
+
+ local mountFolder=${1}
+ if running_as_root; then
+ if ! is_writable "${mountFolder}" && ! secure_mode_enabled; then
+ # warn that we're about to chown the folder and then chown it
+ echo "Warning: Folder mounted to \"${mountFolder}\" is not writable from inside container. Changing folder owner to ${userid}."
+ chown -R "${userid}":"${groupid}" "${mountFolder}"
+ fi
+ else
+ if [[ ! -w "${mountFolder}" ]] && [[ "$(stat -c %U ${mountFolder})" != "neo4j" ]]; then
+ print_permissions_advice_and_fail "${mountFolder}"
+ fi
+ fi
+}
+
+function load_plugin_from_github
+{
+ # Load a plugin at runtime. The provided github repository must have a versions.json on the master branch with the
+ # correct format.
+ local _plugin_name="${1}" #e.g. apoc, graph-algorithms, graph-ql
+
+ local _plugins_dir="${NEO4J_HOME}/plugins"
+ if [ -d /plugins ]; then
+ local _plugins_dir="/plugins"
+ fi
+ local _versions_json_url="$(jq --raw-output "with_entries( select(.key==\"${_plugin_name}\") ) | to_entries[] | .value.versions" /neo4jlabs-plugins.json )"
+ # Using the same name for the plugin irrespective of version ensures we don't end up with different versions of the same plugin
+ local _destination="${_plugins_dir}/${_plugin_name}.jar"
+ local _neo4j_version="$(neo4j --version | cut -d' ' -f2)"
+
+ # Now we call out to github to get the versions.json for this plugin and we parse that to find the url for the correct plugin jar for our neo4j version
+ echo "Fetching versions.json for Plugin '${_plugin_name}' from ${_versions_json_url}"
+ local _versions_json="$(wget -q --timeout 300 --tries 30 -O - "${_versions_json_url}")"
+ local _plugin_jar_url="$(echo "${_versions_json}" | jq --raw-output ".[] | select(.neo4j==\"${_neo4j_version}\") | .jar")"
+ if [[ -z "${_plugin_jar_url}" ]]; then
+ echo >&2 "Error: No jar URL found for version '${_neo4j_version}' in versions.json from '${_versions_json_url}'"
+ echo >&2 "${_versions_json}"
+ exit 1
+ fi
+ echo "Installing Plugin '${_plugin_name}' from ${_plugin_jar_url} to ${_destination} "
+ wget -q --timeout 300 --tries 30 --output-document="${_destination}" "${_plugin_jar_url}"
+
+ if ! is_readable "${_destination}"; then
+ echo >&2 "Plugin at '${_destination}' is not readable"
+ exit 1
+ fi
+}
+
+function apply_plugin_default_configuration
+{
+ # Set the correct Load a plugin at runtime. The provided github repository must have a versions.json on the master branch with the
+ # correct format.
+ local _plugin_name="${1}" #e.g. apoc, graph-algorithms, graph-ql
+ local _reference_conf="${2}" # used to determine if we can override properties
+ local _neo4j_conf="${NEO4J_HOME}/conf/neo4j.conf"
+
+ local _property _value
+ echo "Applying default values for plugin ${_plugin_name} to neo4j.conf"
+ for _entry in $(jq --compact-output --raw-output "with_entries( select(.key==\"${_plugin_name}\") ) | to_entries[] | .value.properties | to_entries[]" /neo4jlabs-plugins.json); do
+ _property="$(jq --raw-output '.key' <<< "${_entry}")"
+ _value="$(jq --raw-output '.value' <<< "${_entry}")"
+
+ # the first grep strips out comments
+ if grep -o "^[^#]*" "${_reference_conf}" | grep -q --fixed-strings "${_property}=" ; then
+ # property is already set in the user provided config. In this case we don't override what has been set explicitly by the user.
+ echo "Skipping ${_property} for plugin ${_plugin_name} because it is already set"
+ else
+ if grep -o "^[^#]*" "${_neo4j_conf}" | grep -q --fixed-strings "${_property}=" ; then
+ sed --in-place "s/${_property}=/&${_value},/" "${_neo4j_conf}"
+ else
+ echo "${_property}=${_value}" >> "${_neo4j_conf}"
+ fi
+ fi
+ done
+}
+
+function install_neo4j_labs_plugins
+{
+ # We store a copy of the config before we modify it for the plugins to allow us to see if there are user-set values in the input config that we shouldn't override
+ local _old_config="$(mktemp)"
+ cp "${NEO4J_HOME}"/conf/neo4j.conf "${_old_config}"
+ for plugin_name in $(echo "${NEO4JLABS_PLUGINS}" | jq --raw-output '.[]'); do
+ load_plugin_from_github "${plugin_name}"
+ apply_plugin_default_configuration "${plugin_name}" "${_old_config}"
+ done
+ rm "${_old_config}"
+}
+
+# If we're running as root, then run as the neo4j user. Otherwise
+# docker is running with --user and we simply use that user. Note
+# that su-exec, despite its name, does not replicate the functionality
+# of exec, so we need to use both
+if running_as_root; then
+ userid="neo4j"
+ groupid="neo4j"
+ groups=($(id -G neo4j))
+ exec_cmd="exec gosu neo4j:neo4j"
+else
+ userid="$(id -u)"
+ groupid="$(id -g)"
+ groups=($(id -G))
+ exec_cmd="exec"
+fi
+readonly userid
+readonly groupid
+readonly groups
+readonly exec_cmd
+
+
+# Need to chown the home directory - but a user might have mounted a
+# volume here (notably a conf volume). So take care not to chown
+# volumes (stuff not owned by neo4j)
+if running_as_root; then
+ # Non-recursive chown for the base directory
+ chown "${userid}":"${groupid}" "${NEO4J_HOME}"
+ chmod 700 "${NEO4J_HOME}"
+ find "${NEO4J_HOME}" -mindepth 1 -maxdepth 1 -user root -type d -exec chown -R ${userid}:${groupid} {} \;
+ find "${NEO4J_HOME}" -mindepth 1 -maxdepth 1 -type d -exec chmod -R 700 {} \;
+fi
+
+# Only prompt for license agreement if command contains "neo4j" in it
+if [[ "${cmd}" == *"neo4j"* ]]; then
+ if [ "${NEO4J_EDITION}" == "enterprise" ]; then
+ if [ "${NEO4J_ACCEPT_LICENSE_AGREEMENT:=no}" != "yes" ]; then
+ echo >&2 "
+In order to use Neo4j Enterprise Edition you must accept the license agreement.
+
+(c) Neo4j Sweden AB. 2019. All Rights Reserved.
+Use of this Software without a proper commercial license with Neo4j,
+Inc. or its affiliates is prohibited.
+
+Email inquiries can be directed to: licensing@neo4j.com
+
+More information is also available at: https://neo4j.com/licensing/
+
+
+To accept the license agreement set the environment variable
+NEO4J_ACCEPT_LICENSE_AGREEMENT=yes
+
+To do this you can use the following docker argument:
+
+ --env=NEO4J_ACCEPT_LICENSE_AGREEMENT=yes
+"
+ exit 1
+ fi
+ fi
+fi
+
+# Env variable naming convention:
+# - prefix NEO4J_
+# - double underscore char '__' instead of single underscore '_' char in the setting name
+# - underscore char '_' instead of dot '.' char in the setting name
+# Example:
+# NEO4J_dbms_tx__log_rotation_retention__policy env variable to set
+# dbms.tx_log.rotation.retention_policy setting
+
+# Backward compatibility - map old hardcoded env variables into new naming convention (if they aren't set already)
+# Set some to default values if unset
+: ${NEO4J_dbms_tx__log_rotation_retention__policy:=${NEO4J_dbms_txLog_rotation_retentionPolicy:-"100M size"}}
+: ${NEO4J_wrapper_java_additional:=${NEO4J_UDC_SOURCE:-"-Dneo4j.ext.udc.source=docker"}}
+: ${NEO4J_dbms_unmanaged__extension__classes:=${NEO4J_dbms_unmanagedExtensionClasses:-}}
+: ${NEO4J_dbms_allow__format__migration:=${NEO4J_dbms_allowFormatMigration:-}}
+: ${NEO4J_dbms_connectors_default__advertised__address:=${NEO4J_dbms_connectors_defaultAdvertisedAddress:-}}
+
+if [ "${NEO4J_EDITION}" == "enterprise" ];
+ then
+ : ${NEO4J_causal__clustering_expected__core__cluster__size:=${NEO4J_causalClustering_expectedCoreClusterSize:-}}
+ : ${NEO4J_causal__clustering_initial__discovery__members:=${NEO4J_causalClustering_initialDiscoveryMembers:-}}
+ : ${NEO4J_causal__clustering_discovery__advertised__address:=${NEO4J_causalClustering_discoveryAdvertisedAddress:-"$(hostname):5000"}}
+ : ${NEO4J_causal__clustering_transaction__advertised__address:=${NEO4J_causalClustering_transactionAdvertisedAddress:-"$(hostname):6000"}}
+ : ${NEO4J_causal__clustering_raft__advertised__address:=${NEO4J_causalClustering_raftAdvertisedAddress:-"$(hostname):7000"}}
+ # Custom settings for dockerized neo4j
+ : ${NEO4J_causal__clustering_discovery__advertised__address:=$(hostname):5000}
+ : ${NEO4J_causal__clustering_transaction__advertised__address:=$(hostname):6000}
+ : ${NEO4J_causal__clustering_raft__advertised__address:=$(hostname):7000}
+fi
+
+# unset old hardcoded unsupported env variables
+unset NEO4J_dbms_txLog_rotation_retentionPolicy NEO4J_UDC_SOURCE \
+ NEO4J_dbms_unmanagedExtensionClasses NEO4J_dbms_allowFormatMigration \
+ NEO4J_dbms_connectors_defaultAdvertisedAddress NEO4J_ha_serverId \
+ NEO4J_ha_initialHosts NEO4J_causalClustering_expectedCoreClusterSize \
+ NEO4J_causalClustering_initialDiscoveryMembers \
+ NEO4J_causalClustering_discoveryListenAddress \
+ NEO4J_causalClustering_discoveryAdvertisedAddress \
+ NEO4J_causalClustering_transactionListenAddress \
+ NEO4J_causalClustering_transactionAdvertisedAddress \
+ NEO4J_causalClustering_raftListenAddress \
+ NEO4J_causalClustering_raftAdvertisedAddress
+
+if [ -d /conf ]; then
+ if secure_mode_enabled; then
+ check_mounted_folder_readable "/conf"
+ fi
+ find /conf -type f -exec cp {} "${NEO4J_HOME}"/conf \;
+fi
+
+if [ -d /ssl ]; then
+ if secure_mode_enabled; then
+ check_mounted_folder_readable "/ssl"
+ fi
+ : ${NEO4J_dbms_directories_certificates:="/ssl"}
+fi
+
+if [ -d /plugins ]; then
+ if secure_mode_enabled; then
+ if [[ ! -z "${NEO4JLABS_PLUGINS:-}" ]]; then
+ # We need write permissions
+ check_mounted_folder_with_chown "/plugins"
+ fi
+ check_mounted_folder_readable "/plugins"
+ fi
+ : ${NEO4J_dbms_directories_plugins:="/plugins"}
+fi
+
+if [ -d /import ]; then
+ if secure_mode_enabled; then
+ check_mounted_folder_readable "/import"
+ fi
+ : ${NEO4J_dbms_directories_import:="/import"}
+fi
+
+if [ -d /metrics ]; then
+ if secure_mode_enabled; then
+ check_mounted_folder_readable "/metrics"
+ fi
+ : ${NEO4J_dbms_directories_metrics:="/metrics"}
+fi
+
+if [ -d /logs ]; then
+ check_mounted_folder_with_chown "/logs"
+ : ${NEO4J_dbms_directories_logs:="/logs"}
+fi
+
+if [ -d /data ]; then
+ check_mounted_folder_with_chown "/data"
+ if [ -d /data/databases ]; then
+ check_mounted_folder_with_chown "/data/databases"
+ fi
+ if [ -d /data/dbms ]; then
+ check_mounted_folder_with_chown "/data/dbms"
+ fi
+fi
+
+
+# set the neo4j initial password only if you run the database server
+if [ "${cmd}" == "neo4j" ]; then
+ if [ "${NEO4J_AUTH:-}" == "none" ]; then
+ NEO4J_dbms_security_auth__enabled=false
+ elif [[ "${NEO4J_AUTH:-}" == neo4j/* ]]; then
+ password="${NEO4J_AUTH#neo4j/}"
+ if [ "${password}" == "neo4j" ]; then
+ echo >&2 "Invalid value for password. It cannot be 'neo4j', which is the default."
+ exit 1
+ fi
+
+ if running_as_root; then
+ # running set-initial-password as root will create subfolders to /data as root, causing startup fail when neo4j can't read or write the /data/dbms folder
+ # creating the folder first will avoid that
+ mkdir -p /data/dbms
+ chown "${userid}":"${groupid}" /data/dbms
+ fi
+ # Will exit with error if users already exist (and print a message explaining that)
+ # we probably don't want the message though, since it throws an error message on restarting the container.
+ neo4j-admin set-initial-password "${password}" 2>/dev/null || true
+ elif [ -n "${NEO4J_AUTH:-}" ]; then
+ echo >&2 "Invalid value for NEO4J_AUTH: '${NEO4J_AUTH}'"
+ exit 1
+ fi
+fi
+
+declare -A COMMUNITY
+declare -A ENTERPRISE
+
+COMMUNITY=(
+ [dbms.tx_log.rotation.retention_policy]="100M size"
+ [dbms.memory.pagecache.size]="512M"
+ [dbms.connectors.default_listen_address]="0.0.0.0"
+ [dbms.connector.https.listen_address]="0.0.0.0:7473"
+ [dbms.connector.http.listen_address]="0.0.0.0:7474"
+ [dbms.connector.bolt.listen_address]="0.0.0.0:7687"
+)
+
+ENTERPRISE=(
+ [causal_clustering.transaction_listen_address]="0.0.0.0:6000"
+ [causal_clustering.raft_listen_address]="0.0.0.0:7000"
+ [causal_clustering.discovery_listen_address]="0.0.0.0:5000"
+)
+
+for conf in ${!COMMUNITY[@]} ; do
+
+ if ! grep -q "^$conf" "${NEO4J_HOME}"/conf/neo4j.conf
+ then
+ echo -e "\n"$conf=${COMMUNITY[$conf]} >> "${NEO4J_HOME}"/conf/neo4j.conf
+ fi
+done
+
+for conf in ${!ENTERPRISE[@]} ; do
+
+ if [ "${NEO4J_EDITION}" == "enterprise" ];
+ then
+ if ! grep -q "^$conf" "${NEO4J_HOME}"/conf/neo4j.conf
+ then
+ echo -e "\n"$conf=${ENTERPRISE[$conf]} >> "${NEO4J_HOME}"/conf/neo4j.conf
+ fi
+ fi
+done
+
+#The udc.source=tarball should be replaced by udc.source=docker in both dbms.jvm.additional and wrapper.java.additional
+#Using sed to replace only this part will allow the custom configs to be added after, separated by a ,.
+if grep -q "udc.source=tarball" "${NEO4J_HOME}"/conf/neo4j.conf; then
+ sed -i -e 's/udc.source=tarball/udc.source=docker/g' "${NEO4J_HOME}"/conf/neo4j.conf
+fi
+#The udc.source should always be set to docker by default and we have to allow also custom configs to be added after that.
+#In this case, this piece of code helps to add the default value and a , to support custom configs after.
+if ! grep -q "dbms.jvm.additional=-Dunsupported.dbms.udc.source=docker" "${NEO4J_HOME}"/conf/neo4j.conf; then
+ sed -i -e 's/dbms.jvm.additional=/dbms.jvm.additional=-Dunsupported.dbms.udc.source=docker,/g' "${NEO4J_HOME}"/conf/neo4j.conf
+fi
+
+# list env variables with prefix NEO4J_ and create settings from them
+unset NEO4J_AUTH NEO4J_SHA256 NEO4J_TARBALL
+for i in $( set | grep ^NEO4J_ | awk -F'=' '{print $1}' | sort -rn ); do
+ setting=$(echo ${i} | sed 's|^NEO4J_||' | sed 's|_|.|g' | sed 's|\.\.|_|g')
+ value=$(echo ${!i})
+ # Don't allow settings with no value or settings that start with a number (neo4j converts settings to env variables and you cannot have an env variable that starts with a number)
+ if [[ -n ${value} ]]; then
+ if [[ ! "${setting}" =~ ^[0-9]+.*$ ]]; then
+ if grep -q -F "${setting}=" "${NEO4J_HOME}"/conf/neo4j.conf; then
+ # Remove any lines containing the setting already
+ sed --in-place "/^${setting}=.*/d" "${NEO4J_HOME}"/conf/neo4j.conf
+ fi
+ # Then always append setting to file
+ echo "${setting}=${value}" >> "${NEO4J_HOME}"/conf/neo4j.conf
+ else
+ echo >&2 "WARNING: ${setting} not written to conf file because settings that start with a number are not permitted"
+ fi
+ fi
+done
+
+
+if [[ ! -z "${NEO4JLABS_PLUGINS:-}" ]]; then
+ # NEO4JLABS_PLUGINS should be a json array of plugins like '["graph-algorithms", "apoc", "streams", "graphql"]'
+ install_neo4j_labs_plugins
+fi
+
+[ -f "${EXTENSION_SCRIPT:-}" ] && . ${EXTENSION_SCRIPT}
+
+if [ "${cmd}" == "dump-config" ]; then
+ if ! is_writable "/conf"; then
+ print_permissions_advice_and_fail "/conf"
+ fi
+ cp --recursive "${NEO4J_HOME}"/conf/* /conf
+ echo "Config Dumped"
+ exit 0
+fi
+
+# Use su-exec to drop privileges to neo4j user
+# Note that su-exec, despite its name, does not replicate the
+# functionality of exec, so we need to use both
+if [ "${cmd}" == "neo4j" ]; then
+ ${exec_cmd} neo4j console
+else
+ ${exec_cmd} "$@"
+fi
\ No newline at end of file
diff --git a/neo4j/local-package/.sentinel b/neo4j/local-package/.sentinel
new file mode 100644
index 00000000..e69de29b
diff --git a/neo4j/local-package/neo4jlabs-plugins.json b/neo4j/local-package/neo4jlabs-plugins.json
new file mode 100644
index 00000000..83ecbc4f
--- /dev/null
+++ b/neo4j/local-package/neo4jlabs-plugins.json
@@ -0,0 +1,37 @@
+{
+ "apoc": {
+ "versions": "https://neo4j-contrib.github.io/neo4j-apoc-procedures/versions.json",
+ "properties": {
+ "dbms.security.procedures.unrestricted": "apoc.*"
+ }
+ },
+ "streams": {
+ "versions": "https://neo4j-contrib.github.io/neo4j-streams/versions.json",
+ "properties": {}
+ },
+ "graphql": {
+ "versions": "https://neo4j-graphql.github.io/neo4j-graphql/versions.json",
+ "properties": {
+ "dbms.unmanaged_extension_classes": "org.neo4j.graphql=/graphql",
+ "dbms.security.procedures.unrestricted": "graphql.*"
+ }
+ },
+ "graph-algorithms": {
+ "versions": "https://neo4j-contrib.github.io/neo4j-graph-algorithms/versions.json",
+ "properties": {
+ "dbms.security.procedures.unrestricted":"algo.*"
+ }
+ },
+ "n10s": {
+ "versions": "https://neo4j-labs.github.io/neosemantics/versions.json",
+ "properties": {
+ "dbms.security.procedures.unrestricted":"semantics.*"
+ }
+ },
+ "_testing": {
+ "versions": "http://host.testcontainers.internal:3000/versions.json",
+ "properties": {
+ "dbms.security.procedures.unrestricted": "com.neo4j.docker.plugins.*"
+ }
+ }
+}
diff --git a/nginx/nginx.conf b/nginx/nginx.conf
index e747e983..9a536138 100644
--- a/nginx/nginx.conf
+++ b/nginx/nginx.conf
@@ -24,7 +24,7 @@ http {
gzip on;
gzip_disable "msie6";
- ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
+ ssl_protocols TLSv1.2 TLSv1.3;
ssl_ciphers 'ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:ECDHE-ECDSA-DES-CBC3-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA:!DSS';
include /etc/nginx/conf.d/*.conf;
diff --git a/nginx/sites/laravel.conf.example b/nginx/sites/laravel.conf.example
index c30bf8ad..c9ba2d96 100644
--- a/nginx/sites/laravel.conf.example
+++ b/nginx/sites/laravel.conf.example
@@ -1,3 +1,9 @@
+#server {
+# listen 80;
+# server_name laravel.com.co;
+# return 301 https://laravel.com.co$request_uri;
+#}
+
server {
listen 80;
diff --git a/nginx/sites/node.conf.example b/nginx/sites/node.conf.example
new file mode 100644
index 00000000..6fe0c754
--- /dev/null
+++ b/nginx/sites/node.conf.example
@@ -0,0 +1,47 @@
+#server {
+# listen 80;
+# server_name node.com.co;
+# return 301 https://node.com.co$request_uri;
+#}
+
+server {
+
+ listen 80;
+ listen [::]:80;
+
+ #listen 443;
+ #listen [::]:443;
+
+ server_name node.com.co;
+
+ #ssl on;
+ #ssl_certificate /var/certs/node.com.co/cert.pem;
+ #ssl_certificate_key /var/certs/node.com.co/privkey.pem;
+ #ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2;
+ #ssl_ciphers HIGH:!aNULL:!MD5;
+
+
+ location / {
+ proxy_pass http://node.com.co:3001;
+ proxy_http_version 1.1;
+ proxy_set_header Upgrade $http_upgrade;
+ proxy_set_header Connection 'upgrade';
+ proxy_set_header Host $host;
+ proxy_set_header X-Real-IP $remote_addr;
+ proxy_set_header X-Forwarded-Proto $scheme;
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+ proxy_cache_bypass $http_upgrade;
+ }
+
+ location ~ /\.ht {
+ deny all;
+ }
+
+ location /.well-known/acme-challenge/ {
+ root /var/www/letsencrypt/;
+ log_not_found off;
+ }
+
+ error_log /var/log/nginx/node.com.co.local_error.log;
+ access_log /var/log/nginx/node.com.co.local_access.log;
+}
diff --git a/nginx/sites/octane.conf.example b/nginx/sites/octane.conf.example
new file mode 100644
index 00000000..57b5e7d4
--- /dev/null
+++ b/nginx/sites/octane.conf.example
@@ -0,0 +1,56 @@
+map $http_upgrade $connection_upgrade {
+ default upgrade;
+ '' close;
+}
+
+upstream octane {
+ server workspace:8000 weight=5 max_fails=3 fail_timeout=30s;
+ keepalive 16;
+}
+
+server {
+ listen 80;
+ listen [::]:80;
+ server_name octane.test;
+ server_tokens off;
+ root /var/www/octane/public;
+
+ index index.php;
+
+ charset utf-8;
+
+ location /index.php {
+ try_files /not_exists @octane;
+ }
+
+ location / {
+ try_files $uri $uri/ @octane;
+ }
+
+ location = /favicon.ico { access_log off; log_not_found off; }
+ location = /robots.txt { access_log off; log_not_found off; }
+
+ error_page 404 /index.php;
+
+ location @octane {
+ set $suffix "";
+
+ if ($uri = /index.php) {
+ set $suffix ?$query_string;
+ }
+
+ proxy_http_version 1.1;
+ proxy_set_header Host $http_host;
+ proxy_set_header Scheme $scheme;
+ proxy_set_header SERVER_PORT $server_port;
+ proxy_set_header REMOTE_ADDR $remote_addr;
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+ proxy_set_header Upgrade $http_upgrade;
+ proxy_set_header Connection $connection_upgrade;
+
+ proxy_pass http://octane$suffix;
+ }
+
+ error_log /var/log/nginx/octane_error.log;
+ access_log /var/log/nginx/octane_access.log;
+}
\ No newline at end of file
diff --git a/nginx/startup.sh b/nginx/startup.sh
index f8e7b229..0f088ad0 100644
--- a/nginx/startup.sh
+++ b/nginx/startup.sh
@@ -4,6 +4,7 @@ if [ ! -f /etc/nginx/ssl/default.crt ]; then
openssl genrsa -out "/etc/nginx/ssl/default.key" 2048
openssl req -new -key "/etc/nginx/ssl/default.key" -out "/etc/nginx/ssl/default.csr" -subj "/CN=default/O=default/C=UK"
openssl x509 -req -days 365 -in "/etc/nginx/ssl/default.csr" -signkey "/etc/nginx/ssl/default.key" -out "/etc/nginx/ssl/default.crt"
+ chmod 644 /etc/nginx/ssl/default.key
fi
# Start crond in background
diff --git a/openresty/Dockerfile b/openresty/Dockerfile
new file mode 100644
index 00000000..f90803de
--- /dev/null
+++ b/openresty/Dockerfile
@@ -0,0 +1,211 @@
+# Dockerfile - alpine
+# https://github.com/openresty/docker-openresty
+
+ARG RESTY_IMAGE_BASE="alpine"
+ARG RESTY_IMAGE_TAG="3.13"
+
+FROM ${RESTY_IMAGE_BASE}:${RESTY_IMAGE_TAG}
+
+LABEL maintainer="Evan Wies "
+
+# Docker Build Arguments
+ARG RESTY_IMAGE_BASE="alpine"
+ARG RESTY_IMAGE_TAG="3.13"
+ARG RESTY_VERSION="1.19.3.2"
+ARG RESTY_OPENSSL_VERSION="1.1.1k"
+ARG RESTY_OPENSSL_PATCH_VERSION="1.1.1f"
+ARG RESTY_OPENSSL_URL_BASE="https://www.openssl.org/source"
+ARG RESTY_PCRE_VERSION="8.44"
+ARG RESTY_J="1"
+ARG RESTY_CONFIG_OPTIONS="\
+ --with-compat \
+ --with-file-aio \
+ --with-http_addition_module \
+ --with-http_auth_request_module \
+ --with-http_dav_module \
+ --with-http_flv_module \
+ --with-http_geoip_module=dynamic \
+ --with-http_gunzip_module \
+ --with-http_gzip_static_module \
+ --with-http_image_filter_module=dynamic \
+ --with-http_mp4_module \
+ --with-http_random_index_module \
+ --with-http_realip_module \
+ --with-http_secure_link_module \
+ --with-http_slice_module \
+ --with-http_ssl_module \
+ --with-http_stub_status_module \
+ --with-http_sub_module \
+ --with-http_v2_module \
+ --with-http_xslt_module=dynamic \
+ --with-ipv6 \
+ --with-mail \
+ --with-mail_ssl_module \
+ --with-md5-asm \
+ --with-pcre-jit \
+ --with-sha1-asm \
+ --with-stream \
+ --with-stream_ssl_module \
+ --with-threads \
+ "
+ARG RESTY_CONFIG_OPTIONS_MORE="\
+ --conf-path=/etc/nginx/nginx.conf \
+ --error-log-path=/var/log/nginx/error.log \
+ --http-log-path=/var/log/nginx/access.log \
+ --pid-path=/var/run/nginx.pid \
+ --user=www-data \
+ --group=www-data \
+ --with-http_iconv_module \
+ --add-module=/tmp/nginx-ct-master \
+ --add-module=/tmp/nginx-dav-ext-module-master \
+ --add-module=/tmp/ngx_brotli-master \
+ --add-module=/tmp/ngx_cache_purge-master \
+ --add-module=/tmp/ngx_http_substitutions_filter_module-master \
+ "
+ARG RESTY_LUAJIT_OPTIONS="--with-luajit-xcflags='-DLUAJIT_NUMMODE=2 -DLUAJIT_ENABLE_LUA52COMPAT'"
+
+ARG RESTY_ADD_PACKAGE_BUILDDEPS=""
+ARG RESTY_ADD_PACKAGE_RUNDEPS=""
+ARG RESTY_EVAL_PRE_CONFIGURE=""
+ARG RESTY_EVAL_POST_MAKE=""
+
+# These are not intended to be user-specified
+ARG _RESTY_CONFIG_DEPS="--with-pcre \
+ --with-cc-opt='-DNGX_LUA_ABORT_AT_PANIC -I/usr/local/openresty/pcre/include -I/usr/local/openresty/openssl/include' \
+ --with-ld-opt='-L/usr/local/openresty/pcre/lib -L/usr/local/openresty/openssl/lib -Wl,-rpath,/usr/local/openresty/pcre/lib:/usr/local/openresty/openssl/lib' \
+ "
+
+LABEL resty_image_base="${RESTY_IMAGE_BASE}"
+LABEL resty_image_tag="${RESTY_IMAGE_TAG}"
+LABEL resty_version="${RESTY_VERSION}"
+LABEL resty_openssl_version="${RESTY_OPENSSL_VERSION}"
+LABEL resty_openssl_patch_version="${RESTY_OPENSSL_PATCH_VERSION}"
+LABEL resty_openssl_url_base="${RESTY_OPENSSL_URL_BASE}"
+LABEL resty_pcre_version="${RESTY_PCRE_VERSION}"
+LABEL resty_config_options="${RESTY_CONFIG_OPTIONS}"
+LABEL resty_config_options_more="${RESTY_CONFIG_OPTIONS_MORE}"
+LABEL resty_config_deps="${_RESTY_CONFIG_DEPS}"
+LABEL resty_add_package_builddeps="${RESTY_ADD_PACKAGE_BUILDDEPS}"
+LABEL resty_add_package_rundeps="${RESTY_ADD_PACKAGE_RUNDEPS}"
+LABEL resty_eval_pre_configure="${RESTY_EVAL_PRE_CONFIGURE}"
+LABEL resty_eval_post_make="${RESTY_EVAL_POST_MAKE}"
+
+ARG CHANGE_SOURCE=false
+RUN if [ ${CHANGE_SOURCE} = true ]; then \
+ # Change application source from dl-cdn.alpinelinux.org to aliyun source
+ sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/' /etc/apk/repositories \
+;fi
+
+RUN set -x ; \
+ addgroup -g 82 -S www-data ; \
+ adduser -u 82 -D -S -G www-data www-data && exit 0 ; exit 1
+
+
+RUN apk add --no-cache --virtual .build-deps \
+ build-base \
+ coreutils \
+ curl \
+ gd-dev \
+ geoip-dev \
+ libxslt-dev \
+ linux-headers \
+ make \
+ perl-dev \
+ readline-dev \
+ zlib-dev \
+ ${RESTY_ADD_PACKAGE_BUILDDEPS} \
+ && apk add --no-cache \
+ gd \
+ geoip \
+ libgcc \
+ libxslt \
+ zlib \
+ bash \
+ logrotate \
+ openssl \
+ ${RESTY_ADD_PACKAGE_RUNDEPS} \
+ && cd /tmp \
+ && if [ -n "${RESTY_EVAL_PRE_CONFIGURE}" ]; then eval $(echo ${RESTY_EVAL_PRE_CONFIGURE}); fi \
+ && cd /tmp \
+ && curl -fSL "${RESTY_OPENSSL_URL_BASE}/openssl-${RESTY_OPENSSL_VERSION}.tar.gz" -o openssl-${RESTY_OPENSSL_VERSION}.tar.gz \
+ && tar xzf openssl-${RESTY_OPENSSL_VERSION}.tar.gz \
+ && cd openssl-${RESTY_OPENSSL_VERSION} \
+ && if [ $(echo ${RESTY_OPENSSL_VERSION} | cut -c 1-5) = "1.1.1" ] ; then \
+ echo 'patching OpenSSL 1.1.1 for OpenResty' \
+ && curl -s https://raw.githubusercontent.com/openresty/openresty/master/patches/openssl-${RESTY_OPENSSL_PATCH_VERSION}-sess_set_get_cb_yield.patch | patch -p1 ; \
+ fi \
+ && if [ $(echo ${RESTY_OPENSSL_VERSION} | cut -c 1-5) = "1.1.0" ] ; then \
+ echo 'patching OpenSSL 1.1.0 for OpenResty' \
+ && curl -s https://raw.githubusercontent.com/openresty/openresty/ed328977028c3ec3033bc25873ee360056e247cd/patches/openssl-1.1.0j-parallel_build_fix.patch | patch -p1 \
+ && curl -s https://raw.githubusercontent.com/openresty/openresty/master/patches/openssl-${RESTY_OPENSSL_PATCH_VERSION}-sess_set_get_cb_yield.patch | patch -p1 ; \
+ fi \
+ && ./config \
+ no-threads shared zlib -g \
+ enable-ssl3 enable-ssl3-method \
+ --prefix=/usr/local/openresty/openssl \
+ --libdir=lib \
+ -Wl,-rpath,/usr/local/openresty/openssl/lib \
+ && make -j${RESTY_J} \
+ && make -j${RESTY_J} install_sw \
+ && cd /tmp \
+ && curl -fSL https://downloads.sourceforge.net/project/pcre/pcre/${RESTY_PCRE_VERSION}/pcre-${RESTY_PCRE_VERSION}.tar.gz -o pcre-${RESTY_PCRE_VERSION}.tar.gz \
+ && tar xzf pcre-${RESTY_PCRE_VERSION}.tar.gz \
+ && cd /tmp/pcre-${RESTY_PCRE_VERSION} \
+ && ./configure \
+ --prefix=/usr/local/openresty/pcre \
+ --disable-cpp \
+ --enable-jit \
+ --enable-utf \
+ --enable-unicode-properties \
+ && make -j${RESTY_J} \
+ && make -j${RESTY_J} install \
+ && cd /tmp \
+ && curl -fSL https://openresty.org/download/openresty-${RESTY_VERSION}.tar.gz -o openresty-${RESTY_VERSION}.tar.gz \
+ && tar xzf openresty-${RESTY_VERSION}.tar.gz \
+ && curl -fSL https://github.com/grahamedgecombe/nginx-ct/archive/master.tar.gz -o nginx-ct.tar.gz \
+ && tar xzf nginx-ct.tar.gz \
+ && curl -fSL https://github.com/arut/nginx-dav-ext-module/archive/master.tar.gz -o nginx-dav-ext-module.tar.gz \
+ && tar xzf nginx-dav-ext-module.tar.gz \
+ && curl -fSL https://github.com/google/ngx_brotli/archive/master.tar.gz -o ngx_brotli.tar.gz \
+ && tar xzf ngx_brotli.tar.gz \
+ && curl -fSL https://github.com/yaoweibin/ngx_http_substitutions_filter_module/archive/master.tar.gz -o ngx_http_substitutions_filter_module.tar.gz \
+ && tar xzf ngx_http_substitutions_filter_module.tar.gz \
+ && curl -fSL https://github.com/FRiCKLE/ngx_cache_purge/archive/master.tar.gz -o ngx_cache_purge.tar.gz \
+ && tar xzf ngx_cache_purge.tar.gz \
+ && cd /tmp/openresty-${RESTY_VERSION} \
+ && eval ./configure -j${RESTY_J} ${_RESTY_CONFIG_DEPS} ${RESTY_CONFIG_OPTIONS} ${RESTY_CONFIG_OPTIONS_MORE} ${RESTY_LUAJIT_OPTIONS} \
+ && make -j${RESTY_J} \
+ && make -j${RESTY_J} install \
+ && cd /tmp \
+ && if [ -n "${RESTY_EVAL_POST_MAKE}" ]; then eval $(echo ${RESTY_EVAL_POST_MAKE}); fi \
+ && rm -rf \
+ openssl-${RESTY_OPENSSL_VERSION}.tar.gz openssl-${RESTY_OPENSSL_VERSION} \
+ pcre-${RESTY_PCRE_VERSION}.tar.gz pcre-${RESTY_PCRE_VERSION} \
+ openresty-${RESTY_VERSION}.tar.gz openresty-${RESTY_VERSION} \
+ && apk del .build-deps \
+ && mkdir -p /etc/nginx/conf.d/ /var/run/openresty/
+
+# Add additional binaries into PATH for convenience
+ENV PATH=$PATH:/usr/local/openresty/luajit/bin:/usr/local/openresty/nginx/sbin:/usr/local/openresty/bin
+
+
+ARG PHP_UPSTREAM_CONTAINER=php-fpm
+ARG PHP_UPSTREAM_PORT=9000
+
+# Create 'messages' file used from 'logrotate'
+RUN touch /var/log/messages
+
+# Copy 'logrotate' config file
+COPY logrotate/nginx /etc/logrotate.d/
+
+# Set upstream conf and remove the default conf
+RUN echo "upstream php-upstream { server ${PHP_UPSTREAM_CONTAINER}:${PHP_UPSTREAM_PORT}; }" > /etc/nginx/conf.d/upstream.conf
+
+# Copy nginx configuration files
+COPY nginx.conf /etc/nginx/
+
+ADD ./startup.sh /opt/startup.sh
+RUN sed -i 's/\r//g' /opt/startup.sh
+CMD ["/bin/bash", "/opt/startup.sh"]
+
+EXPOSE 80 81 443
diff --git a/openresty/logrotate/nginx b/openresty/logrotate/nginx
new file mode 100644
index 00000000..8c89a83a
--- /dev/null
+++ b/openresty/logrotate/nginx
@@ -0,0 +1,14 @@
+/var/log/nginx/*.log {
+ daily
+ missingok
+ rotate 32
+ compress
+ delaycompress
+ nodateext
+ notifempty
+ create 644 www-data root
+ sharedscripts
+ postrotate
+ [ -f /var/run/nginx.pid ] && kill -USR1 `cat /var/run/nginx.pid`
+ endscript
+}
diff --git a/openresty/nginx.conf b/openresty/nginx.conf
new file mode 100644
index 00000000..a2494964
--- /dev/null
+++ b/openresty/nginx.conf
@@ -0,0 +1,100 @@
+# nginx.conf -- docker-openresty
+#
+# This file is installed to:
+# `/usr/local/openresty/nginx/conf/nginx.conf`
+# and is the file loaded by nginx at startup,
+# unless the user specifies otherwise.
+#
+# It tracks the upstream OpenResty's `nginx.conf`, but removes the `server`
+# section and adds this directive:
+# `include /etc/nginx/conf.d/*.conf;`
+#
+# The `docker-openresty` file `nginx.vh.default.conf` is copied to
+# `/etc/nginx/conf.d/default.conf`. It contains the `server section
+# of the upstream `nginx.conf`.
+#
+# See https://github.com/openresty/docker-openresty/blob/master/README.md#nginx-config-files
+#
+
+user www-data;
+worker_processes 4;
+
+# Enables the use of JIT for regular expressions to speed-up their processing.
+pcre_jit on;
+
+
+#error_log logs/error.log;
+#error_log logs/error.log notice;
+#error_log logs/error.log info;
+
+pid /var/run/nginx.pid;
+daemon off;
+
+worker_rlimit_nofile 65535;
+events {
+ use epoll;
+ worker_connections 65535;
+ multi_accept on;
+ accept_mutex on;
+}
+
+http {
+ include mime.types;
+ default_type application/octet-stream;
+
+ # Enables or disables the use of underscores in client request header fields.
+ # When the use of underscores is disabled, request header fields whose names contain underscores are marked as invalid and become subject to the ignore_invalid_headers directive.
+ # underscores_in_headers off;
+
+ log_format main '$remote_addr - $remote_user [$time_local] "$request" '
+ '$status $body_bytes_sent "$http_referer" '
+ '"$http_user_agent" "$http_x_forwarded_for" "$host"';
+ #access_log logs/access.log main;
+
+ # Log in JSON Format
+ # log_format nginxlog_json escape=json '{ "timestamp": "$time_iso8601", '
+ # '"remote_addr": "$remote_addr", '
+ # '"body_bytes_sent": $body_bytes_sent, '
+ # '"request_time": $request_time, '
+ # '"response_status": $status, '
+ # '"request": "$request", '
+ # '"request_method": "$request_method", '
+ # '"host": "$host",'
+ # '"upstream_addr": "$upstream_addr",'
+ # '"http_x_forwarded_for": "$http_x_forwarded_for",'
+ # '"http_referrer": "$http_referer", '
+ # '"http_user_agent": "$http_user_agent", '
+ # '"http_version": "$server_protocol", '
+ # '"nginx_access": true }';
+ # access_log /dev/stdout nginxlog_json;
+
+ # See Move default writable paths to a dedicated directory (#119)
+ # https://github.com/openresty/docker-openresty/issues/119
+ client_body_temp_path /var/run/openresty/nginx-client-body;
+ proxy_temp_path /var/run/openresty/nginx-proxy;
+ fastcgi_temp_path /var/run/openresty/nginx-fastcgi;
+ uwsgi_temp_path /var/run/openresty/nginx-uwsgi;
+ scgi_temp_path /var/run/openresty/nginx-scgi;
+
+ sendfile on;
+ tcp_nopush on;
+ tcp_nodelay on;
+
+ #keepalive_timeout 0;
+ keepalive_timeout 65;
+ types_hash_max_size 2048;
+ client_max_body_size 128M;
+
+ gzip on;
+ gzip_disable "msie6";
+
+ ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
+ ssl_ciphers 'ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:ECDHE-ECDSA-DES-CBC3-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA:!DSS';
+
+ include /etc/nginx/conf.d/*.conf;
+ include /etc/nginx/sites-available/*.conf;
+
+ # Don't reveal OpenResty version to clients.
+ server_tokens off;
+ charset UTF-8;
+}
diff --git a/openresty/sites/.gitignore b/openresty/sites/.gitignore
new file mode 100644
index 00000000..f5d67af0
--- /dev/null
+++ b/openresty/sites/.gitignore
@@ -0,0 +1,2 @@
+*.conf
+!default.conf
\ No newline at end of file
diff --git a/openresty/sites/app.conf.example b/openresty/sites/app.conf.example
new file mode 100644
index 00000000..a0f8357d
--- /dev/null
+++ b/openresty/sites/app.conf.example
@@ -0,0 +1,43 @@
+server {
+
+ listen 80;
+ listen [::]:80;
+
+ # For https
+ # listen 443 ssl;
+ # listen [::]:443 ssl ipv6only=on;
+ # ssl_certificate /etc/nginx/ssl/default.crt;
+ # ssl_certificate_key /etc/nginx/ssl/default.key;
+
+ server_name app.test;
+ root /var/www/app;
+ index index.php index.html index.htm;
+
+ location / {
+ try_files $uri $uri/ /index.php$is_args$args;
+ }
+
+ location ~ \.php$ {
+ try_files $uri /index.php =404;
+ fastcgi_pass php-upstream;
+ fastcgi_index index.php;
+ fastcgi_buffers 16 16k;
+ fastcgi_buffer_size 32k;
+ fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
+ #fixes timeouts
+ fastcgi_read_timeout 600;
+ include fastcgi_params;
+ }
+
+ location ~ /\.ht {
+ deny all;
+ }
+
+ location /.well-known/acme-challenge/ {
+ root /var/www/letsencrypt/;
+ log_not_found off;
+ }
+
+ error_log /var/log/nginx/app_error.log;
+ access_log /var/log/nginx/app_access.log;
+}
diff --git a/openresty/sites/confluence.conf.example b/openresty/sites/confluence.conf.example
new file mode 100644
index 00000000..f804956b
--- /dev/null
+++ b/openresty/sites/confluence.conf.example
@@ -0,0 +1,43 @@
+server {
+ listen 80;
+ listen [::]:80;
+ server_name www.confluence-domain.com;
+ rewrite ^(.*) https://confluence-domain.com$1/ permanent;
+}
+
+server {
+ listen 80;
+ listen [::]:80;
+ server_name confluence-domain.com;
+ rewrite ^(.*) https://confluence-domain.com/ permanent;
+}
+
+server {
+ listen 443 ssl;
+ listen [::]:443 ssl;
+ ssl_certificate /etc/nginx/ssl/confluence-domain.com.crt;
+ ssl_certificate_key /etc/nginx/ssl/confluence-domain.com.key;
+
+ server_name confluence-domain.com;
+
+ location / {
+ client_max_body_size 100m;
+ proxy_set_header X-Forwarded-Host $host;
+ proxy_set_header X-Forwarded-Server $host;
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+ proxy_pass http://confluence-domain.com:8090/;
+ }
+
+ location /synchrony {
+ proxy_set_header X-Forwarded-Host $host;
+ proxy_set_header X-Forwarded-Server $host;
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+ proxy_pass http://confluence-domain.com:8090/synchrony-proxy;
+ proxy_http_version 1.1;
+ proxy_set_header Upgrade $http_upgrade;
+ proxy_set_header Connection "Upgrade";
+ }
+
+ error_log /var/log/nginx/bookchangerru_error.log;
+ access_log /var/log/nginx/bookchangerru_access.log;
+}
diff --git a/openresty/sites/default.conf b/openresty/sites/default.conf
new file mode 100644
index 00000000..e02bb830
--- /dev/null
+++ b/openresty/sites/default.conf
@@ -0,0 +1,40 @@
+server {
+
+ listen 80 default_server;
+ listen [::]:80 default_server ipv6only=on;
+
+ # For https
+ # listen 443 ssl default_server;
+ # listen [::]:443 ssl default_server ipv6only=on;
+ # ssl_certificate /etc/nginx/ssl/default.crt;
+ # ssl_certificate_key /etc/nginx/ssl/default.key;
+
+ server_name localhost;
+ root /var/www/public;
+ index index.php index.html index.htm;
+
+ location / {
+ try_files $uri $uri/ /index.php$is_args$args;
+ }
+
+ location ~ \.php$ {
+ try_files $uri /index.php =404;
+ fastcgi_pass php-upstream;
+ fastcgi_index index.php;
+ fastcgi_buffers 16 16k;
+ fastcgi_buffer_size 32k;
+ fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
+ #fixes timeouts
+ fastcgi_read_timeout 600;
+ include fastcgi_params;
+ }
+
+ location ~ /\.ht {
+ deny all;
+ }
+
+ location /.well-known/acme-challenge/ {
+ root /var/www/letsencrypt/;
+ log_not_found off;
+ }
+}
diff --git a/openresty/sites/laravel.conf.example b/openresty/sites/laravel.conf.example
new file mode 100644
index 00000000..c9ba2d96
--- /dev/null
+++ b/openresty/sites/laravel.conf.example
@@ -0,0 +1,49 @@
+#server {
+# listen 80;
+# server_name laravel.com.co;
+# return 301 https://laravel.com.co$request_uri;
+#}
+
+server {
+
+ listen 80;
+ listen [::]:80;
+
+ # For https
+ # listen 443 ssl;
+ # listen [::]:443 ssl ipv6only=on;
+ # ssl_certificate /etc/nginx/ssl/default.crt;
+ # ssl_certificate_key /etc/nginx/ssl/default.key;
+
+ server_name laravel.test;
+ root /var/www/laravel/public;
+ index index.php index.html index.htm;
+
+ location / {
+ try_files $uri $uri/ /index.php$is_args$args;
+ }
+
+ location ~ \.php$ {
+ try_files $uri /index.php =404;
+ fastcgi_pass php-upstream;
+ fastcgi_index index.php;
+ fastcgi_buffers 16 16k;
+ fastcgi_buffer_size 32k;
+ fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
+ #fixes timeouts
+ fastcgi_read_timeout 600;
+ include fastcgi_params;
+ }
+
+ location ~ /\.ht {
+ deny all;
+ }
+
+ location /.well-known/acme-challenge/ {
+ root /var/www/letsencrypt/;
+ log_not_found off;
+ }
+
+ error_log /var/log/nginx/laravel_error.log;
+ access_log /var/log/nginx/laravel_access.log;
+}
diff --git a/openresty/sites/laravel_varnish.conf.example b/openresty/sites/laravel_varnish.conf.example
new file mode 100644
index 00000000..7d545872
--- /dev/null
+++ b/openresty/sites/laravel_varnish.conf.example
@@ -0,0 +1,110 @@
+server {
+ listen 80;
+ listen [::]:80;
+ server_name www.laravel.test;
+ rewrite ^(.*) https://laravel.test$1/ permanent;
+}
+
+server {
+ listen 80;
+ listen [::]:80;
+ server_name laravel.test;
+ rewrite ^(.*) https://laravel.test$1/ permanent;
+}
+
+server {
+ listen 443 ssl ;
+ listen [::]:443 ssl;
+ ssl_certificate /etc/nginx/ssl/laravel.test.crt;
+ ssl_certificate_key /etc/nginx/ssl/laravel.test.key;
+ server_name www.laravel.test;
+ rewrite ^(.*) https://laravel.test$1/ permanent;
+}
+
+server {
+ server_name laravel.test;
+
+ # For https
+ listen 443 ssl ;
+ listen [::]:443 ssl;
+ ssl_certificate /etc/nginx/ssl/laravel.test.crt;
+ ssl_certificate_key /etc/nginx/ssl/laravel.test.key;
+
+ port_in_redirect off;
+
+ add_header Strict-Transport-Security "max-age=31536000";
+ add_header X-Content-Type-Options nosniff;
+
+ location / {
+ proxy_pass http://proxy:6081;
+ proxy_set_header Host $http_host;
+ proxy_set_header X-Forwarded-Host $http_host;
+ proxy_set_header X-Real-IP $remote_addr;
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+ proxy_set_header X-Forwarded-Proto https;
+ proxy_set_header HTTPS "on";
+ proxy_redirect off;
+ }
+}
+
+server {
+ server_name laravel.test;
+
+ listen 81;
+ listen [::]:81;
+
+ root /var/www/laravel.test/www;
+
+ index index.php index.html index.htm;
+
+ location / {
+ try_files $uri $uri/ /index.php$is_args$args;
+ }
+
+ location ~ \.php$ {
+ fastcgi_max_temp_file_size 4m;
+ fastcgi_pass php-upstream;
+
+ # Additional configs
+ fastcgi_pass_header Set-Cookie;
+ fastcgi_pass_header Cookie;
+ fastcgi_ignore_headers Cache-Control Expires Set-Cookie;
+ try_files $uri /index.php =404;
+ fastcgi_index index.php;
+ fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
+ fastcgi_split_path_info ^(.+\.php)(/.+)$;
+ fastcgi_param PATH_INFO $fastcgi_path_info;
+ fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
+ fastcgi_param HTTPS on;
+
+ fastcgi_buffers 16 16k;
+ fastcgi_buffer_size 32k;
+
+ fastcgi_intercept_errors on;
+
+ #fixes timeouts
+ fastcgi_read_timeout 600;
+ include fastcgi_params;
+ }
+
+ # Caching
+ location ~* \.(ico|jpg|webp|jpeg|gif|css|png|js|ico|bmp|zip|woff)$ {
+ access_log off;
+ log_not_found off;
+ add_header Pragma public;
+ add_header Cache-Control "public";
+ expires 14d;
+ }
+
+ location ~* \.(php|html)$ {
+ access_log on;
+ log_not_found on;
+ add_header Pragma public;
+ add_header Cache-Control "public";
+ expires 14d;
+ }
+
+ location ~ /\.ht {
+ deny all;
+ }
+}
diff --git a/openresty/sites/node.conf.example b/openresty/sites/node.conf.example
new file mode 100644
index 00000000..6fe0c754
--- /dev/null
+++ b/openresty/sites/node.conf.example
@@ -0,0 +1,47 @@
+#server {
+# listen 80;
+# server_name node.com.co;
+# return 301 https://node.com.co$request_uri;
+#}
+
+server {
+
+ listen 80;
+ listen [::]:80;
+
+ #listen 443;
+ #listen [::]:443;
+
+ server_name node.com.co;
+
+ #ssl on;
+ #ssl_certificate /var/certs/node.com.co/cert.pem;
+ #ssl_certificate_key /var/certs/node.com.co/privkey.pem;
+ #ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2;
+ #ssl_ciphers HIGH:!aNULL:!MD5;
+
+
+ location / {
+ proxy_pass http://node.com.co:3001;
+ proxy_http_version 1.1;
+ proxy_set_header Upgrade $http_upgrade;
+ proxy_set_header Connection 'upgrade';
+ proxy_set_header Host $host;
+ proxy_set_header X-Real-IP $remote_addr;
+ proxy_set_header X-Forwarded-Proto $scheme;
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+ proxy_cache_bypass $http_upgrade;
+ }
+
+ location ~ /\.ht {
+ deny all;
+ }
+
+ location /.well-known/acme-challenge/ {
+ root /var/www/letsencrypt/;
+ log_not_found off;
+ }
+
+ error_log /var/log/nginx/node.com.co.local_error.log;
+ access_log /var/log/nginx/node.com.co.local_access.log;
+}
diff --git a/openresty/sites/symfony.conf.example b/openresty/sites/symfony.conf.example
new file mode 100644
index 00000000..2834d747
--- /dev/null
+++ b/openresty/sites/symfony.conf.example
@@ -0,0 +1,42 @@
+server {
+
+ listen 80;
+ listen [::]:80;
+
+ # For https
+ # listen 443 ssl;
+ # listen [::]:443 ssl ipv6only=on;
+ # ssl_certificate /etc/nginx/ssl/default.crt;
+ # ssl_certificate_key /etc/nginx/ssl/default.key;
+
+ server_name symfony.test;
+ root /var/www/projects/symfony/web;
+ index index.php index.html index.htm;
+
+ location / {
+ try_files $uri @rewriteapp;
+ }
+
+ # For Symfony 3
+ location @rewriteapp {
+ rewrite ^(.*)$ /app.php/$1 last;
+ }
+
+ # For Symfony 4 config
+ # location @rewriteapp {
+ # rewrite ^(.*)$ /index.php/$1 last;
+ # }
+
+ location ~ ^/(app|app_dev|config|index)\.php(/|$) {
+ fastcgi_pass php-upstream;
+ fastcgi_split_path_info ^(.+\.php)(/.*)$;
+ include fastcgi_params;
+ fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
+ #fixes timeouts
+ fastcgi_read_timeout 600;
+ fastcgi_param HTTPS off;
+ }
+
+ error_log /var/log/nginx/symfony_error.log;
+ access_log /var/log/nginx/symfony_access.log;
+}
diff --git a/openresty/ssl/.gitignore b/openresty/ssl/.gitignore
new file mode 100644
index 00000000..003cd8e5
--- /dev/null
+++ b/openresty/ssl/.gitignore
@@ -0,0 +1,4 @@
+*.crt
+*.csr
+*.key
+*.pem
\ No newline at end of file
diff --git a/openresty/startup.sh b/openresty/startup.sh
new file mode 100644
index 00000000..0f088ad0
--- /dev/null
+++ b/openresty/startup.sh
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+if [ ! -f /etc/nginx/ssl/default.crt ]; then
+ openssl genrsa -out "/etc/nginx/ssl/default.key" 2048
+ openssl req -new -key "/etc/nginx/ssl/default.key" -out "/etc/nginx/ssl/default.csr" -subj "/CN=default/O=default/C=UK"
+ openssl x509 -req -days 365 -in "/etc/nginx/ssl/default.csr" -signkey "/etc/nginx/ssl/default.key" -out "/etc/nginx/ssl/default.crt"
+ chmod 644 /etc/nginx/ssl/default.key
+fi
+
+# Start crond in background
+crond -l 2 -b
+
+# Start nginx in foreground
+nginx
diff --git a/php-fpm/Dockerfile b/php-fpm/Dockerfile
index d05426d3..46ecbaf2 100644
--- a/php-fpm/Dockerfile
+++ b/php-fpm/Dockerfile
@@ -28,9 +28,9 @@ ENV DEBIAN_FRONTEND noninteractive
ARG CHANGE_SOURCE=false
RUN if [ ${CHANGE_SOURCE} = true ]; then \
# Change application source from deb.debian.org to aliyun source
- sed -i 's/deb.debian.org/mirrors.aliyun.com/' /etc/apt/sources.list && \
- sed -i 's/security.debian.org/mirrors.aliyun.com/' /etc/apt/sources.list && \
- sed -i 's/security-cdn.debian.org/mirrors.aliyun.com/' /etc/apt/sources.list \
+ sed -i 's/deb.debian.org/mirrors.tuna.tsinghua.edu.cn/' /etc/apt/sources.list && \
+ sed -i 's/security.debian.org/mirrors.tuna.tsinghua.edu.cn/' /etc/apt/sources.list && \
+ sed -i 's/security-cdn.debian.org/mirrors.tuna.tsinghua.edu.cn/' /etc/apt/sources.list \
;fi
# always run apt update when start and after add new source list, then clean up at end.
@@ -39,6 +39,8 @@ RUN set -xe; \
pecl channel-update pecl.php.net && \
apt-get install -yqq \
apt-utils \
+ gnupg2 \
+ git \
#
#--------------------------------------------------------------------------
# Mandatory Software's Installation
@@ -51,7 +53,7 @@ RUN set -xe; \
#
# next lines are here becase there is no auto build on dockerhub see https://github.com/laradock/laradock/pull/1903#issuecomment-463142846
libzip-dev zip unzip && \
- if [ ${LARADOCK_PHP_VERSION} = "7.3" ] || [ ${LARADOCK_PHP_VERSION} = "7.4" ]; then \
+ if [ ${LARADOCK_PHP_VERSION} = "7.3" ] || [ ${LARADOCK_PHP_VERSION} = "7.4" ] || [ $(php -r "echo PHP_MAJOR_VERSION;") = "8" ]; then \
docker-php-ext-configure zip; \
else \
docker-php-ext-configure zip --with-libzip; \
@@ -77,10 +79,21 @@ RUN set -xe; \
ARG INSTALL_BZ2=false
RUN if [ ${INSTALL_BZ2} = true ]; then \
- apt-get -y install libbz2-dev; \
+ apt-get -yqq install libbz2-dev; \
docker-php-ext-install bz2 \
;fi
+###########################################################################
+# Enchant:
+###########################################################################
+
+ARG INSTALL_ENCHANT=false
+RUN if [ ${INSTALL_ENCHANT} = true ]; then \
+ apt-get install -yqq libenchant-dev; \
+ docker-php-ext-install enchant; \
+ php -m | grep -oiE '^enchant$'; \
+fi
+
###########################################################################
# GMP (GNU Multiple Precision):
###########################################################################
@@ -89,13 +102,26 @@ ARG INSTALL_GMP=false
RUN if [ ${INSTALL_GMP} = true ]; then \
# Install the GMP extension
- apt-get install -y libgmp-dev && \
+ apt-get install -yqq libgmp-dev && \
if [ $(php -r "echo PHP_MAJOR_VERSION;") = "5" ]; then \
ln -s /usr/include/x86_64-linux-gnu/gmp.h /usr/include/gmp.h \
;fi && \
docker-php-ext-install gmp \
;fi
+###########################################################################
+# GnuPG:
+###########################################################################
+
+ARG INSTALL_GNUPG=false
+
+RUN if [ ${INSTALL_GNUPG} = true ]; then \
+ apt-get -yq install libgpgme-dev; \
+ pecl install gnupg; \
+ docker-php-ext-enable gnupg; \
+ php -m | grep -q 'gnupg'; \
+ fi
+
###########################################################################
# SSH2:
###########################################################################
@@ -108,7 +134,7 @@ RUN if [ ${INSTALL_SSH2} = true ]; then \
if [ $(php -r "echo PHP_MAJOR_VERSION;") = "5" ]; then \
pecl install -a ssh2-0.13; \
else \
- pecl install -a ssh2-1.2; \
+ pecl install -a ssh2-1.3.1; \
fi && \
docker-php-ext-enable ssh2 \
;fi
@@ -122,7 +148,7 @@ USER root
ARG INSTALL_FAKETIME=false
RUN if [ ${INSTALL_FAKETIME} = true ]; then \
- apt-get install -y libfaketime \
+ apt-get install -yqq libfaketime \
;fi
###########################################################################
@@ -169,14 +195,16 @@ ARG INSTALL_PG_CLIENT=false
ARG INSTALL_POSTGIS=false
RUN if [ ${INSTALL_PG_CLIENT} = true ]; then \
- # Create folders if not exists (https://github.com/tianon/docker-brew-debian/issues/65)
- mkdir -p /usr/share/man/man1 && \
- mkdir -p /usr/share/man/man7 && \
- # Install the pgsql client
- apt-get install -y postgresql-client && \
+ apt-get install -yqq gnupg \
+ && . /etc/os-release \
+ && echo "deb http://apt.postgresql.org/pub/repos/apt $VERSION_CODENAME-pgdg main" > /etc/apt/sources.list.d/pgdg.list \
+ && curl -sL https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - \
+ && apt-get update -yqq \
+ && apt-get install -yqq postgresql-client-12 postgis; \
if [ ${INSTALL_POSTGIS} = true ]; then \
- apt-get install -y postgis; \
+ apt-get install -yqq postgis; \
fi \
+ && apt-get purge -yqq gnupg \
;fi
###########################################################################
@@ -187,13 +215,18 @@ ARG INSTALL_XDEBUG=false
RUN if [ ${INSTALL_XDEBUG} = true ]; then \
# Install the xdebug extension
- if [ $(php -r "echo PHP_MAJOR_VERSION;") = "5" ]; then \
- pecl install xdebug-2.5.5; \
+ # https://xdebug.org/docs/compat
+ if [ $(php -r "echo PHP_MAJOR_VERSION;") = "8" ] || { [ $(php -r "echo PHP_MAJOR_VERSION;") = "7" ] && { [ $(php -r "echo PHP_MINOR_VERSION;") = "4" ] || [ $(php -r "echo PHP_MINOR_VERSION;") = "3" ] ;} ;}; then \
+ pecl install xdebug-3.1.2; \
else \
- if [ $(php -r "echo PHP_MINOR_VERSION;") = "0" ]; then \
- pecl install xdebug-2.9.0; \
+ if [ $(php -r "echo PHP_MAJOR_VERSION;") = "5" ]; then \
+ pecl install xdebug-2.5.5; \
else \
- pecl install xdebug; \
+ if [ $(php -r "echo PHP_MINOR_VERSION;") = "0" ]; then \
+ pecl install xdebug-2.9.0; \
+ else \
+ pecl install xdebug-2.9.8; \
+ fi \
fi \
fi && \
docker-php-ext-enable xdebug \
@@ -202,9 +235,20 @@ RUN if [ ${INSTALL_XDEBUG} = true ]; then \
# Copy xdebug configuration for remote debugging
COPY ./xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini
-RUN sed -i "s/xdebug.remote_autostart=0/xdebug.remote_autostart=1/" /usr/local/etc/php/conf.d/xdebug.ini && \
- sed -i "s/xdebug.remote_enable=0/xdebug.remote_enable=1/" /usr/local/etc/php/conf.d/xdebug.ini && \
- sed -i "s/xdebug.cli_color=0/xdebug.cli_color=1/" /usr/local/etc/php/conf.d/xdebug.ini
+RUN if [ $(php -r "echo PHP_MAJOR_VERSION;") = "8" ]; then \
+ sed -i "s/xdebug.remote_host=/xdebug.client_host=/" /usr/local/etc/php/conf.d/xdebug.ini && \
+ sed -i "s/xdebug.remote_connect_back=0/xdebug.discover_client_host=false/" /usr/local/etc/php/conf.d/xdebug.ini && \
+ sed -i "s/xdebug.remote_port=9000/xdebug.client_port=9003/" /usr/local/etc/php/conf.d/xdebug.ini && \
+ sed -i "s/xdebug.profiler_enable=0/; xdebug.profiler_enable=0/" /usr/local/etc/php/conf.d/xdebug.ini && \
+ sed -i "s/xdebug.profiler_output_dir=/xdebug.output_dir=/" /usr/local/etc/php/conf.d/xdebug.ini && \
+ sed -i "s/xdebug.remote_mode=req/; xdebug.remote_mode=req/" /usr/local/etc/php/conf.d/xdebug.ini && \
+ sed -i "s/xdebug.remote_autostart=0/xdebug.start_with_request=yes/" /usr/local/etc/php/conf.d/xdebug.ini && \
+ sed -i "s/xdebug.remote_enable=0/xdebug.mode=debug/" /usr/local/etc/php/conf.d/xdebug.ini \
+;else \
+ sed -i "s/xdebug.remote_autostart=0/xdebug.remote_autostart=1/" /usr/local/etc/php/conf.d/xdebug.ini && \
+ sed -i "s/xdebug.remote_enable=0/xdebug.remote_enable=1/" /usr/local/etc/php/conf.d/xdebug.ini \
+;fi
+RUN sed -i "s/xdebug.cli_color=0/xdebug.cli_color=1/" /usr/local/etc/php/conf.d/xdebug.ini
###########################################################################
# pcov:
@@ -231,7 +275,7 @@ ARG INSTALL_PHPDBG=false
RUN if [ ${INSTALL_PHPDBG} = true ]; then \
# Load the xdebug extension only with phpunit commands
- apt-get install -y --force-yes php${LARADOCK_PHP_VERSION}-phpdbg \
+ apt-get install -yqq --force-yes php${LARADOCK_PHP_VERSION}-phpdbg \
;fi
###########################################################################
@@ -270,21 +314,21 @@ RUN if [ ${INSTALL_PHPREDIS} = true ]; then \
###########################################################################
ARG INSTALL_SWOOLE=false
-
-RUN if [ ${INSTALL_SWOOLE} = true ]; then \
- # Install Php Swoole Extension
- if [ $(php -r "echo PHP_MAJOR_VERSION;") = "5" ]; then \
- pecl install swoole-2.0.10; \
- else \
- if [ $(php -r "echo PHP_MINOR_VERSION;") = "0" ]; then \
- pecl install swoole-2.2.0; \
+RUN set -eux; \
+ if [ ${INSTALL_SWOOLE} = true ]; then \
+ # Install Php Swoole Extension
+ if [ $(php -r "echo PHP_VERSION_ID - PHP_RELEASE_VERSION;") = "50600" ]; then \
+ pecl install swoole-2.0.10; \
+ elif [ $(php -r "echo PHP_VERSION_ID - PHP_RELEASE_VERSION;") = "70000" ]; then \
+ pecl install swoole-4.3.5; \
+ elif [ $(php -r "echo PHP_VERSION_ID - PHP_RELEASE_VERSION;") = "70100" ]; then \
+ pecl install swoole-4.5.11; \
else \
pecl install swoole; \
- fi \
- fi && \
- docker-php-ext-enable swoole \
- && php -m | grep -q 'swoole' \
-;fi
+ fi; \
+ docker-php-ext-enable swoole; \
+ php -m | grep -q 'swoole'; \
+ fi
###########################################################################
# Taint EXTENSION
@@ -310,12 +354,19 @@ ARG INSTALL_MONGO=false
RUN if [ ${INSTALL_MONGO} = true ]; then \
# Install the mongodb extension
if [ $(php -r "echo PHP_MAJOR_VERSION;") = "5" ]; then \
- pecl install mongo && \
- docker-php-ext-enable mongo \
- ;fi && \
- pecl install mongodb && \
- docker-php-ext-enable mongodb \
-;fi
+ pecl install mongo; \
+ docker-php-ext-enable mongo; \
+ php -m | grep -oiE '^mongo$'; \
+ else \
+ if [ $(php -r "echo PHP_MAJOR_VERSION;") = "7" ] && { [ $(php -r "echo PHP_MINOR_VERSION;") = "0" ] || [ $(php -r "echo PHP_MINOR_VERSION;") = "1" ] ;}; then \
+ pecl install mongodb-1.9.2; \
+ else \
+ pecl install mongodb; \
+ fi; \
+ docker-php-ext-enable mongodb; \
+ php -m | grep -oiE '^mongodb$'; \
+ fi; \
+fi
###########################################################################
# Xhprof:
@@ -323,31 +374,38 @@ RUN if [ ${INSTALL_MONGO} = true ]; then \
ARG INSTALL_XHPROF=false
-RUN if [ ${INSTALL_XHPROF} = true ]; then \
- # Install the php xhprof extension
- if [ $(php -r "echo PHP_MAJOR_VERSION;") = 7 ]; then \
- curl -L -o /tmp/xhprof.tar.gz "https://github.com/tideways/php-xhprof-extension/archive/v5.0.1.tar.gz"; \
- else \
- curl -L -o /tmp/xhprof.tar.gz "https://codeload.github.com/phacility/xhprof/tar.gz/master"; \
- fi \
- && mkdir -p xhprof \
- && tar -C xhprof -zxvf /tmp/xhprof.tar.gz --strip 1 \
- && ( \
- cd xhprof \
- && phpize \
- && ./configure \
- && make \
- && make install \
- ) \
- && rm -r xhprof \
- && rm /tmp/xhprof.tar.gz \
-;fi
+RUN set -eux; \
+ if [ ${INSTALL_XHPROF} = true ]; then \
+ # Install the php xhprof extension
+ if [ $(php -r "echo PHP_MAJOR_VERSION;") != 5 ]; then \
+ pecl install xhprof; \
+ else \
+ curl -L -o /tmp/xhprof.tar.gz "https://codeload.github.com/phacility/xhprof/tar.gz/master"; \
+ mkdir -p /tmp/xhprof; \
+ tar -C /tmp/xhprof -zxvf /tmp/xhprof.tar.gz --strip 1; \
+ ( \
+ cd /tmp/xhprof/extension; \
+ phpize; \
+ ./configure; \
+ make; \
+ make install; \
+ ); \
+ rm -r /tmp/xhprof; \
+ rm /tmp/xhprof.tar.gz; \
+ fi; \
+ docker-php-ext-enable xhprof; \
+ php -m | grep -q 'xhprof'; \
+ fi
-COPY ./xhprof.ini /usr/local/etc/php/conf.d
+# if [ ${INSTALL_XHPROF_USE_TIDYWAYS} = true ]; then \
+# https://github.com/tideways/php-xhprof-extension
+# fi
-RUN if [ ${INSTALL_XHPROF} = false ]; then \
- rm /usr/local/etc/php/conf.d/xhprof.ini \
-;fi
+# COPY ./xhprof.ini /usr/local/etc/php/conf.d
+
+# RUN if [ ${INSTALL_XHPROF} = false ]; then \
+# rm /usr/local/etc/php/conf.d/xhprof.ini \
+# ;fi
###########################################################################
# AMQP:
@@ -355,22 +413,52 @@ RUN if [ ${INSTALL_XHPROF} = false ]; then \
ARG INSTALL_AMQP=false
-RUN if [ ${INSTALL_AMQP} = true ]; then \
- # download and install manually, to make sure it's compatible with ampq installed by pecl later
- # install cmake first
- apt-get -y install cmake && \
- curl -L -o /tmp/rabbitmq-c.tar.gz https://github.com/alanxz/rabbitmq-c/archive/master.tar.gz && \
- mkdir -p rabbitmq-c && \
- tar -C rabbitmq-c -zxvf /tmp/rabbitmq-c.tar.gz --strip 1 && \
- cd rabbitmq-c/ && \
- mkdir _build && cd _build/ && \
- cmake .. && \
- cmake --build . --target install && \
- # Install the amqp extension
- pecl install amqp && \
- docker-php-ext-enable amqp && \
- # Install the sockets extension
- docker-php-ext-install sockets \
+RUN set -eux; \
+ if [ ${INSTALL_AMQP} = true ]; then \
+ # # Install the amqp extension
+ apt-get -yqq install librabbitmq-dev; \
+ if [ $(php -r "echo PHP_MAJOR_VERSION;") = "8" ]; then \
+ pecl install amqp-1.11.0beta; \
+ else \
+ pecl install amqp; \
+ fi; \
+ docker-php-ext-enable amqp; \
+ php -m | grep -oiE '^amqp$'; \
+ fi
+
+###########################################################################
+# CASSANDRA:
+###########################################################################
+
+ARG INSTALL_CASSANDRA=false
+
+RUN if [ ${INSTALL_CASSANDRA} = true ]; then \
+ if [ $(php -r "echo PHP_MAJOR_VERSION;") = "8" ]; then \
+ echo "PHP Driver for Cassandra is not supported for PHP 8.0."; \
+ else \
+ apt-get install libgmp-dev -yqq && \
+ curl https://downloads.datastax.com/cpp-driver/ubuntu/18.04/dependencies/libuv/v1.35.0/libuv1-dev_1.35.0-1_amd64.deb -o libuv1-dev.deb && \
+ curl https://downloads.datastax.com/cpp-driver/ubuntu/18.04/dependencies/libuv/v1.35.0/libuv1_1.35.0-1_amd64.deb -o libuv1.deb && \
+ curl https://downloads.datastax.com/cpp-driver/ubuntu/18.04/cassandra/v2.16.0/cassandra-cpp-driver-dev_2.16.0-1_amd64.deb -o cassandra-cpp-driver-dev.deb && \
+ curl https://downloads.datastax.com/cpp-driver/ubuntu/18.04/cassandra/v2.16.0/cassandra-cpp-driver_2.16.0-1_amd64.deb -o cassandra-cpp-driver.deb && \
+ dpkg -i libuv1.deb && \
+ dpkg -i libuv1-dev.deb && \
+ dpkg -i cassandra-cpp-driver.deb && \
+ dpkg -i cassandra-cpp-driver-dev.deb && \
+ rm libuv1.deb libuv1-dev.deb cassandra-cpp-driver-dev.deb cassandra-cpp-driver.deb && \
+ cd /usr/src && \
+ git clone https://github.com/datastax/php-driver.git && \
+ cd /usr/src/php-driver/ext && \
+ phpize && \
+ mkdir /usr/src/php-driver/build && \
+ cd /usr/src/php-driver/build && \
+ ../ext/configure > /dev/null && \
+ make clean > /dev/null && \
+ make > /dev/null 2>&1 && \
+ make install && \
+ echo "extension=cassandra.so" >> /etc/php/${LARADOCK_PHP_VERSION}/mods-available/cassandra.ini && \
+ ln -s /etc/php/${LARADOCK_PHP_VERSION}/mods-available/cassandra.ini /etc/php/${LARADOCK_PHP_VERSION}/cli/conf.d/30-cassandra.ini; \
+ fi \
;fi
###########################################################################
@@ -396,6 +484,23 @@ RUN if [ ${INSTALL_GEARMAN} = true ]; then \
docker-php-ext-enable gearman \
;fi
+###########################################################################
+# xlswriter:
+###########################################################################
+
+ARG INSTALL_XLSWRITER=false
+RUN set -eux; \
+ if [ ${INSTALL_XLSWRITER} = true ]; then \
+ # Install Php xlswriter Extension \
+ if [ $(php -r "echo PHP_MAJOR_VERSION;") != "5" ]; then \
+ pecl install xlswriter &&\
+ docker-php-ext-enable xlswriter &&\
+ php -m | grep -q 'xlswriter'; \
+ else \
+ echo "PHP Extension for xlswriter is not supported for PHP 5.0";\
+ fi \
+ ;fi
+
###########################################################################
# pcntl
###########################################################################
@@ -426,9 +531,9 @@ ARG INSTALL_MEMCACHED=false
RUN if [ ${INSTALL_MEMCACHED} = true ]; then \
# Install the php memcached extension
if [ $(php -r "echo PHP_MAJOR_VERSION;") = "5" ]; then \
- pecl install memcached-2.2.0; \
+ echo '' | pecl -q install memcached-2.2.0; \
else \
- pecl install memcached-3.1.3; \
+ echo '' | pecl -q install memcached; \
fi \
&& docker-php-ext-enable memcached \
;fi
@@ -489,6 +594,7 @@ RUN set -xe; \
###########################################################################
ARG INSTALL_OCI8=false
+ARG ORACLE_INSTANT_CLIENT_MIRROR=https://github.com/diogomascarenha/oracle-instantclient/raw/master/
ENV LD_LIBRARY_PATH="/opt/oracle/instantclient_12_1"
ENV OCI_HOME="/opt/oracle/instantclient_12_1"
@@ -498,12 +604,12 @@ ENV OCI_VERSION=12
RUN if [ ${INSTALL_OCI8} = true ]; then \
# Install wget
- apt-get update && apt-get install --no-install-recommends -y wget \
+ apt-get install --no-install-recommends -yqq wget \
# Install Oracle Instantclient
&& mkdir /opt/oracle \
&& cd /opt/oracle \
- && wget https://github.com/diogomascarenha/oracle-instantclient/raw/master/instantclient-basic-linux.x64-12.1.0.2.0.zip \
- && wget https://github.com/diogomascarenha/oracle-instantclient/raw/master/instantclient-sdk-linux.x64-12.1.0.2.0.zip \
+ && wget ${ORACLE_INSTANT_CLIENT_MIRROR}instantclient-basic-linux.x64-12.1.0.2.0.zip \
+ && wget ${ORACLE_INSTANT_CLIENT_MIRROR}instantclient-sdk-linux.x64-12.1.0.2.0.zip \
&& unzip /opt/oracle/instantclient-basic-linux.x64-12.1.0.2.0.zip -d /opt/oracle \
&& unzip /opt/oracle/instantclient-sdk-linux.x64-12.1.0.2.0.zip -d /opt/oracle \
&& ln -s /opt/oracle/instantclient_12_1/libclntsh.so.12.1 /opt/oracle/instantclient_12_1/libclntsh.so \
@@ -511,13 +617,16 @@ RUN if [ ${INSTALL_OCI8} = true ]; then \
&& ln -s /opt/oracle/instantclient_12_1/libocci.so.12.1 /opt/oracle/instantclient_12_1/libocci.so \
&& rm -rf /opt/oracle/*.zip \
# Install PHP extensions deps
- && apt-get update \
- && apt-get install --no-install-recommends -y \
- libaio-dev \
- freetds-dev && \
+ && apt-get install --no-install-recommends -yqq \
+ libaio-dev \
+ freetds-dev && \
# Install PHP extensions
if [ $(php -r "echo PHP_MAJOR_VERSION;") = "5" ]; then \
- echo 'instantclient,/opt/oracle/instantclient_12_1/' | pecl install oci8-2.0.10; \
+ echo 'instantclient,/opt/oracle/instantclient_12_1/' | pecl install oci8-2.0.12; \
+ elif [ $(php -r "echo PHP_MAJOR_VERSION;") = "7" ]; then \
+ echo 'instantclient,/opt/oracle/instantclient_12_1/' | pecl install oci8-2.2.0; \
+ elif [ $(php -r "echo PHP_MAJOR_VERSION;") = "8" ] && [ $(php -r "echo PHP_MINOR_VERSION;") = "0" ]; then \
+ echo 'instantclient,/opt/oracle/instantclient_12_1/' | pecl install oci8-3.0.1; \
else \
echo 'instantclient,/opt/oracle/instantclient_12_1/' | pecl install oci8; \
fi \
@@ -536,12 +645,15 @@ RUN if [ ${INSTALL_OCI8} = true ]; then \
ARG INSTALL_IONCUBE=false
RUN if [ ${INSTALL_IONCUBE} = true ]; then \
- # Install the php ioncube loader
- curl -L -o /tmp/ioncube_loaders_lin_x86-64.tar.gz https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz \
- && tar zxpf /tmp/ioncube_loaders_lin_x86-64.tar.gz -C /tmp \
- && mv /tmp/ioncube/ioncube_loader_lin_${LARADOCK_PHP_VERSION}.so $(php -r "echo ini_get('extension_dir');")/ioncube_loader.so \
- && printf "zend_extension=ioncube_loader.so\n" > $PHP_INI_DIR/conf.d/0ioncube.ini \
- && rm -rf /tmp/ioncube* \
+ if [ $(php -r "echo PHP_MAJOR_VERSION;") != "8" ]; then \
+ # Install the php ioncube loader
+ curl -L -o /tmp/ioncube_loaders_lin_x86-64.tar.gz https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz \
+ && tar zxpf /tmp/ioncube_loaders_lin_x86-64.tar.gz -C /tmp \
+ && mv /tmp/ioncube/ioncube_loader_lin_${LARADOCK_PHP_VERSION}.so $(php -r "echo ini_get('extension_dir');")/ioncube_loader.so \
+ && printf "zend_extension=ioncube_loader.so\n" > $PHP_INI_DIR/conf.d/0ioncube.ini \
+ && rm -rf /tmp/ioncube* \
+ && php -m | grep -oiE '^ionCube Loader$' \
+ ;fi \
;fi
###########################################################################
@@ -576,7 +688,7 @@ ARG INSTALL_INTL=false
RUN if [ ${INSTALL_INTL} = true ]; then \
# Install intl and requirements
- apt-get install -y zlib1g-dev libicu-dev g++ && \
+ apt-get install -yqq zlib1g-dev libicu-dev g++ && \
docker-php-ext-configure intl && \
docker-php-ext-install intl \
;fi
@@ -590,7 +702,7 @@ ARG INSTALL_GHOSTSCRIPT=false
RUN if [ ${INSTALL_GHOSTSCRIPT} = true ]; then \
# Install the ghostscript extension
# for PDF editing
- apt-get install -y \
+ apt-get install -yqq \
poppler-utils \
ghostscript \
;fi
@@ -602,7 +714,7 @@ RUN if [ ${INSTALL_GHOSTSCRIPT} = true ]; then \
ARG INSTALL_LDAP=false
RUN if [ ${INSTALL_LDAP} = true ]; then \
- apt-get install -y libldap2-dev && \
+ apt-get install -yqq libldap2-dev && \
docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu/ && \
docker-php-ext-install ldap \
;fi
@@ -616,35 +728,36 @@ ARG INSTALL_MSSQL=false
RUN set -eux; \
if [ ${INSTALL_MSSQL} = true ]; then \
if [ $(php -r "echo PHP_MAJOR_VERSION;") = "5" ]; then \
- apt-get -y install freetds-dev libsybdb5 \
+ apt-get -yqq install freetds-dev libsybdb5 \
&& ln -s /usr/lib/x86_64-linux-gnu/libsybdb.so /usr/lib/libsybdb.so \
&& docker-php-ext-install mssql pdo_dblib \
- && php -m | grep -q 'mssql' \
- && php -m | grep -q 'pdo_dblib' \
+ && php -m | grep -oiE '^mssql$' \
+ && php -m | grep -oiE '^pdo_dblib$' \
;else \
###########################################################################
# Ref from https://github.com/Microsoft/msphpsql/wiki/Dockerfile-for-adding-pdo_sqlsrv-and-sqlsrv-to-official-php-image
###########################################################################
# Add Microsoft repo for Microsoft ODBC Driver 13 for Linux
- apt-get install -y apt-transport-https gnupg \
+ apt-get install -yqq apt-transport-https gnupg lsb-release \
&& curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - \
- && curl https://packages.microsoft.com/config/debian/9/prod.list > /etc/apt/sources.list.d/mssql-release.list \
+ && curl https://packages.microsoft.com/config/debian/$(lsb_release -rs)/prod.list > /etc/apt/sources.list.d/mssql-release.list \
&& apt-get update -yqq \
- # Install Dependencies
- && ACCEPT_EULA=Y apt-get install -y unixodbc unixodbc-dev libgss3 odbcinst msodbcsql17 locales \
+ && ACCEPT_EULA=Y apt-get install -yqq unixodbc unixodbc-dev libgss3 odbcinst msodbcsql17 locales \
&& echo "en_US.UTF-8 UTF-8" > /etc/locale.gen \
- # link local aliases
&& ln -sfn /etc/locale.alias /usr/share/locale/locale.alias \
&& locale-gen \
- # Install pdo_sqlsrv and sqlsrv from PECL. Replace pdo_sqlsrv-4.1.8preview with preferred version.
- && if [ $(php -r "echo PHP_MINOR_VERSION;") = "0" ]; then \
+ && if [ $(php -r "echo PHP_VERSION_ID - PHP_RELEASE_VERSION;") = "70000" ]; then \
pecl install pdo_sqlsrv-5.3.0 sqlsrv-5.3.0 \
+ ;elif [ $(php -r "echo PHP_VERSION_ID - PHP_RELEASE_VERSION;") = "70100" ]; then \
+ pecl install pdo_sqlsrv-5.6.1 sqlsrv-5.6.1 \
+ ;elif [ $(php -r "echo PHP_VERSION_ID - PHP_RELEASE_VERSION;") = "70200" ]; then \
+ pecl install pdo_sqlsrv-5.8.1 sqlsrv-5.8.1 \
;else \
pecl install pdo_sqlsrv sqlsrv \
;fi \
&& docker-php-ext-enable pdo_sqlsrv sqlsrv \
- && php -m | grep -q 'pdo_sqlsrv' \
- && php -m | grep -q 'sqlsrv' \
+ && php -m | grep -oiE '^pdo_sqlsrv$' \
+ && php -m | grep -oiE '^sqlsrv$' \
;fi \
;fi
@@ -657,7 +770,7 @@ USER root
ARG INSTALL_IMAGE_OPTIMIZERS=false
RUN if [ ${INSTALL_IMAGE_OPTIMIZERS} = true ]; then \
- apt-get install -y jpegoptim optipng pngquant gifsicle \
+ apt-get install -yqq jpegoptim optipng pngquant gifsicle \
;fi
###########################################################################
@@ -667,11 +780,29 @@ RUN if [ ${INSTALL_IMAGE_OPTIMIZERS} = true ]; then \
USER root
ARG INSTALL_IMAGEMAGICK=false
+ARG IMAGEMAGICK_VERSION=latest
+ENV IMAGEMAGICK_VERSION ${IMAGEMAGICK_VERSION}
RUN if [ ${INSTALL_IMAGEMAGICK} = true ]; then \
- apt-get install -y libmagickwand-dev imagemagick && \
- pecl install imagick && \
- docker-php-ext-enable imagick \
+ apt-get install -yqq libmagickwand-dev imagemagick && \
+ if [ $(php -r "echo PHP_MAJOR_VERSION;") = "8" ]; then \
+ cd /tmp && \
+ if [ ${IMAGEMAGICK_VERSION} = "latest" ]; then \
+ git clone https://github.com/Imagick/imagick; \
+ else \
+ git clone --branch ${IMAGEMAGICK_VERSION} https://github.com/Imagick/imagick; \
+ fi && \
+ cd imagick && \
+ phpize && \
+ ./configure && \
+ make && \
+ make install && \
+ rm -r /tmp/imagick; \
+ else \
+ pecl install imagick; \
+ fi && \
+ docker-php-ext-enable imagick; \
+ php -m | grep -q 'imagick' \
;fi
###########################################################################
@@ -681,7 +812,9 @@ RUN if [ ${INSTALL_IMAGEMAGICK} = true ]; then \
ARG INSTALL_SMB=false
RUN if [ ${INSTALL_SMB} = true ]; then \
- apt-get install -y smbclient php-smbclient coreutils \
+ apt-get install -yqq smbclient libsmbclient-dev coreutils && \
+ pecl install smbclient && \
+ docker-php-ext-enable smbclient \
;fi
###########################################################################
@@ -691,7 +824,7 @@ RUN if [ ${INSTALL_SMB} = true ]; then \
ARG INSTALL_IMAP=false
RUN if [ ${INSTALL_IMAP} = true ]; then \
- apt-get install -y libc-client-dev libkrb5-dev && \
+ apt-get install -yqq libc-client-dev libkrb5-dev && \
docker-php-ext-configure imap --with-kerberos --with-imap-ssl && \
docker-php-ext-install imap \
;fi
@@ -721,7 +854,7 @@ ENV LARADOCK_PHALCON_VERSION ${LARADOCK_PHALCON_VERSION}
COPY ./phalcon.ini /usr/local/etc/php/conf.d/phalcon.ini.disable
RUN if [ $INSTALL_PHALCON = true ]; then \
- apt-get update && apt-get install -y unzip libpcre3-dev gcc make re2c git automake autoconf\
+ apt-get install -yqq unzip libpcre3-dev gcc make re2c git automake autoconf\
&& git clone https://github.com/jbboehr/php-psr.git \
&& cd php-psr \
&& phpize \
@@ -761,13 +894,15 @@ USER root
ARG INSTALL_YAML=false
RUN if [ ${INSTALL_YAML} = true ]; then \
- apt-get install libyaml-dev -y ; \
+ apt-get install -yqq libyaml-dev; \
if [ $(php -r "echo PHP_MAJOR_VERSION;") = "5" ]; then \
- pecl install -a yaml-1.3.2; \
+ echo '' | pecl install -a yaml-1.3.2; \
+ elif [ $(php -r "echo PHP_MAJOR_VERSION;") = "7" ] && [ $(php -r "echo PHP_MINOR_VERSION;") = "0" ]; then \
+ echo '' | pecl install yaml-2.0.4; \
else \
- pecl install yaml; \
- fi && \
- docker-php-ext-enable yaml \
+ echo '' | pecl install yaml; \
+ fi \
+ && docker-php-ext-enable yaml \
;fi
###########################################################################
@@ -777,7 +912,7 @@ RUN if [ ${INSTALL_YAML} = true ]; then \
ARG INSTALL_RDKAFKA=false
RUN if [ ${INSTALL_RDKAFKA} = true ]; then \
- apt-get install -y librdkafka-dev && \
+ apt-get install -yqq librdkafka-dev && \
pecl install rdkafka && \
docker-php-ext-enable rdkafka \
;fi
@@ -789,7 +924,7 @@ RUN if [ ${INSTALL_RDKAFKA} = true ]; then \
ARG INSTALL_GETTEXT=false
RUN if [ ${INSTALL_GETTEXT} = true ]; then \
- apt-get install -y zlib1g-dev libicu-dev g++ libpq-dev libssl-dev gettext && \
+ apt-get install -yqq zlib1g-dev libicu-dev g++ libpq-dev libssl-dev gettext && \
docker-php-ext-install gettext \
;fi
@@ -801,7 +936,7 @@ ARG INSTALL_ADDITIONAL_LOCALES=false
ARG ADDITIONAL_LOCALES
RUN if [ ${INSTALL_ADDITIONAL_LOCALES} = true ]; then \
- apt-get install -y locales \
+ apt-get install -yqq locales \
&& echo '' >> /usr/share/locale/locale.alias \
&& temp="${ADDITIONAL_LOCALES%\"}" \
&& temp="${temp#\"}" \
@@ -845,6 +980,21 @@ RUN if [ ${INSTALL_SSHPASS} = true ]; then \
apt-get -y install sshpass \
;fi
+###########################################################################
+# Docker Client:
+###########################################################################
+
+USER root
+
+ARG INSTALL_DOCKER_CLIENT=false
+
+RUN if [ ${INSTALL_DOCKER_CLIENT} = true ]; then \
+ curl -sS https://download.docker.com/linux/static/stable/x86_64/docker-20.10.3.tgz -o /tmp/docker.tar.gz && \
+ tar -xzf /tmp/docker.tar.gz -C /tmp/ && \
+ cp /tmp/docker/docker* /usr/local/bin && \
+ chmod +x /usr/local/bin/docker* \
+;fi
+
###########################################################################
# FFMPEG:
###########################################################################
@@ -857,6 +1007,28 @@ RUN if [ ${INSTALL_FFMPEG} = true ]; then \
apt-get -y install ffmpeg \
;fi
+###########################################################################
+# BBC Audio Waveform Image Generator:
+###########################################################################
+
+USER root
+
+ARG INSTALL_AUDIOWAVEFORM=false
+
+RUN if [ ${INSTALL_AUDIOWAVEFORM} = true ]; then \
+ apt-get -y install wget make cmake gcc g++ libmad0-dev libid3tag0-dev libsndfile1-dev libgd-dev libboost-filesystem-dev libboost-program-options-dev libboost-regex-dev \
+ && cd /tmp \
+ && git clone https://github.com/bbc/audiowaveform.git \
+ && cd audiowaveform \
+ && git clone --depth=1 https://github.com/google/googletest.git -b release-1.11.0 \
+ && mkdir build \
+ && cd build \
+ && cmake .. \
+ && make \
+ && make install \
+;fi
+
+
#####################################
# wkhtmltopdf:
#####################################
@@ -864,24 +1036,39 @@ RUN if [ ${INSTALL_FFMPEG} = true ]; then \
USER root
ARG INSTALL_WKHTMLTOPDF=false
+ARG WKHTMLTOPDF_VERSION=0.12.6-1
RUN if [ ${INSTALL_WKHTMLTOPDF} = true ]; then \
- apt-get install -y \
- libxrender1 \
- libfontconfig1 \
- libx11-dev \
- libjpeg62 \
- libxtst6 \
- fontconfig \
- libjpeg62-turbo \
- xfonts-base \
- xfonts-75dpi \
- wget \
- && wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.stretch_amd64.deb \
- && dpkg -i wkhtmltox_0.12.6-1.stretch_amd64.deb \
+ ARCH=$(arch | sed s/aarch64/arm64/ | sed s/x86_64/amd64/) \
+ && apt-get install -yqq \
+ libxrender1 \
+ libfontconfig1 \
+ libx11-dev \
+ libjpeg62 \
+ libxtst6 \
+ fontconfig \
+ libjpeg62-turbo \
+ xfonts-base \
+ xfonts-75dpi \
+ wget \
+ && wget "https://github.com/wkhtmltopdf/packaging/releases/download/${WKHTMLTOPDF_VERSION}/wkhtmltox_0.12.6-1.stretch_${ARCH}.deb" \
+ && dpkg -i "wkhtmltox_${WKHTMLTOPDF_VERSION}.stretch_${ARCH}.deb" \
&& apt -f install \
;fi
+#####################################
+# trader:
+#####################################
+
+USER root
+
+ARG INSTALL_TRADER=false
+
+RUN if [ ${INSTALL_TRADER} = true ]; then \
+ pecl install trader \
+ && echo "extension=trader.so" >> $PHP_INI_DIR/conf.d/trader.ini \
+;fi
+
###########################################################################
# Mailparse extension:
###########################################################################
@@ -918,9 +1105,106 @@ RUN if [ ${INSTALL_CACHETOOL} = true ]; then \
ARG INSTALL_XMLRPC=false
RUN if [ ${INSTALL_XMLRPC} = true ]; then \
- docker-php-ext-install xmlrpc \
+ apt-get -yq install libxml2-dev; \
+ if [ $(php -r "echo PHP_MAJOR_VERSION;") = "8" ]; then \
+ pecl install xmlrpc-1.0.0RC3; \
+ docker-php-ext-enable xmlrpc; \
+ else \
+ docker-php-ext-install xmlrpc; \
+ fi \
;fi
+###########################################################################
+# PHP DECIMAL:
+###########################################################################
+
+USER root
+
+ARG INSTALL_PHPDECIMAL=false
+
+RUN if [ ${INSTALL_PHPDECIMAL} = true ]; then \
+ if [ $(php -r "echo PHP_MAJOR_VERSION;") = "5" ]; then \
+ echo 'decimal not support PHP 5.6'; \
+ else \
+ apt-get install -yqq libmpdec-dev \
+ && pecl install decimal \
+ && docker-php-ext-enable decimal \
+ && php -m | grep -q 'decimal' \
+ ;fi \
+;fi
+
+###########################################################################
+# zookeeper
+###########################################################################
+ARG INSTALL_ZOOKEEPER=false
+
+RUN set -eux; \
+ if [ ${INSTALL_ZOOKEEPER} = true ]; then \
+ apt install -yqq libzookeeper-mt-dev; \
+ if [ $(php -r "echo PHP_MAJOR_VERSION;") = "8" ]; then \
+ curl -L -o /tmp/php-zookeeper.tar.gz https://github.com/php-zookeeper/php-zookeeper/archive/master.tar.gz; \
+ mkdir -p /tmp/php-zookeeper; \
+ tar -C /tmp/php-zookeeper -zxvf /tmp/php-zookeeper.tar.gz --strip 1; \
+ cd /tmp/php-zookeeper; \
+ phpize && ./configure && make && make install;\
+ else \
+ if [ $(php -r "echo PHP_MAJOR_VERSION;") = "5" ]; then \
+ pecl install zookeeper-0.5.0; \
+ else \
+ pecl install zookeeper-0.7.2; \
+ fi; \
+ fi; \
+ docker-php-ext-enable zookeeper; \
+ php -m | grep -q 'zookeeper'; \
+ fi
+
+###########################################################################
+# New Relic for PHP:
+###########################################################################
+ARG NEW_RELIC=${NEW_RELIC}
+ARG NEW_RELIC_KEY=${NEW_RELIC_KEY}
+ARG NEW_RELIC_APP_NAME=${NEW_RELIC_APP_NAME}
+
+RUN if [ ${NEW_RELIC} = true ]; then \
+ curl -L http://download.newrelic.com/php_agent/release/newrelic-php5-9.18.1.303-linux.tar.gz | tar -C /tmp -zx && \
+ export NR_INSTALL_USE_CP_NOT_LN=1 && \
+ export NR_INSTALL_SILENT=1 && \
+ /tmp/newrelic-php5-*/newrelic-install install && \
+ rm -rf /tmp/newrelic-php5-* /tmp/nrinstall* && \
+ sed -i \
+ -e 's/"REPLACE_WITH_REAL_KEY"/"'${NEW_RELIC_KEY}'"/' \
+ -e 's/newrelic.appname = "PHP Application"/newrelic.appname = "'${NEW_RELIC_APP_NAME}'"/' \
+ -e 's/;newrelic.daemon.app_connect_timeout =.*/newrelic.daemon.app_connect_timeout=15s/' \
+ -e 's/;newrelic.daemon.start_timeout =.*/newrelic.daemon.start_timeout=5s/' \
+ /usr/local/etc/php/conf.d/newrelic.ini \
+;fi
+
+###########################################################################
+# PHP SSDB:
+###########################################################################
+
+USER root
+
+ARG INSTALL_SSDB=false
+
+RUN set -xe; \
+ if [ ${INSTALL_SSDB} = true ] && [ $(php -r "echo PHP_MAJOR_VERSION;") != "8" ]; then \
+ apt-get -y install sudo wget && \
+ if [ $(php -r "echo PHP_MAJOR_VERSION;") = "7" ]; then \
+ curl -L -o /tmp/ssdb-client-php.tar.gz https://github.com/jonnywang/phpssdb/archive/php7.tar.gz; \
+ else \
+ curl -L -o /tmp/ssdb-client-php.tar.gz https://github.com/jonnywang/phpssdb/archive/master.tar.gz; \
+ fi \
+ && mkdir -p /tmp/ssdb-client-php \
+ && tar -C /tmp/ssdb-client-php -zxvf /tmp/ssdb-client-php.tar.gz --strip 1 \
+ && cd /tmp/ssdb-client-php \
+ && phpize \
+ && ./configure \
+ && make \
+ && make install \
+ && rm /tmp/ssdb-client-php.tar.gz \
+ && docker-php-ext-enable ssdb \
+;fi
###########################################################################
# Downgrade Openssl:
###########################################################################
@@ -933,6 +1217,59 @@ RUN if [ ${DOWNGRADE_OPENSSL_TLS_AND_SECLEVEL} = true ]; then \
sed -i 's,^\(CipherString[ ]*=\).*,\1'DEFAULT@SECLEVEL=1',g' /etc/ssl/openssl.cnf\
;fi
+###########################################################################
+# zmq
+###########################################################################
+
+USER root
+
+ARG INSTALL_ZMQ=false
+
+RUN if [ ${INSTALL_ZMQ} = true ]; then \
+ apt-get install --yes git libzmq3-dev \
+ && git clone https://github.com/zeromq/php-zmq.git \
+ && cd php-zmq \
+ && phpize \
+ && ./configure \
+ && make \
+ && make install \
+ && cd .. \
+ && rm -fr php-zmq \
+ && echo "extension=zmq.so" > /usr/local/etc/php/conf.d/zmq.ini \
+;fi
+
+
+############################################################################
+## Event:
+############################################################################
+USER root
+
+ARG INSTALL_EVENT=false
+
+RUN set -eux; \
+ if [ ${INSTALL_EVENT} = true ]; then \
+ curl -L -o /tmp/libevent.tar.gz https://github.com/libevent/libevent/releases/download/release-2.1.12-stable/libevent-2.1.12-stable.tar.gz &&\
+ mkdir -p /tmp/libevent-php &&\
+ tar -C /tmp/libevent-php -zxvf /tmp/libevent.tar.gz --strip 1 &&\
+ cd /tmp/libevent-php &&\
+ ./configure --prefix=/usr/local/libevent-2.1.12 &&\
+ make &&\
+ make install &&\
+ rm /tmp/libevent.tar.gz &&\
+ docker-php-ext-install sockets &&\
+ curl -L -o /tmp/event.tar.gz http://pecl.php.net/get/event-3.0.6.tgz &&\
+ mkdir -p /tmp/event-php &&\
+ tar -C /tmp/event-php -zxvf /tmp/event.tar.gz --strip 1 &&\
+ cd /tmp/event-php &&\
+ phpize &&\
+ ./configure --with-event-libevent-dir=/usr/local/libevent-2.1.12/ &&\
+ make &&\
+ make install &&\
+ rm /tmp/event.tar.gz &&\
+ docker-php-ext-enable event &&\
+ php -m | grep -q 'event' \
+;fi
+
###########################################################################
# Check PHP version:
###########################################################################
diff --git a/php-fpm/php8.0.ini b/php-fpm/php8.0.ini
new file mode 100644
index 00000000..06e4a5af
--- /dev/null
+++ b/php-fpm/php8.0.ini
@@ -0,0 +1,1944 @@
+[PHP]
+
+;;;;;;;;;;;;;;;;;;;
+; About php.ini ;
+;;;;;;;;;;;;;;;;;;;
+; PHP's initialization file, generally called php.ini, is responsible for
+; configuring many of the aspects of PHP's behavior.
+
+; PHP attempts to find and load this configuration from a number of locations.
+; The following is a summary of its search order:
+; 1. SAPI module specific location.
+; 2. The PHPRC environment variable. (As of PHP 5.2.0)
+; 3. A number of predefined registry keys on Windows (As of PHP 5.2.0)
+; 4. Current working directory (except CLI)
+; 5. The web server's directory (for SAPI modules), or directory of PHP
+; (otherwise in Windows)
+; 6. The directory from the --with-config-file-path compile time option, or the
+; Windows directory (usually C:\windows)
+; See the PHP docs for more specific information.
+; http://php.net/configuration.file
+
+; The syntax of the file is extremely simple. Whitespace and lines
+; beginning with a semicolon are silently ignored (as you probably guessed).
+; Section headers (e.g. [Foo]) are also silently ignored, even though
+; they might mean something in the future.
+
+; Directives following the section heading [PATH=/www/mysite] only
+; apply to PHP files in the /www/mysite directory. Directives
+; following the section heading [HOST=www.example.com] only apply to
+; PHP files served from www.example.com. Directives set in these
+; special sections cannot be overridden by user-defined INI files or
+; at runtime. Currently, [PATH=] and [HOST=] sections only work under
+; CGI/FastCGI.
+; http://php.net/ini.sections
+
+; Directives are specified using the following syntax:
+; directive = value
+; Directive names are *case sensitive* - foo=bar is different from FOO=bar.
+; Directives are variables used to configure PHP or PHP extensions.
+; There is no name validation. If PHP can't find an expected
+; directive because it is not set or is mistyped, a default value will be used.
+
+; The value can be a string, a number, a PHP constant (e.g. E_ALL or M_PI), one
+; of the INI constants (On, Off, True, False, Yes, No and None) or an expression
+; (e.g. E_ALL & ~E_NOTICE), a quoted string ("bar"), or a reference to a
+; previously set variable or directive (e.g. ${foo})
+
+; Expressions in the INI file are limited to bitwise operators and parentheses:
+; | bitwise OR
+; ^ bitwise XOR
+; & bitwise AND
+; ~ bitwise NOT
+; ! boolean NOT
+
+; Boolean flags can be turned on using the values 1, On, True or Yes.
+; They can be turned off using the values 0, Off, False or No.
+
+; An empty string can be denoted by simply not writing anything after the equal
+; sign, or by using the None keyword:
+
+; foo = ; sets foo to an empty string
+; foo = None ; sets foo to an empty string
+; foo = "None" ; sets foo to the string 'None'
+
+; If you use constants in your value, and these constants belong to a
+; dynamically loaded extension (either a PHP extension or a Zend extension),
+; you may only use these constants *after* the line that loads the extension.
+
+;;;;;;;;;;;;;;;;;;;
+; About this file ;
+;;;;;;;;;;;;;;;;;;;
+; PHP comes packaged with two INI files. One that is recommended to be used
+; in production environments and one that is recommended to be used in
+; development environments.
+
+; php.ini-production contains settings which hold security, performance and
+; best practices at its core. But please be aware, these settings may break
+; compatibility with older or less security conscience applications. We
+; recommending using the production ini in production and testing environments.
+
+; php.ini-development is very similar to its production variant, except it is
+; much more verbose when it comes to errors. We recommend using the
+; development version only in development environments, as errors shown to
+; application users can inadvertently leak otherwise secure information.
+
+; This is the php.ini-development INI file.
+
+;;;;;;;;;;;;;;;;;;;
+; Quick Reference ;
+;;;;;;;;;;;;;;;;;;;
+
+; The following are all the settings which are different in either the production
+; or development versions of the INIs with respect to PHP's default behavior.
+; Please see the actual settings later in the document for more details as to why
+; we recommend these changes in PHP's behavior.
+
+; display_errors
+; Default Value: On
+; Development Value: On
+; Production Value: Off
+
+; display_startup_errors
+; Default Value: On
+; Development Value: On
+; Production Value: Off
+
+; error_reporting
+; Default Value: E_ALL
+; Development Value: E_ALL
+; Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT
+
+; log_errors
+; Default Value: Off
+; Development Value: On
+; Production Value: On
+
+; max_input_time
+; Default Value: -1 (Unlimited)
+; Development Value: 60 (60 seconds)
+; Production Value: 60 (60 seconds)
+
+; output_buffering
+; Default Value: Off
+; Development Value: 4096
+; Production Value: 4096
+
+; register_argc_argv
+; Default Value: On
+; Development Value: Off
+; Production Value: Off
+
+; request_order
+; Default Value: None
+; Development Value: "GP"
+; Production Value: "GP"
+
+; session.gc_divisor
+; Default Value: 100
+; Development Value: 1000
+; Production Value: 1000
+
+; session.sid_bits_per_character
+; Default Value: 4
+; Development Value: 5
+; Production Value: 5
+
+; short_open_tag
+; Default Value: On
+; Development Value: Off
+; Production Value: Off
+
+; variables_order
+; Default Value: "EGPCS"
+; Development Value: "GPCS"
+; Production Value: "GPCS"
+
+; zend.exception_ignore_args
+; Default Value: Off
+; Development Value: Off
+; Production Value: On
+
+; zend.exception_string_param_max_len
+; Default Value: 15
+; Development Value: 15
+; Production Value: 0
+
+;;;;;;;;;;;;;;;;;;;;
+; php.ini Options ;
+;;;;;;;;;;;;;;;;;;;;
+; Name for user-defined php.ini (.htaccess) files. Default is ".user.ini"
+;user_ini.filename = ".user.ini"
+
+; To disable this feature set this option to an empty value
+;user_ini.filename =
+
+; TTL for user-defined php.ini files (time-to-live) in seconds. Default is 300 seconds (5 minutes)
+;user_ini.cache_ttl = 300
+
+;;;;;;;;;;;;;;;;;;;;
+; Language Options ;
+;;;;;;;;;;;;;;;;;;;;
+
+; Enable the PHP scripting language engine under Apache.
+; http://php.net/engine
+engine = On
+
+; This directive determines whether or not PHP will recognize code between
+; and ?> tags as PHP source which should be processed as such. It is
+; generally recommended that should be used and that this feature
+; should be disabled, as enabling it may result in issues when generating XML
+; documents, however this remains supported for backward compatibility reasons.
+; Note that this directive does not control the = shorthand tag, which can be
+; used regardless of this directive.
+; Default Value: On
+; Development Value: Off
+; Production Value: Off
+; http://php.net/short-open-tag
+short_open_tag = Off
+
+; The number of significant digits displayed in floating point numbers.
+; http://php.net/precision
+precision = 14
+
+; Output buffering is a mechanism for controlling how much output data
+; (excluding headers and cookies) PHP should keep internally before pushing that
+; data to the client. If your application's output exceeds this setting, PHP
+; will send that data in chunks of roughly the size you specify.
+; Turning on this setting and managing its maximum buffer size can yield some
+; interesting side-effects depending on your application and web server.
+; You may be able to send headers and cookies after you've already sent output
+; through print or echo. You also may see performance benefits if your server is
+; emitting less packets due to buffered output versus PHP streaming the output
+; as it gets it. On production servers, 4096 bytes is a good setting for performance
+; reasons.
+; Note: Output buffering can also be controlled via Output Buffering Control
+; functions.
+; Possible Values:
+; On = Enabled and buffer is unlimited. (Use with caution)
+; Off = Disabled
+; Integer = Enables the buffer and sets its maximum size in bytes.
+; Note: This directive is hardcoded to Off for the CLI SAPI
+; Default Value: Off
+; Development Value: 4096
+; Production Value: 4096
+; http://php.net/output-buffering
+output_buffering = 4096
+
+; You can redirect all of the output of your scripts to a function. For
+; example, if you set output_handler to "mb_output_handler", character
+; encoding will be transparently converted to the specified encoding.
+; Setting any output handler automatically turns on output buffering.
+; Note: People who wrote portable scripts should not depend on this ini
+; directive. Instead, explicitly set the output handler using ob_start().
+; Using this ini directive may cause problems unless you know what script
+; is doing.
+; Note: You cannot use both "mb_output_handler" with "ob_iconv_handler"
+; and you cannot use both "ob_gzhandler" and "zlib.output_compression".
+; Note: output_handler must be empty if this is set 'On' !!!!
+; Instead you must use zlib.output_handler.
+; http://php.net/output-handler
+;output_handler =
+
+; URL rewriter function rewrites URL on the fly by using
+; output buffer. You can set target tags by this configuration.
+; "form" tag is special tag. It will add hidden input tag to pass values.
+; Refer to session.trans_sid_tags for usage.
+; Default Value: "form="
+; Development Value: "form="
+; Production Value: "form="
+;url_rewriter.tags
+
+; URL rewriter will not rewrite absolute URL nor form by default. To enable
+; absolute URL rewrite, allowed hosts must be defined at RUNTIME.
+; Refer to session.trans_sid_hosts for more details.
+; Default Value: ""
+; Development Value: ""
+; Production Value: ""
+;url_rewriter.hosts
+
+; Transparent output compression using the zlib library
+; Valid values for this option are 'off', 'on', or a specific buffer size
+; to be used for compression (default is 4KB)
+; Note: Resulting chunk size may vary due to nature of compression. PHP
+; outputs chunks that are few hundreds bytes each as a result of
+; compression. If you prefer a larger chunk size for better
+; performance, enable output_buffering in addition.
+; Note: You need to use zlib.output_handler instead of the standard
+; output_handler, or otherwise the output will be corrupted.
+; http://php.net/zlib.output-compression
+zlib.output_compression = Off
+
+; http://php.net/zlib.output-compression-level
+;zlib.output_compression_level = -1
+
+; You cannot specify additional output handlers if zlib.output_compression
+; is activated here. This setting does the same as output_handler but in
+; a different order.
+; http://php.net/zlib.output-handler
+;zlib.output_handler =
+
+; Implicit flush tells PHP to tell the output layer to flush itself
+; automatically after every output block. This is equivalent to calling the
+; PHP function flush() after each and every call to print() or echo() and each
+; and every HTML block. Turning this option on has serious performance
+; implications and is generally recommended for debugging purposes only.
+; http://php.net/implicit-flush
+; Note: This directive is hardcoded to On for the CLI SAPI
+implicit_flush = Off
+
+; The unserialize callback function will be called (with the undefined class'
+; name as parameter), if the unserializer finds an undefined class
+; which should be instantiated. A warning appears if the specified function is
+; not defined, or if the function doesn't include/implement the missing class.
+; So only set this entry, if you really want to implement such a
+; callback-function.
+unserialize_callback_func =
+
+; The unserialize_max_depth specifies the default depth limit for unserialized
+; structures. Setting the depth limit too high may result in stack overflows
+; during unserialization. The unserialize_max_depth ini setting can be
+; overridden by the max_depth option on individual unserialize() calls.
+; A value of 0 disables the depth limit.
+;unserialize_max_depth = 4096
+
+; When floats & doubles are serialized, store serialize_precision significant
+; digits after the floating point. The default value ensures that when floats
+; are decoded with unserialize, the data will remain the same.
+; The value is also used for json_encode when encoding double values.
+; If -1 is used, then dtoa mode 0 is used which automatically select the best
+; precision.
+serialize_precision = -1
+
+; open_basedir, if set, limits all file operations to the defined directory
+; and below. This directive makes most sense if used in a per-directory
+; or per-virtualhost web server configuration file.
+; Note: disables the realpath cache
+; http://php.net/open-basedir
+;open_basedir =
+
+; This directive allows you to disable certain functions.
+; It receives a comma-delimited list of function names.
+; http://php.net/disable-functions
+disable_functions =
+
+; This directive allows you to disable certain classes.
+; It receives a comma-delimited list of class names.
+; http://php.net/disable-classes
+disable_classes =
+
+; Colors for Syntax Highlighting mode. Anything that's acceptable in
+; would work.
+; http://php.net/syntax-highlighting
+;highlight.string = #DD0000
+;highlight.comment = #FF9900
+;highlight.keyword = #007700
+;highlight.default = #0000BB
+;highlight.html = #000000
+
+; If enabled, the request will be allowed to complete even if the user aborts
+; the request. Consider enabling it if executing long requests, which may end up
+; being interrupted by the user or a browser timing out. PHP's default behavior
+; is to disable this feature.
+; http://php.net/ignore-user-abort
+;ignore_user_abort = On
+
+; Determines the size of the realpath cache to be used by PHP. This value should
+; be increased on systems where PHP opens many files to reflect the quantity of
+; the file operations performed.
+; Note: if open_basedir is set, the cache is disabled
+; http://php.net/realpath-cache-size
+;realpath_cache_size = 4096k
+
+; Duration of time, in seconds for which to cache realpath information for a given
+; file or directory. For systems with rarely changing files, consider increasing this
+; value.
+; http://php.net/realpath-cache-ttl
+;realpath_cache_ttl = 120
+
+; Enables or disables the circular reference collector.
+; http://php.net/zend.enable-gc
+zend.enable_gc = On
+
+; If enabled, scripts may be written in encodings that are incompatible with
+; the scanner. CP936, Big5, CP949 and Shift_JIS are the examples of such
+; encodings. To use this feature, mbstring extension must be enabled.
+;zend.multibyte = Off
+
+; Allows to set the default encoding for the scripts. This value will be used
+; unless "declare(encoding=...)" directive appears at the top of the script.
+; Only affects if zend.multibyte is set.
+;zend.script_encoding =
+
+; Allows to include or exclude arguments from stack traces generated for exceptions.
+; In production, it is recommended to turn this setting on to prohibit the output
+; of sensitive information in stack traces
+; Default Value: Off
+; Development Value: Off
+; Production Value: On
+zend.exception_ignore_args = Off
+
+; Allows setting the maximum string length in an argument of a stringified stack trace
+; to a value between 0 and 1000000.
+; This has no effect when zend.exception_ignore_args is enabled.
+; Default Value: 15
+; Development Value: 15
+; Production Value: 0
+zend.exception_string_param_max_len = 15
+
+;;;;;;;;;;;;;;;;;
+; Miscellaneous ;
+;;;;;;;;;;;;;;;;;
+
+; Decides whether PHP may expose the fact that it is installed on the server
+; (e.g. by adding its signature to the Web server header). It is no security
+; threat in any way, but it makes it possible to determine whether you use PHP
+; on your server or not.
+; http://php.net/expose-php
+expose_php = On
+
+;;;;;;;;;;;;;;;;;;;
+; Resource Limits ;
+;;;;;;;;;;;;;;;;;;;
+
+; Maximum execution time of each script, in seconds
+; http://php.net/max-execution-time
+; Note: This directive is hardcoded to 0 for the CLI SAPI
+max_execution_time = 30
+
+; Maximum amount of time each script may spend parsing request data. It's a good
+; idea to limit this time on productions servers in order to eliminate unexpectedly
+; long running scripts.
+; Note: This directive is hardcoded to -1 for the CLI SAPI
+; Default Value: -1 (Unlimited)
+; Development Value: 60 (60 seconds)
+; Production Value: 60 (60 seconds)
+; http://php.net/max-input-time
+max_input_time = 60
+
+; Maximum input variable nesting level
+; http://php.net/max-input-nesting-level
+;max_input_nesting_level = 64
+
+; How many GET/POST/COOKIE input variables may be accepted
+;max_input_vars = 1000
+
+; Maximum amount of memory a script may consume
+; http://php.net/memory-limit
+memory_limit = 128M
+
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+; Error handling and logging ;
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+
+; This directive informs PHP of which errors, warnings and notices you would like
+; it to take action for. The recommended way of setting values for this
+; directive is through the use of the error level constants and bitwise
+; operators. The error level constants are below here for convenience as well as
+; some common settings and their meanings.
+; By default, PHP is set to take action on all errors, notices and warnings EXCEPT
+; those related to E_NOTICE and E_STRICT, which together cover best practices and
+; recommended coding standards in PHP. For performance reasons, this is the
+; recommend error reporting setting. Your production server shouldn't be wasting
+; resources complaining about best practices and coding standards. That's what
+; development servers and development settings are for.
+; Note: The php.ini-development file has this setting as E_ALL. This
+; means it pretty much reports everything which is exactly what you want during
+; development and early testing.
+;
+; Error Level Constants:
+; E_ALL - All errors and warnings (includes E_STRICT as of PHP 5.4.0)
+; E_ERROR - fatal run-time errors
+; E_RECOVERABLE_ERROR - almost fatal run-time errors
+; E_WARNING - run-time warnings (non-fatal errors)
+; E_PARSE - compile-time parse errors
+; E_NOTICE - run-time notices (these are warnings which often result
+; from a bug in your code, but it's possible that it was
+; intentional (e.g., using an uninitialized variable and
+; relying on the fact it is automatically initialized to an
+; empty string)
+; E_STRICT - run-time notices, enable to have PHP suggest changes
+; to your code which will ensure the best interoperability
+; and forward compatibility of your code
+; E_CORE_ERROR - fatal errors that occur during PHP's initial startup
+; E_CORE_WARNING - warnings (non-fatal errors) that occur during PHP's
+; initial startup
+; E_COMPILE_ERROR - fatal compile-time errors
+; E_COMPILE_WARNING - compile-time warnings (non-fatal errors)
+; E_USER_ERROR - user-generated error message
+; E_USER_WARNING - user-generated warning message
+; E_USER_NOTICE - user-generated notice message
+; E_DEPRECATED - warn about code that will not work in future versions
+; of PHP
+; E_USER_DEPRECATED - user-generated deprecation warnings
+;
+; Common Values:
+; E_ALL (Show all errors, warnings and notices including coding standards.)
+; E_ALL & ~E_NOTICE (Show all errors, except for notices)
+; E_ALL & ~E_NOTICE & ~E_STRICT (Show all errors, except for notices and coding standards warnings.)
+; E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR (Show only errors)
+; Default Value: E_ALL
+; Development Value: E_ALL
+; Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT
+; http://php.net/error-reporting
+error_reporting = E_ALL
+
+; This directive controls whether or not and where PHP will output errors,
+; notices and warnings too. Error output is very useful during development, but
+; it could be very dangerous in production environments. Depending on the code
+; which is triggering the error, sensitive information could potentially leak
+; out of your application such as database usernames and passwords or worse.
+; For production environments, we recommend logging errors rather than
+; sending them to STDOUT.
+; Possible Values:
+; Off = Do not display any errors
+; stderr = Display errors to STDERR (affects only CGI/CLI binaries!)
+; On or stdout = Display errors to STDOUT
+; Default Value: On
+; Development Value: On
+; Production Value: Off
+; http://php.net/display-errors
+display_errors = On
+
+; The display of errors which occur during PHP's startup sequence are handled
+; separately from display_errors. We strongly recommend you set this to 'off'
+; for production servers to avoid leaking configuration details.
+; Default Value: On
+; Development Value: On
+; Production Value: Off
+; http://php.net/display-startup-errors
+display_startup_errors = On
+
+; Besides displaying errors, PHP can also log errors to locations such as a
+; server-specific log, STDERR, or a location specified by the error_log
+; directive found below. While errors should not be displayed on productions
+; servers they should still be monitored and logging is a great way to do that.
+; Default Value: Off
+; Development Value: On
+; Production Value: On
+; http://php.net/log-errors
+log_errors = On
+
+; Set maximum length of log_errors. In error_log information about the source is
+; added. The default is 1024 and 0 allows to not apply any maximum length at all.
+; http://php.net/log-errors-max-len
+log_errors_max_len = 1024
+
+; Do not log repeated messages. Repeated errors must occur in same file on same
+; line unless ignore_repeated_source is set true.
+; http://php.net/ignore-repeated-errors
+ignore_repeated_errors = Off
+
+; Ignore source of message when ignoring repeated messages. When this setting
+; is On you will not log errors with repeated messages from different files or
+; source lines.
+; http://php.net/ignore-repeated-source
+ignore_repeated_source = Off
+
+; If this parameter is set to Off, then memory leaks will not be shown (on
+; stdout or in the log). This is only effective in a debug compile, and if
+; error reporting includes E_WARNING in the allowed list
+; http://php.net/report-memleaks
+report_memleaks = On
+
+; This setting is off by default.
+;report_zend_debug = 0
+
+; Turn off normal error reporting and emit XML-RPC error XML
+; http://php.net/xmlrpc-errors
+;xmlrpc_errors = 0
+
+; An XML-RPC faultCode
+;xmlrpc_error_number = 0
+
+; When PHP displays or logs an error, it has the capability of formatting the
+; error message as HTML for easier reading. This directive controls whether
+; the error message is formatted as HTML or not.
+; Note: This directive is hardcoded to Off for the CLI SAPI
+; http://php.net/html-errors
+;html_errors = On
+
+; If html_errors is set to On *and* docref_root is not empty, then PHP
+; produces clickable error messages that direct to a page describing the error
+; or function causing the error in detail.
+; You can download a copy of the PHP manual from http://php.net/docs
+; and change docref_root to the base URL of your local copy including the
+; leading '/'. You must also specify the file extension being used including
+; the dot. PHP's default behavior is to leave these settings empty, in which
+; case no links to documentation are generated.
+; Note: Never use this feature for production boxes.
+; http://php.net/docref-root
+; Examples
+;docref_root = "/phpmanual/"
+
+; http://php.net/docref-ext
+;docref_ext = .html
+
+; String to output before an error message. PHP's default behavior is to leave
+; this setting blank.
+; http://php.net/error-prepend-string
+; Example:
+;error_prepend_string = ""
+
+; String to output after an error message. PHP's default behavior is to leave
+; this setting blank.
+; http://php.net/error-append-string
+; Example:
+;error_append_string = ""
+
+; Log errors to specified file. PHP's default behavior is to leave this value
+; empty.
+; http://php.net/error-log
+; Example:
+;error_log = php_errors.log
+; Log errors to syslog (Event Log on Windows).
+;error_log = syslog
+
+; The syslog ident is a string which is prepended to every message logged
+; to syslog. Only used when error_log is set to syslog.
+;syslog.ident = php
+
+; The syslog facility is used to specify what type of program is logging
+; the message. Only used when error_log is set to syslog.
+;syslog.facility = user
+
+; Set this to disable filtering control characters (the default).
+; Some loggers only accept NVT-ASCII, others accept anything that's not
+; control characters. If your logger accepts everything, then no filtering
+; is needed at all.
+; Allowed values are:
+; ascii (all printable ASCII characters and NL)
+; no-ctrl (all characters except control characters)
+; all (all characters)
+; raw (like "all", but messages are not split at newlines)
+; http://php.net/syslog.filter
+;syslog.filter = ascii
+
+;windows.show_crt_warning
+; Default value: 0
+; Development value: 0
+; Production value: 0
+
+;;;;;;;;;;;;;;;;;
+; Data Handling ;
+;;;;;;;;;;;;;;;;;
+
+; The separator used in PHP generated URLs to separate arguments.
+; PHP's default setting is "&".
+; http://php.net/arg-separator.output
+; Example:
+;arg_separator.output = "&"
+
+; List of separator(s) used by PHP to parse input URLs into variables.
+; PHP's default setting is "&".
+; NOTE: Every character in this directive is considered as separator!
+; http://php.net/arg-separator.input
+; Example:
+;arg_separator.input = ";&"
+
+; This directive determines which super global arrays are registered when PHP
+; starts up. G,P,C,E & S are abbreviations for the following respective super
+; globals: GET, POST, COOKIE, ENV and SERVER. There is a performance penalty
+; paid for the registration of these arrays and because ENV is not as commonly
+; used as the others, ENV is not recommended on productions servers. You
+; can still get access to the environment variables through getenv() should you
+; need to.
+; Default Value: "EGPCS"
+; Development Value: "GPCS"
+; Production Value: "GPCS";
+; http://php.net/variables-order
+variables_order = "GPCS"
+
+; This directive determines which super global data (G,P & C) should be
+; registered into the super global array REQUEST. If so, it also determines
+; the order in which that data is registered. The values for this directive
+; are specified in the same manner as the variables_order directive,
+; EXCEPT one. Leaving this value empty will cause PHP to use the value set
+; in the variables_order directive. It does not mean it will leave the super
+; globals array REQUEST empty.
+; Default Value: None
+; Development Value: "GP"
+; Production Value: "GP"
+; http://php.net/request-order
+request_order = "GP"
+
+; This directive determines whether PHP registers $argv & $argc each time it
+; runs. $argv contains an array of all the arguments passed to PHP when a script
+; is invoked. $argc contains an integer representing the number of arguments
+; that were passed when the script was invoked. These arrays are extremely
+; useful when running scripts from the command line. When this directive is
+; enabled, registering these variables consumes CPU cycles and memory each time
+; a script is executed. For performance reasons, this feature should be disabled
+; on production servers.
+; Note: This directive is hardcoded to On for the CLI SAPI
+; Default Value: On
+; Development Value: Off
+; Production Value: Off
+; http://php.net/register-argc-argv
+register_argc_argv = Off
+
+; When enabled, the ENV, REQUEST and SERVER variables are created when they're
+; first used (Just In Time) instead of when the script starts. If these
+; variables are not used within a script, having this directive on will result
+; in a performance gain. The PHP directive register_argc_argv must be disabled
+; for this directive to have any effect.
+; http://php.net/auto-globals-jit
+auto_globals_jit = On
+
+; Whether PHP will read the POST data.
+; This option is enabled by default.
+; Most likely, you won't want to disable this option globally. It causes $_POST
+; and $_FILES to always be empty; the only way you will be able to read the
+; POST data will be through the php://input stream wrapper. This can be useful
+; to proxy requests or to process the POST data in a memory efficient fashion.
+; http://php.net/enable-post-data-reading
+;enable_post_data_reading = Off
+
+; Maximum size of POST data that PHP will accept.
+; Its value may be 0 to disable the limit. It is ignored if POST data reading
+; is disabled through enable_post_data_reading.
+; http://php.net/post-max-size
+post_max_size = 8M
+
+; Automatically add files before PHP document.
+; http://php.net/auto-prepend-file
+auto_prepend_file =
+
+; Automatically add files after PHP document.
+; http://php.net/auto-append-file
+auto_append_file =
+
+; By default, PHP will output a media type using the Content-Type header. To
+; disable this, simply set it to be empty.
+;
+; PHP's built-in default media type is set to text/html.
+; http://php.net/default-mimetype
+default_mimetype = "text/html"
+
+; PHP's default character set is set to UTF-8.
+; http://php.net/default-charset
+default_charset = "UTF-8"
+
+; PHP internal character encoding is set to empty.
+; If empty, default_charset is used.
+; http://php.net/internal-encoding
+;internal_encoding =
+
+; PHP input character encoding is set to empty.
+; If empty, default_charset is used.
+; http://php.net/input-encoding
+;input_encoding =
+
+; PHP output character encoding is set to empty.
+; If empty, default_charset is used.
+; See also output_buffer.
+; http://php.net/output-encoding
+;output_encoding =
+
+;;;;;;;;;;;;;;;;;;;;;;;;;
+; Paths and Directories ;
+;;;;;;;;;;;;;;;;;;;;;;;;;
+
+; UNIX: "/path1:/path2"
+;include_path = ".:/php/includes"
+;
+; Windows: "\path1;\path2"
+;include_path = ".;c:\php\includes"
+;
+; PHP's default setting for include_path is ".;/path/to/php/pear"
+; http://php.net/include-path
+
+; The root of the PHP pages, used only if nonempty.
+; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root
+; if you are running php as a CGI under any web server (other than IIS)
+; see documentation for security issues. The alternate is to use the
+; cgi.force_redirect configuration below
+; http://php.net/doc-root
+doc_root =
+
+; The directory under which PHP opens the script using /~username used only
+; if nonempty.
+; http://php.net/user-dir
+user_dir =
+
+; Directory in which the loadable extensions (modules) reside.
+; http://php.net/extension-dir
+;extension_dir = "./"
+; On windows:
+;extension_dir = "ext"
+
+; Directory where the temporary files should be placed.
+; Defaults to the system default (see sys_get_temp_dir)
+;sys_temp_dir = "/tmp"
+
+; Whether or not to enable the dl() function. The dl() function does NOT work
+; properly in multithreaded servers, such as IIS or Zeus, and is automatically
+; disabled on them.
+; http://php.net/enable-dl
+enable_dl = Off
+
+; cgi.force_redirect is necessary to provide security running PHP as a CGI under
+; most web servers. Left undefined, PHP turns this on by default. You can
+; turn it off here AT YOUR OWN RISK
+; **You CAN safely turn this off for IIS, in fact, you MUST.**
+; http://php.net/cgi.force-redirect
+;cgi.force_redirect = 1
+
+; if cgi.nph is enabled it will force cgi to always sent Status: 200 with
+; every request. PHP's default behavior is to disable this feature.
+;cgi.nph = 1
+
+; if cgi.force_redirect is turned on, and you are not running under Apache or Netscape
+; (iPlanet) web servers, you MAY need to set an environment variable name that PHP
+; will look for to know it is OK to continue execution. Setting this variable MAY
+; cause security issues, KNOW WHAT YOU ARE DOING FIRST.
+; http://php.net/cgi.redirect-status-env
+;cgi.redirect_status_env =
+
+; cgi.fix_pathinfo provides *real* PATH_INFO/PATH_TRANSLATED support for CGI. PHP's
+; previous behaviour was to set PATH_TRANSLATED to SCRIPT_FILENAME, and to not grok
+; what PATH_INFO is. For more information on PATH_INFO, see the cgi specs. Setting
+; this to 1 will cause PHP CGI to fix its paths to conform to the spec. A setting
+; of zero causes PHP to behave as before. Default is 1. You should fix your scripts
+; to use SCRIPT_FILENAME rather than PATH_TRANSLATED.
+; http://php.net/cgi.fix-pathinfo
+;cgi.fix_pathinfo=1
+
+; if cgi.discard_path is enabled, the PHP CGI binary can safely be placed outside
+; of the web tree and people will not be able to circumvent .htaccess security.
+;cgi.discard_path=1
+
+; FastCGI under IIS supports the ability to impersonate
+; security tokens of the calling client. This allows IIS to define the
+; security context that the request runs under. mod_fastcgi under Apache
+; does not currently support this feature (03/17/2002)
+; Set to 1 if running under IIS. Default is zero.
+; http://php.net/fastcgi.impersonate
+;fastcgi.impersonate = 1
+
+; Disable logging through FastCGI connection. PHP's default behavior is to enable
+; this feature.
+;fastcgi.logging = 0
+
+; cgi.rfc2616_headers configuration option tells PHP what type of headers to
+; use when sending HTTP response code. If set to 0, PHP sends Status: header that
+; is supported by Apache. When this option is set to 1, PHP will send
+; RFC2616 compliant header.
+; Default is zero.
+; http://php.net/cgi.rfc2616-headers
+;cgi.rfc2616_headers = 0
+
+; cgi.check_shebang_line controls whether CGI PHP checks for line starting with #!
+; (shebang) at the top of the running script. This line might be needed if the
+; script support running both as stand-alone script and via PHP CGI<. PHP in CGI
+; mode skips this line and ignores its content if this directive is turned on.
+; http://php.net/cgi.check-shebang-line
+;cgi.check_shebang_line=1
+
+;;;;;;;;;;;;;;;;
+; File Uploads ;
+;;;;;;;;;;;;;;;;
+
+; Whether to allow HTTP file uploads.
+; http://php.net/file-uploads
+file_uploads = On
+
+; Temporary directory for HTTP uploaded files (will use system default if not
+; specified).
+; http://php.net/upload-tmp-dir
+;upload_tmp_dir =
+
+; Maximum allowed size for uploaded files.
+; http://php.net/upload-max-filesize
+upload_max_filesize = 2M
+
+; Maximum number of files that can be uploaded via a single request
+max_file_uploads = 20
+
+;;;;;;;;;;;;;;;;;;
+; Fopen wrappers ;
+;;;;;;;;;;;;;;;;;;
+
+; Whether to allow the treatment of URLs (like http:// or ftp://) as files.
+; http://php.net/allow-url-fopen
+allow_url_fopen = On
+
+; Whether to allow include/require to open URLs (like http:// or ftp://) as files.
+; http://php.net/allow-url-include
+allow_url_include = Off
+
+; Define the anonymous ftp password (your email address). PHP's default setting
+; for this is empty.
+; http://php.net/from
+;from="john@doe.com"
+
+; Define the User-Agent string. PHP's default setting for this is empty.
+; http://php.net/user-agent
+;user_agent="PHP"
+
+; Default timeout for socket based streams (seconds)
+; http://php.net/default-socket-timeout
+default_socket_timeout = 60
+
+; If your scripts have to deal with files from Macintosh systems,
+; or you are running on a Mac and need to deal with files from
+; unix or win32 systems, setting this flag will cause PHP to
+; automatically detect the EOL character in those files so that
+; fgets() and file() will work regardless of the source of the file.
+; http://php.net/auto-detect-line-endings
+;auto_detect_line_endings = Off
+
+;;;;;;;;;;;;;;;;;;;;;;
+; Dynamic Extensions ;
+;;;;;;;;;;;;;;;;;;;;;;
+
+; If you wish to have an extension loaded automatically, use the following
+; syntax:
+;
+; extension=modulename
+;
+; For example:
+;
+; extension=mysqli
+;
+; When the extension library to load is not located in the default extension
+; directory, You may specify an absolute path to the library file:
+;
+; extension=/path/to/extension/mysqli.so
+;
+; Note : The syntax used in previous PHP versions ('extension=.so' and
+; 'extension='php_.dll') is supported for legacy reasons and may be
+; deprecated in a future PHP major version. So, when it is possible, please
+; move to the new ('extension=) syntax.
+;
+; Notes for Windows environments :
+;
+; - Many DLL files are located in the extensions/ (PHP 4) or ext/ (PHP 5+)
+; extension folders as well as the separate PECL DLL download (PHP 5+).
+; Be sure to appropriately set the extension_dir directive.
+;
+;extension=bz2
+;extension=curl
+;extension=ffi
+;extension=ftp
+;extension=fileinfo
+;extension=gd
+;extension=gettext
+;extension=gmp
+;extension=intl
+;extension=imap
+;extension=ldap
+;extension=mbstring
+;extension=exif ; Must be after mbstring as it depends on it
+;extension=mysqli
+;extension=oci8_12c ; Use with Oracle Database 12c Instant Client
+;extension=oci8_19 ; Use with Oracle Database 19 Instant Client
+;extension=odbc
+;extension=openssl
+;extension=pdo_firebird
+;extension=pdo_mysql
+;extension=pdo_oci
+;extension=pdo_odbc
+;extension=pdo_pgsql
+;extension=pdo_sqlite
+;extension=pgsql
+;extension=shmop
+
+; The MIBS data available in the PHP distribution must be installed.
+; See http://www.php.net/manual/en/snmp.installation.php
+;extension=snmp
+
+;extension=soap
+;extension=sockets
+;extension=sodium
+;extension=sqlite3
+;extension=tidy
+;extension=xsl
+
+;zend_extension=opcache
+
+;;;;;;;;;;;;;;;;;;;
+; Module Settings ;
+;;;;;;;;;;;;;;;;;;;
+
+[CLI Server]
+; Whether the CLI web server uses ANSI color coding in its terminal output.
+cli_server.color = On
+
+[Date]
+; Defines the default timezone used by the date functions
+; http://php.net/date.timezone
+;date.timezone =
+
+; http://php.net/date.default-latitude
+;date.default_latitude = 31.7667
+
+; http://php.net/date.default-longitude
+;date.default_longitude = 35.2333
+
+; http://php.net/date.sunrise-zenith
+;date.sunrise_zenith = 90.833333
+
+; http://php.net/date.sunset-zenith
+;date.sunset_zenith = 90.833333
+
+[filter]
+; http://php.net/filter.default
+;filter.default = unsafe_raw
+
+; http://php.net/filter.default-flags
+;filter.default_flags =
+
+[iconv]
+; Use of this INI entry is deprecated, use global input_encoding instead.
+; If empty, default_charset or input_encoding or iconv.input_encoding is used.
+; The precedence is: default_charset < input_encoding < iconv.input_encoding
+;iconv.input_encoding =
+
+; Use of this INI entry is deprecated, use global internal_encoding instead.
+; If empty, default_charset or internal_encoding or iconv.internal_encoding is used.
+; The precedence is: default_charset < internal_encoding < iconv.internal_encoding
+;iconv.internal_encoding =
+
+; Use of this INI entry is deprecated, use global output_encoding instead.
+; If empty, default_charset or output_encoding or iconv.output_encoding is used.
+; The precedence is: default_charset < output_encoding < iconv.output_encoding
+; To use an output encoding conversion, iconv's output handler must be set
+; otherwise output encoding conversion cannot be performed.
+;iconv.output_encoding =
+
+[imap]
+; rsh/ssh logins are disabled by default. Use this INI entry if you want to
+; enable them. Note that the IMAP library does not filter mailbox names before
+; passing them to rsh/ssh command, thus passing untrusted data to this function
+; with rsh/ssh enabled is insecure.
+;imap.enable_insecure_rsh=0
+
+[intl]
+;intl.default_locale =
+; This directive allows you to produce PHP errors when some error
+; happens within intl functions. The value is the level of the error produced.
+; Default is 0, which does not produce any errors.
+;intl.error_level = E_WARNING
+;intl.use_exceptions = 0
+
+[sqlite3]
+; Directory pointing to SQLite3 extensions
+; http://php.net/sqlite3.extension-dir
+;sqlite3.extension_dir =
+
+; SQLite defensive mode flag (only available from SQLite 3.26+)
+; When the defensive flag is enabled, language features that allow ordinary
+; SQL to deliberately corrupt the database file are disabled. This forbids
+; writing directly to the schema, shadow tables (eg. FTS data tables), or
+; the sqlite_dbpage virtual table.
+; https://www.sqlite.org/c3ref/c_dbconfig_defensive.html
+; (for older SQLite versions, this flag has no use)
+;sqlite3.defensive = 1
+
+[Pcre]
+; PCRE library backtracking limit.
+; http://php.net/pcre.backtrack-limit
+;pcre.backtrack_limit=100000
+
+; PCRE library recursion limit.
+; Please note that if you set this value to a high number you may consume all
+; the available process stack and eventually crash PHP (due to reaching the
+; stack size limit imposed by the Operating System).
+; http://php.net/pcre.recursion-limit
+;pcre.recursion_limit=100000
+
+; Enables or disables JIT compilation of patterns. This requires the PCRE
+; library to be compiled with JIT support.
+;pcre.jit=1
+
+[Pdo]
+; Whether to pool ODBC connections. Can be one of "strict", "relaxed" or "off"
+; http://php.net/pdo-odbc.connection-pooling
+;pdo_odbc.connection_pooling=strict
+
+[Pdo_mysql]
+; Default socket name for local MySQL connects. If empty, uses the built-in
+; MySQL defaults.
+pdo_mysql.default_socket=
+
+[Phar]
+; http://php.net/phar.readonly
+;phar.readonly = On
+
+; http://php.net/phar.require-hash
+;phar.require_hash = On
+
+;phar.cache_list =
+
+[mail function]
+; For Win32 only.
+; http://php.net/smtp
+SMTP = localhost
+; http://php.net/smtp-port
+smtp_port = 25
+
+; For Win32 only.
+; http://php.net/sendmail-from
+;sendmail_from = me@example.com
+
+; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
+; http://php.net/sendmail-path
+;sendmail_path =
+
+; Force the addition of the specified parameters to be passed as extra parameters
+; to the sendmail binary. These parameters will always replace the value of
+; the 5th parameter to mail().
+;mail.force_extra_parameters =
+
+; Add X-PHP-Originating-Script: that will include uid of the script followed by the filename
+mail.add_x_header = Off
+
+; The path to a log file that will log all mail() calls. Log entries include
+; the full path of the script, line number, To address and headers.
+;mail.log =
+; Log mail to syslog (Event Log on Windows).
+;mail.log = syslog
+
+[ODBC]
+; http://php.net/odbc.default-db
+;odbc.default_db = Not yet implemented
+
+; http://php.net/odbc.default-user
+;odbc.default_user = Not yet implemented
+
+; http://php.net/odbc.default-pw
+;odbc.default_pw = Not yet implemented
+
+; Controls the ODBC cursor model.
+; Default: SQL_CURSOR_STATIC (default).
+;odbc.default_cursortype
+
+; Allow or prevent persistent links.
+; http://php.net/odbc.allow-persistent
+odbc.allow_persistent = On
+
+; Check that a connection is still valid before reuse.
+; http://php.net/odbc.check-persistent
+odbc.check_persistent = On
+
+; Maximum number of persistent links. -1 means no limit.
+; http://php.net/odbc.max-persistent
+odbc.max_persistent = -1
+
+; Maximum number of links (persistent + non-persistent). -1 means no limit.
+; http://php.net/odbc.max-links
+odbc.max_links = -1
+
+; Handling of LONG fields. Returns number of bytes to variables. 0 means
+; passthru.
+; http://php.net/odbc.defaultlrl
+odbc.defaultlrl = 4096
+
+; Handling of binary data. 0 means passthru, 1 return as is, 2 convert to char.
+; See the documentation on odbc_binmode and odbc_longreadlen for an explanation
+; of odbc.defaultlrl and odbc.defaultbinmode
+; http://php.net/odbc.defaultbinmode
+odbc.defaultbinmode = 1
+
+[MySQLi]
+
+; Maximum number of persistent links. -1 means no limit.
+; http://php.net/mysqli.max-persistent
+mysqli.max_persistent = -1
+
+; Allow accessing, from PHP's perspective, local files with LOAD DATA statements
+; http://php.net/mysqli.allow_local_infile
+;mysqli.allow_local_infile = On
+
+; Allow or prevent persistent links.
+; http://php.net/mysqli.allow-persistent
+mysqli.allow_persistent = On
+
+; Maximum number of links. -1 means no limit.
+; http://php.net/mysqli.max-links
+mysqli.max_links = -1
+
+; Default port number for mysqli_connect(). If unset, mysqli_connect() will use
+; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
+; compile-time value defined MYSQL_PORT (in that order). Win32 will only look
+; at MYSQL_PORT.
+; http://php.net/mysqli.default-port
+mysqli.default_port = 3306
+
+; Default socket name for local MySQL connects. If empty, uses the built-in
+; MySQL defaults.
+; http://php.net/mysqli.default-socket
+mysqli.default_socket =
+
+; Default host for mysqli_connect() (doesn't apply in safe mode).
+; http://php.net/mysqli.default-host
+mysqli.default_host =
+
+; Default user for mysqli_connect() (doesn't apply in safe mode).
+; http://php.net/mysqli.default-user
+mysqli.default_user =
+
+; Default password for mysqli_connect() (doesn't apply in safe mode).
+; Note that this is generally a *bad* idea to store passwords in this file.
+; *Any* user with PHP access can run 'echo get_cfg_var("mysqli.default_pw")
+; and reveal this password! And of course, any users with read access to this
+; file will be able to reveal the password as well.
+; http://php.net/mysqli.default-pw
+mysqli.default_pw =
+
+; Allow or prevent reconnect
+mysqli.reconnect = Off
+
+[mysqlnd]
+; Enable / Disable collection of general statistics by mysqlnd which can be
+; used to tune and monitor MySQL operations.
+mysqlnd.collect_statistics = On
+
+; Enable / Disable collection of memory usage statistics by mysqlnd which can be
+; used to tune and monitor MySQL operations.
+mysqlnd.collect_memory_statistics = On
+
+; Records communication from all extensions using mysqlnd to the specified log
+; file.
+; http://php.net/mysqlnd.debug
+;mysqlnd.debug =
+
+; Defines which queries will be logged.
+;mysqlnd.log_mask = 0
+
+; Default size of the mysqlnd memory pool, which is used by result sets.
+;mysqlnd.mempool_default_size = 16000
+
+; Size of a pre-allocated buffer used when sending commands to MySQL in bytes.
+;mysqlnd.net_cmd_buffer_size = 2048
+
+; Size of a pre-allocated buffer used for reading data sent by the server in
+; bytes.
+;mysqlnd.net_read_buffer_size = 32768
+
+; Timeout for network requests in seconds.
+;mysqlnd.net_read_timeout = 31536000
+
+; SHA-256 Authentication Plugin related. File with the MySQL server public RSA
+; key.
+;mysqlnd.sha256_server_public_key =
+
+[OCI8]
+
+; Connection: Enables privileged connections using external
+; credentials (OCI_SYSOPER, OCI_SYSDBA)
+; http://php.net/oci8.privileged-connect
+;oci8.privileged_connect = Off
+
+; Connection: The maximum number of persistent OCI8 connections per
+; process. Using -1 means no limit.
+; http://php.net/oci8.max-persistent
+;oci8.max_persistent = -1
+
+; Connection: The maximum number of seconds a process is allowed to
+; maintain an idle persistent connection. Using -1 means idle
+; persistent connections will be maintained forever.
+; http://php.net/oci8.persistent-timeout
+;oci8.persistent_timeout = -1
+
+; Connection: The number of seconds that must pass before issuing a
+; ping during oci_pconnect() to check the connection validity. When
+; set to 0, each oci_pconnect() will cause a ping. Using -1 disables
+; pings completely.
+; http://php.net/oci8.ping-interval
+;oci8.ping_interval = 60
+
+; Connection: Set this to a user chosen connection class to be used
+; for all pooled server requests with Oracle 11g Database Resident
+; Connection Pooling (DRCP). To use DRCP, this value should be set to
+; the same string for all web servers running the same application,
+; the database pool must be configured, and the connection string must
+; specify to use a pooled server.
+;oci8.connection_class =
+
+; High Availability: Using On lets PHP receive Fast Application
+; Notification (FAN) events generated when a database node fails. The
+; database must also be configured to post FAN events.
+;oci8.events = Off
+
+; Tuning: This option enables statement caching, and specifies how
+; many statements to cache. Using 0 disables statement caching.
+; http://php.net/oci8.statement-cache-size
+;oci8.statement_cache_size = 20
+
+; Tuning: Enables statement prefetching and sets the default number of
+; rows that will be fetched automatically after statement execution.
+; http://php.net/oci8.default-prefetch
+;oci8.default_prefetch = 100
+
+; Compatibility. Using On means oci_close() will not close
+; oci_connect() and oci_new_connect() connections.
+; http://php.net/oci8.old-oci-close-semantics
+;oci8.old_oci_close_semantics = Off
+
+[PostgreSQL]
+; Allow or prevent persistent links.
+; http://php.net/pgsql.allow-persistent
+pgsql.allow_persistent = On
+
+; Detect broken persistent links always with pg_pconnect().
+; Auto reset feature requires a little overheads.
+; http://php.net/pgsql.auto-reset-persistent
+pgsql.auto_reset_persistent = Off
+
+; Maximum number of persistent links. -1 means no limit.
+; http://php.net/pgsql.max-persistent
+pgsql.max_persistent = -1
+
+; Maximum number of links (persistent+non persistent). -1 means no limit.
+; http://php.net/pgsql.max-links
+pgsql.max_links = -1
+
+; Ignore PostgreSQL backends Notice message or not.
+; Notice message logging require a little overheads.
+; http://php.net/pgsql.ignore-notice
+pgsql.ignore_notice = 0
+
+; Log PostgreSQL backends Notice message or not.
+; Unless pgsql.ignore_notice=0, module cannot log notice message.
+; http://php.net/pgsql.log-notice
+pgsql.log_notice = 0
+
+[bcmath]
+; Number of decimal digits for all bcmath functions.
+; http://php.net/bcmath.scale
+bcmath.scale = 0
+
+[browscap]
+; http://php.net/browscap
+;browscap = extra/browscap.ini
+
+[Session]
+; Handler used to store/retrieve data.
+; http://php.net/session.save-handler
+session.save_handler = files
+
+; Argument passed to save_handler. In the case of files, this is the path
+; where data files are stored. Note: Windows users have to change this
+; variable in order to use PHP's session functions.
+;
+; The path can be defined as:
+;
+; session.save_path = "N;/path"
+;
+; where N is an integer. Instead of storing all the session files in
+; /path, what this will do is use subdirectories N-levels deep, and
+; store the session data in those directories. This is useful if
+; your OS has problems with many files in one directory, and is
+; a more efficient layout for servers that handle many sessions.
+;
+; NOTE 1: PHP will not create this directory structure automatically.
+; You can use the script in the ext/session dir for that purpose.
+; NOTE 2: See the section on garbage collection below if you choose to
+; use subdirectories for session storage
+;
+; The file storage module creates files using mode 600 by default.
+; You can change that by using
+;
+; session.save_path = "N;MODE;/path"
+;
+; where MODE is the octal representation of the mode. Note that this
+; does not overwrite the process's umask.
+; http://php.net/session.save-path
+;session.save_path = "/tmp"
+
+; Whether to use strict session mode.
+; Strict session mode does not accept an uninitialized session ID, and
+; regenerates the session ID if the browser sends an uninitialized session ID.
+; Strict mode protects applications from session fixation via a session adoption
+; vulnerability. It is disabled by default for maximum compatibility, but
+; enabling it is encouraged.
+; https://wiki.php.net/rfc/strict_sessions
+session.use_strict_mode = 0
+
+; Whether to use cookies.
+; http://php.net/session.use-cookies
+session.use_cookies = 1
+
+; http://php.net/session.cookie-secure
+;session.cookie_secure =
+
+; This option forces PHP to fetch and use a cookie for storing and maintaining
+; the session id. We encourage this operation as it's very helpful in combating
+; session hijacking when not specifying and managing your own session id. It is
+; not the be-all and end-all of session hijacking defense, but it's a good start.
+; http://php.net/session.use-only-cookies
+session.use_only_cookies = 1
+
+; Name of the session (used as cookie name).
+; http://php.net/session.name
+session.name = PHPSESSID
+
+; Initialize session on request startup.
+; http://php.net/session.auto-start
+session.auto_start = 0
+
+; Lifetime in seconds of cookie or, if 0, until browser is restarted.
+; http://php.net/session.cookie-lifetime
+session.cookie_lifetime = 0
+
+; The path for which the cookie is valid.
+; http://php.net/session.cookie-path
+session.cookie_path = /
+
+; The domain for which the cookie is valid.
+; http://php.net/session.cookie-domain
+session.cookie_domain =
+
+; Whether or not to add the httpOnly flag to the cookie, which makes it
+; inaccessible to browser scripting languages such as JavaScript.
+; http://php.net/session.cookie-httponly
+session.cookie_httponly =
+
+; Add SameSite attribute to cookie to help mitigate Cross-Site Request Forgery (CSRF/XSRF)
+; Current valid values are "Strict", "Lax" or "None". When using "None",
+; make sure to include the quotes, as `none` is interpreted like `false` in ini files.
+; https://tools.ietf.org/html/draft-west-first-party-cookies-07
+session.cookie_samesite =
+
+; Handler used to serialize data. php is the standard serializer of PHP.
+; http://php.net/session.serialize-handler
+session.serialize_handler = php
+
+; Defines the probability that the 'garbage collection' process is started on every
+; session initialization. The probability is calculated by using gc_probability/gc_divisor,
+; e.g. 1/100 means there is a 1% chance that the GC process starts on each request.
+; Default Value: 1
+; Development Value: 1
+; Production Value: 1
+; http://php.net/session.gc-probability
+session.gc_probability = 1
+
+; Defines the probability that the 'garbage collection' process is started on every
+; session initialization. The probability is calculated by using gc_probability/gc_divisor,
+; e.g. 1/100 means there is a 1% chance that the GC process starts on each request.
+; For high volume production servers, using a value of 1000 is a more efficient approach.
+; Default Value: 100
+; Development Value: 1000
+; Production Value: 1000
+; http://php.net/session.gc-divisor
+session.gc_divisor = 1000
+
+; After this number of seconds, stored data will be seen as 'garbage' and
+; cleaned up by the garbage collection process.
+; http://php.net/session.gc-maxlifetime
+session.gc_maxlifetime = 1440
+
+; NOTE: If you are using the subdirectory option for storing session files
+; (see session.save_path above), then garbage collection does *not*
+; happen automatically. You will need to do your own garbage
+; collection through a shell script, cron entry, or some other method.
+; For example, the following script is the equivalent of setting
+; session.gc_maxlifetime to 1440 (1440 seconds = 24 minutes):
+; find /path/to/sessions -cmin +24 -type f | xargs rm
+
+; Check HTTP Referer to invalidate externally stored URLs containing ids.
+; HTTP_REFERER has to contain this substring for the session to be
+; considered as valid.
+; http://php.net/session.referer-check
+session.referer_check =
+
+; Set to {nocache,private,public,} to determine HTTP caching aspects
+; or leave this empty to avoid sending anti-caching headers.
+; http://php.net/session.cache-limiter
+session.cache_limiter = nocache
+
+; Document expires after n minutes.
+; http://php.net/session.cache-expire
+session.cache_expire = 180
+
+; trans sid support is disabled by default.
+; Use of trans sid may risk your users' security.
+; Use this option with caution.
+; - User may send URL contains active session ID
+; to other person via. email/irc/etc.
+; - URL that contains active session ID may be stored
+; in publicly accessible computer.
+; - User may access your site with the same session ID
+; always using URL stored in browser's history or bookmarks.
+; http://php.net/session.use-trans-sid
+session.use_trans_sid = 0
+
+; Set session ID character length. This value could be between 22 to 256.
+; Shorter length than default is supported only for compatibility reason.
+; Users should use 32 or more chars.
+; http://php.net/session.sid-length
+; Default Value: 32
+; Development Value: 26
+; Production Value: 26
+session.sid_length = 26
+
+; The URL rewriter will look for URLs in a defined set of HTML tags.
+;