This file will setup Wordpress, MySQL & PHPMyAdmin with a single command. Add the code below to a file called "docker-compose.yaml" and run the command
$ docker-compose up -d
# To Tear Down
$ docker-compose down --volumes
| docker-compose up -d nginx mysql phpmyadmin redis beanstalkd |
| call php-fpm bash with docker |
| For testing php functions in the console |
| 1. public function boot() | |
| { | |
| Schema::defaultStringLength(191); | |
| } | |
| 2. php artisan key:generate | |
| 3. php artisan migrate |
| #Define the proxy in the CLI : | |
| export http_proxy='10.185.0.131:3128' | |
| export https_proxy='10.185.0.131:3128' |
| Add these lines to your ~/.bashrc or ~/.bash_profile to force git to display all messages in English: | |
| # Set Git language to English | |
| #alias git='LANG=en_US git' | |
| alias git='LANG=en_GB git' | |
| The alias needs to override LC_ALL on some systems, when the environment variable LC_ALL is set, which has precedence over LANG. See the UNIX Specification - Environment Variables for further explanation. | |
| # Set Git language to English | |
| #alias git='LC_ALL=en_US git' | |
| alias git='LC_ALL=en_GB git' |
| ErrorDocument 404 htpps://www.domain.com | |
| <IfModule mod_rewrite.c> | |
| <IfModule mod_negotiation.c> | |
| Options -MultiViews | |
| </IfModule> | |
| RewriteEngine On | |
| # Redirect to HTTPS |
| composer install --ignore-platform-reqs |
| docker stop $(docker ps -q) |