Compare commits
76 Commits
Author | SHA1 | Date | |
---|---|---|---|
721e04370f | |||
b569765f82 | |||
1c9596dd80 | |||
c59dea3745 | |||
460b24f7ee | |||
2fc3919598 | |||
978dd425b9 | |||
1b8726458f | |||
3557f508d0 | |||
1ce802f2cc | |||
f0eda43906 | |||
343a950adc | |||
0218ef6b9f | |||
33e8e91e49 | |||
e78b3ff799 | |||
13bdfa119d | |||
0eea7a639a | |||
f2db21f339 | |||
b10108a9b5 | |||
dd3e88fba9 | |||
860af556e2 | |||
586a21086f | |||
d76f9e7722 | |||
79ce978527 | |||
944639b248 | |||
2728a99986 | |||
5bb515751a | |||
ea148943ed | |||
97f882e4c7 | |||
e9d3a838f1 | |||
380eef5fd9 | |||
047e7f7cc3 | |||
b8142222e5 | |||
b62d9bcb60 | |||
da6b950623 | |||
9d60dad222 | |||
6ffa36f188 | |||
f82d3b30b4 | |||
8bacb129c6 | |||
99fb1b4169 | |||
6c9d5866b4 | |||
e8ef7ab8c9 | |||
5da5d5e29c | |||
19a2110b06 | |||
2fab33d4e4 | |||
4f819c238c | |||
d8875cb588 | |||
bb9f65eb2a | |||
d6508f3bb3 | |||
a3288462a8 | |||
225fb8cf4f | |||
f67edee5e5 | |||
e5a8fb9c95 | |||
4ef5db3713 | |||
6bbd1fbe19 | |||
d703c82c46 | |||
ecc4e06740 | |||
8b09149b15 | |||
380178e6fa | |||
be64b54606 | |||
cbeeb48aa1 | |||
7e2814168a | |||
5e9ae56a7f | |||
5d98e78dba | |||
c5d1116333 | |||
5594c53e03 | |||
44045f85e6 | |||
fc31a2415c | |||
a42f62c626 | |||
3e4a5edc64 | |||
9289c1b6c0 | |||
3f157a3277 | |||
f732bb283b | |||
ca4aeada08 | |||
3d54d68aa1 | |||
a0153810c6 |
1
.gitignore
vendored
@ -1,4 +1,3 @@
|
|||||||
.idea
|
.idea
|
||||||
/logs
|
/logs
|
||||||
/data
|
/data
|
||||||
.env
|
|
||||||
|
@ -5,7 +5,7 @@ Your contribution is more than welcome. Let's keep LaraDock amazing.
|
|||||||
|
|
||||||
### Got a Question or Problem?
|
### Got a Question or Problem?
|
||||||
|
|
||||||
If you have questions about how to use LaraDock, please direct your questions to the discussion on [Gitter](https://gitter.im/LaraDock/laradock). If you beleave your question could help others, then consider opening an [Issue](https://github.com/laradock/laradock/issues) (it will be labeled as Question).
|
If you have questions about how to use LaraDock, please direct your questions to the discussion on [Gitter](https://gitter.im/LaraDock/laradock). If you believe your question could help others, then consider opening an [Issue](https://github.com/laradock/laradock/issues) (it will be labeled as Question).
|
||||||
|
|
||||||
### Found an Issue?
|
### Found an Issue?
|
||||||
If you find a bug in the source code or a mistake in the documentation, you can help us by
|
If you find a bug in the source code or a mistake in the documentation, you can help us by
|
||||||
|
@ -7,9 +7,7 @@
|
|||||||
LaraDock能够帮你在**Docker**上快速搭建**Laravel**应用。
|
LaraDock能够帮你在**Docker**上快速搭建**Laravel**应用。
|
||||||
<br>
|
<br>
|
||||||
就像Laravel Homestead一样,但是Docker替换了Vagrant。
|
就像Laravel Homestead一样,但是Docker替换了Vagrant。
|
||||||
>先在Docker上使用LaraDock,然后再学习它们。
|
> 先在使用 LaraDock,然后再学习它们。
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
## 目录
|
## 目录
|
||||||
@ -471,7 +469,7 @@ composer create-project laravel/laravel my-cool-app "5.2.*"
|
|||||||
系统默认LaraDock假定Laravel应用在LaraDock的父级目录中
|
系统默认LaraDock假定Laravel应用在LaraDock的父级目录中
|
||||||
By default LaraDock assumes the Laravel application is living in the parent directory of the laradock folder.
|
By default LaraDock assumes the Laravel application is living in the parent directory of the laradock folder.
|
||||||
|
|
||||||
自新Laravel应用在 `my-cool-app` 目录中, 我们需要用 `../my-cool-app/:/var/www`替换 `../:/var/www` , 如下:
|
更新Laravel应用在 `my-cool-app` 目录中, 我们需要用 `../my-cool-app/:/var/www`替换 `../:/var/www` , 如下:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
application:
|
application:
|
||||||
|
BIN
_guides/photos/KiTTY/Connection.png
Normal file
After Width: | Height: | Size: 22 KiB |
BIN
_guides/photos/KiTTY/ConnectionData.png
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
_guides/photos/KiTTY/ConnectionSSH.png
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
_guides/photos/KiTTY/ConnectionSSHAuth.png
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
_guides/photos/KiTTY/Session.png
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
_guides/photos/KiTTY/Terminal.png
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
_guides/photos/KiTTY/TerminalKeyboard.png
Normal file
After Width: | Height: | Size: 18 KiB |
BIN
_guides/photos/KiTTY/TerminalShell.png
Normal file
After Width: | Height: | Size: 3.3 KiB |
BIN
_guides/photos/KiTTY/Window.png
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
_guides/photos/KiTTY/WindowAppearance.png
Normal file
After Width: | Height: | Size: 20 KiB |
BIN
_guides/photos/PHPStorm/DebugRemoteOn.png
Normal file
After Width: | Height: | Size: 3.8 KiB |
BIN
_guides/photos/PHPStorm/RemoteDebuggingSuccess.png
Normal file
After Width: | Height: | Size: 74 KiB |
BIN
_guides/photos/PHPStorm/RemoteHost.png
Normal file
After Width: | Height: | Size: 17 KiB |
BIN
_guides/photos/PHPStorm/RemoteTestDebuggingSuccess.png
Normal file
After Width: | Height: | Size: 80 KiB |
BIN
_guides/photos/PHPStorm/RemoteWebDebuggingSuccess.png
Normal file
After Width: | Height: | Size: 68 KiB |
BIN
_guides/photos/PHPStorm/Settings/BuildDeploymentConnection.png
Normal file
After Width: | Height: | Size: 30 KiB |
After Width: | Height: | Size: 23 KiB |
BIN
_guides/photos/PHPStorm/Settings/BuildDeploymentDebugger.png
Normal file
After Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 19 KiB |
After Width: | Height: | Size: 11 KiB |
BIN
_guides/photos/PHPStorm/Settings/LangsPHPDebug.png
Normal file
After Width: | Height: | Size: 43 KiB |
BIN
_guides/photos/PHPStorm/Settings/LangsPHPInterpreters.png
Normal file
After Width: | Height: | Size: 20 KiB |
BIN
_guides/photos/PHPStorm/Settings/LangsPHPPHPUnit.png
Normal file
After Width: | Height: | Size: 21 KiB |
BIN
_guides/photos/PHPStorm/Settings/LangsPHPServers.png
Normal file
After Width: | Height: | Size: 18 KiB |
BIN
_guides/photos/PHPStorm/Settings/WindowsFirewallAllowedApps.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
_guides/photos/PHPStorm/Settings/WindowsHyperVManager.png
Normal file
After Width: | Height: | Size: 70 KiB |
BIN
_guides/photos/PHPStorm/Settings/hosts.png
Normal file
After Width: | Height: | Size: 9.5 KiB |
BIN
_guides/photos/SimpleHostsEditor/AddHost_laravel.png
Normal file
After Width: | Height: | Size: 18 KiB |
302
_guides/phpstorm.md
Normal file
@ -0,0 +1,302 @@
|
|||||||
|
# PHPStorm Debugging Guide
|
||||||
|
|
||||||
|
- [Intro](#Intro)
|
||||||
|
- [Installation](#Installation)
|
||||||
|
- [Customize laradock/docker-compose.yml](#CustomizeDockerCompose)
|
||||||
|
- [Clean House](#InstallCleanHouse)
|
||||||
|
- [LaraDock Dial Tone](#InstallLaraDockDialTone)
|
||||||
|
- [hosts](#AddToHosts)
|
||||||
|
- [Firewall](#FireWall)
|
||||||
|
- [Enable xDebug on php-fpm](#enablePhpXdebug)
|
||||||
|
- [PHPStorm Settings](#InstallPHPStorm)
|
||||||
|
- [Configs](#InstallPHPStormConfigs)
|
||||||
|
- [Usage](#Usage)
|
||||||
|
- [Laravel](#UsageLaravel)
|
||||||
|
- [Run ExampleTest](#UsagePHPStormRunExampleTest)
|
||||||
|
- [Debug ExampleTest](#UsagePHPStormDebugExampleTest)
|
||||||
|
- [Debug Web Site](#UsagePHPStormDebugSite)
|
||||||
|
- [SSH into workspace](#SSHintoWorkspace)
|
||||||
|
- [KiTTY](#InstallKiTTY)
|
||||||
|
|
||||||
|
<a name="Intro"></a>
|
||||||
|
## Intro
|
||||||
|
|
||||||
|
Wiring up [Laravel](https://laravel.com/), [LaraDock](https://github.com/LaraDock/laradock) [Laravel+Docker] and [PHPStorm](https://www.jetbrains.com/phpstorm/) to play nice together complete with remote xdebug'ing as icing on top! Although this guide is based on `PHPStorm Windows`,
|
||||||
|
you should be able to adjust accordingly. This guide was written based on Docker for Windows Native.
|
||||||
|
|
||||||
|
<a name="Installation"></a>
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
- This guide assumes the following:
|
||||||
|
- you have already installed and are familiar with Laravel, LaraDock and PHPStorm.
|
||||||
|
- you have installed Laravel as a parent of `laradock`. This guide assumes `/c/_dk/laravel`.
|
||||||
|
|
||||||
|
<a name="AddToHosts"></a>
|
||||||
|
## hosts
|
||||||
|
- Add `laravel` to your hosts file located on Windows 10 at `C:\Windows\System32\drivers\etc\hosts`. It should be set to the IP of your running container. Mine is: `10.0.75.2`
|
||||||
|
On Windows you can find it by opening Windows `Hyper-V Manager`.
|
||||||
|
- 
|
||||||
|
|
||||||
|
- [Hosts File Editor](https://github.com/scottlerch/HostsFileEditor) makes it easy to change your hosts file.
|
||||||
|
- Set `laravel` to your docker host IP. See [Example](photos/SimpleHostsEditor/AddHost_laravel.png).
|
||||||
|
|
||||||
|
|
||||||
|
<a name="FireWall"></a>
|
||||||
|
## Firewall
|
||||||
|
Your PHPStorm will need to be able to receive a connection from PHP xdebug either your running workspace or php-fpm containers on port 9000. This means that your Windows Firewall should either enable connections from the Application PHPStorm OR the port.
|
||||||
|
|
||||||
|
- It is important to note that if the Application PHPStorm is NOT enabled in the firewall, you will not be able to recreate a rule to override that.
|
||||||
|
- Also be aware that if you are installing/upgrade different versions of PHPStorm, you MAY have orphaned references to PHPStorm in your Firewall! You may decide to remove orphaned references however in either case, make sure that they are set to receive public TCP traffic.
|
||||||
|
|
||||||
|
### Edit laradock/docker-compose.yml
|
||||||
|
Set the following variables:
|
||||||
|
```
|
||||||
|
### Workspace Utilities Container ###########################
|
||||||
|
|
||||||
|
workspace:
|
||||||
|
build:
|
||||||
|
context: ./workspace
|
||||||
|
args:
|
||||||
|
- INSTALL_XDEBUG=true
|
||||||
|
- INSTALL_WORKSPACE_SSH=true
|
||||||
|
...
|
||||||
|
|
||||||
|
|
||||||
|
### PHP-FPM Container #######################################
|
||||||
|
|
||||||
|
php-fpm:
|
||||||
|
build:
|
||||||
|
context: ./php-fpm
|
||||||
|
args:
|
||||||
|
- INSTALL_XDEBUG=true
|
||||||
|
...
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
### Edit xdebug.ini files
|
||||||
|
- `laradock/workspace/xdebug.ini`
|
||||||
|
- `laradock/php-fpm/xdebug.ini`
|
||||||
|
|
||||||
|
Set the following variables:
|
||||||
|
```
|
||||||
|
xdebug.remote_autostart=1
|
||||||
|
xdebug.remote_enable=1
|
||||||
|
xdebug.remote_connect_back=1
|
||||||
|
xdebug.cli_color=1
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
<a name="InstallCleanHouse"></a>
|
||||||
|
### Need to clean house first?
|
||||||
|
Make sure you are starting with a clean state. For example, do you have other LaraDock containers and images?
|
||||||
|
Here are a few things I use to clean things up.
|
||||||
|
|
||||||
|
- Delete all containers using `grep laradock_` on the names, see: [Remove all containers based on docker image name](https://linuxconfig.org/remove-all-containners-based-on-docker-image-name).
|
||||||
|
`docker ps -a | awk '{ print $1,$2 }' | grep laradock_ | awk '{print $1}' | xargs -I {} docker rm {}`
|
||||||
|
|
||||||
|
- Delete all images containing `laradock`.
|
||||||
|
`docker images | awk '{print $1,$2,$3}' | grep laradock_ | awk '{print $3}' | xargs -I {} docker rmi {}`
|
||||||
|
**Note:** This will only delete images that were built with `LaraDock`, **NOT** `laradock/*` which are pulled down by `LaraDock` such as `laradock/workspace`, etc.
|
||||||
|
**Note:** Some may fail with:
|
||||||
|
`Error response from daemon: conflict: unable to delete 3f38eaed93df (cannot be forced) - image has dependent child images`
|
||||||
|
|
||||||
|
- I added this to my `.bashrc` to remove orphaned images.
|
||||||
|
```
|
||||||
|
dclean() {
|
||||||
|
processes=`docker ps -q -f status=exited`
|
||||||
|
if [ -n "$processes" ]; thend
|
||||||
|
docker rm $processes
|
||||||
|
fi
|
||||||
|
|
||||||
|
images=`docker images -q -f dangling=true`
|
||||||
|
if [ -n "$images" ]; then
|
||||||
|
docker rmi $images
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
- If you frequently switch configurations for LaraDock, you may find that adding the following and added to your `.bashrc` or equivalent useful:
|
||||||
|
```
|
||||||
|
# remove laravel* containers
|
||||||
|
# remove laravel_* images
|
||||||
|
dcleanlaradockfunction()
|
||||||
|
{
|
||||||
|
echo 'Removing ALL containers associated with laradock'
|
||||||
|
docker ps -a | awk '{ print $1,$2 }' | grep laradock | awk '{print $1}' | xargs -I {} docker rm {}
|
||||||
|
|
||||||
|
# remove ALL images associated with laradock_
|
||||||
|
# does NOT delete laradock/* which are hub images
|
||||||
|
echo 'Removing ALL images associated with laradock_'
|
||||||
|
docker images | awk '{print $1,$2,$3}' | grep laradock_ | awk '{print $3}' | xargs -I {} docker rmi {}
|
||||||
|
|
||||||
|
echo 'Listing all laradock docker hub images...'
|
||||||
|
docker images | grep laradock
|
||||||
|
|
||||||
|
echo 'dcleanlaradock completed'
|
||||||
|
}
|
||||||
|
# associate the above function with an alias
|
||||||
|
# so can recall/lookup by typing 'alias'
|
||||||
|
alias dcleanlaradock=dcleanlaradockfunction
|
||||||
|
```
|
||||||
|
|
||||||
|
<a name="InstallLaraDockDialTone"></a>
|
||||||
|
#### Let's get a dial-tone with Laravel
|
||||||
|
|
||||||
|
```
|
||||||
|
# barebones at this point
|
||||||
|
docker-compose up -d nginx mysql
|
||||||
|
|
||||||
|
# run
|
||||||
|
docker-compose ps
|
||||||
|
|
||||||
|
# Should see:
|
||||||
|
Name Command State Ports
|
||||||
|
-----------------------------------------------------------------------------------------------------------
|
||||||
|
laradock_mysql_1 docker-entrypoint.sh mysqld Up 0.0.0.0:3306->3306/tcp
|
||||||
|
laradock_nginx_1 nginx Up 0.0.0.0:443->443/tcp, 0.0.0.0:80->80/tcp
|
||||||
|
laradock_php-fpm_1 php-fpm Up 9000/tcp
|
||||||
|
laradock_volumes_data_1 true Exit 0
|
||||||
|
laradock_volumes_source_1 true Exit 0
|
||||||
|
laradock_workspace_1 /sbin/my_init Up 0.0.0.0:2222->22/tcp
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
<a name="enablePhpXdebug"></a>
|
||||||
|
#### Enable xDebug on php-fpm
|
||||||
|
In a host terminal sitting in the laradock folder, run: `./xdebugPhpFpm status`
|
||||||
|
You should see something like the following:
|
||||||
|
```
|
||||||
|
xDebug status
|
||||||
|
laradock_php-fpm_1
|
||||||
|
PHP 7.0.9 (cli) (built: Aug 10 2016 19:45:48) ( NTS )
|
||||||
|
Copyright (c) 1997-2016 The PHP Group
|
||||||
|
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
|
||||||
|
with Xdebug v2.4.1, Copyright (c) 2002-2016, by Derick Rethans
|
||||||
|
```
|
||||||
|
Other commands include `./xdebugPhpFpm start | stop`.
|
||||||
|
|
||||||
|
If you have enabled `xdebug=true` in `docker-compose.yml/php-fpm`, `xdebug` will already be running when
|
||||||
|
`php-fpm` is started and listening for debug info on port 9000.
|
||||||
|
|
||||||
|
|
||||||
|
<a name="InstallPHPStormConfigs"></a>
|
||||||
|
#### PHPStorm Settings
|
||||||
|
- Here are some settings that are known to work:
|
||||||
|
- `Settings/BuildDeploymentConnection`
|
||||||
|
- 
|
||||||
|
|
||||||
|
- `Settings/BuildDeploymentConnectionMappings`
|
||||||
|
- 
|
||||||
|
|
||||||
|
- `Settings/BuildDeploymentDebugger`
|
||||||
|
- 
|
||||||
|
|
||||||
|
- `Settings/EditRunConfigurationRemoteWebDebug`
|
||||||
|
- 
|
||||||
|
|
||||||
|
- `Settings/EditRunConfigurationRemoteExampleTestDebug`
|
||||||
|
- 
|
||||||
|
|
||||||
|
- `Settings/LangsPHPDebug`
|
||||||
|
- 
|
||||||
|
|
||||||
|
- `Settings/LangsPHPInterpreters`
|
||||||
|
- 
|
||||||
|
|
||||||
|
- `Settings/LangsPHPPHPUnit`
|
||||||
|
- 
|
||||||
|
|
||||||
|
- `Settings/LangsPHPServers`
|
||||||
|
- 
|
||||||
|
|
||||||
|
- `RemoteHost`
|
||||||
|
To switch on this view, go to: `Menu/Tools/Deployment/Browse Remote Host`.
|
||||||
|
- 
|
||||||
|
|
||||||
|
- `RemoteWebDebug`
|
||||||
|
- 
|
||||||
|
|
||||||
|
- `EditRunConfigurationRemoteWebDebug`
|
||||||
|
Go to: `Menu/Run/Edit Configurations`.
|
||||||
|
- 
|
||||||
|
|
||||||
|
- `EditRunConfigurationRemoteExampleTestDebug`
|
||||||
|
Go to: `Menu/Run/Edit Configurations`.
|
||||||
|
- 
|
||||||
|
|
||||||
|
- `WindowsFirewallAllowedApps`
|
||||||
|
Go to: `Control Panel\All Control Panel Items\Windows Firewall\Allowed apps`.
|
||||||
|
- 
|
||||||
|
|
||||||
|
- `hosts`
|
||||||
|
Edit: `C:\Windows\System32\drivers\etc\hosts`.
|
||||||
|
- 
|
||||||
|
|
||||||
|
- [Enable xDebug on php-fpm](#enablePhpXdebug)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a name="Usage"></a>
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
<a name="UsagePHPStormRunExampleTest"></a>
|
||||||
|
### Run ExampleTest
|
||||||
|
- right-click on `tests/ExampleTest.php`
|
||||||
|
- Select: `Run 'ExampleTest.php'` or `Ctrl+Shift+F10`.
|
||||||
|
- Should pass!! You just ran a remote test via SSH!
|
||||||
|
|
||||||
|
<a name="UsagePHPStormDebugExampleTest"></a>
|
||||||
|
### Debug ExampleTest
|
||||||
|
- Open to edit: `tests/ExampleTest.php`
|
||||||
|
- Add a BreakPoint on line 16: `$this->visit('/')`
|
||||||
|
- right-click on `tests/ExampleTest.php`
|
||||||
|
- Select: `Debug 'ExampleTest.php'`.
|
||||||
|
- Should have stopped at the BreakPoint!! You are now debugging locally against a remote Laravel project via SSH!
|
||||||
|
- 
|
||||||
|
|
||||||
|
|
||||||
|
<a name="UsagePHPStormDebugSite"></a>
|
||||||
|
### Debug WebSite
|
||||||
|
- In case xDebug is disabled, from the `laradock` folder run:
|
||||||
|
`./xdebugPhpFpm start`.
|
||||||
|
- To switch xdebug off, run:
|
||||||
|
`./xdebugPhpFpm stop`
|
||||||
|
|
||||||
|
- Start Remote Debugging
|
||||||
|
- 
|
||||||
|
|
||||||
|
- Open to edit: `bootstrap/app.php`
|
||||||
|
- Add a BreakPoint on line 14: `$app = new Illuminate\Foundation\Application(`
|
||||||
|
- Reload [Laravel Site](http://laravel/)
|
||||||
|
- Should have stopped at the BreakPoint!! You are now debugging locally against a remote Laravel project via SSH!
|
||||||
|
- 
|
||||||
|
|
||||||
|
|
||||||
|
<a name="SSHintoWorkspace"></a>
|
||||||
|
#### Let's shell into workspace
|
||||||
|
Assuming that you are in laradock folder, type:
|
||||||
|
`ssh -i workspace/insecure_id_rsa -p2222 root@laravel`
|
||||||
|
**Cha Ching!!!!**
|
||||||
|
- `workspace/insecure_id_rsa.ppk` may become corrupted. In which case:
|
||||||
|
- fire up `puttygen`
|
||||||
|
- import `workspace/insecure_id_rsa`
|
||||||
|
- save private key to `workspace/insecure_id_rsa.ppk`
|
||||||
|
|
||||||
|
<a name="InstallKiTTY"></a>
|
||||||
|
|
||||||
|
##### KiTTY
|
||||||
|
[Kitty](http://www.9bis.net/kitty/) KiTTY is a fork from version 0.67 of PuTTY.
|
||||||
|
|
||||||
|
- Here are some settings that are working for me:
|
||||||
|
- 
|
||||||
|
- 
|
||||||
|
- 
|
||||||
|
- 
|
||||||
|
- 
|
||||||
|
- 
|
||||||
|
- 
|
||||||
|
- 
|
||||||
|
- 
|
||||||
|
|
||||||
|
|
@ -22,11 +22,14 @@ services:
|
|||||||
- INSTALL_YARN=false
|
- INSTALL_YARN=false
|
||||||
- INSTALL_DRUSH=false
|
- INSTALL_DRUSH=false
|
||||||
- INSTALL_AEROSPIKE_EXTENSION=false
|
- INSTALL_AEROSPIKE_EXTENSION=false
|
||||||
|
- INSTALL_V8JS_EXTENSION=false
|
||||||
- COMPOSER_GLOBAL_INSTALL=false
|
- COMPOSER_GLOBAL_INSTALL=false
|
||||||
- INSTALL_WORKSPACE_SSH=false
|
- INSTALL_WORKSPACE_SSH=false
|
||||||
|
- INSTALL_LARAVEL_ENVOY=false
|
||||||
- PUID=1000
|
- PUID=1000
|
||||||
- PGID=1000
|
- PGID=1000
|
||||||
- NODE_VERSION=stable
|
- NODE_VERSION=stable
|
||||||
|
- YARN_VERSION=latest
|
||||||
- TZ=UTC
|
- TZ=UTC
|
||||||
volumes_from:
|
volumes_from:
|
||||||
- applications
|
- applications
|
||||||
@ -44,8 +47,10 @@ services:
|
|||||||
context: ./php-fpm
|
context: ./php-fpm
|
||||||
args:
|
args:
|
||||||
- INSTALL_XDEBUG=false
|
- INSTALL_XDEBUG=false
|
||||||
|
- INSTALL_SOAP=false
|
||||||
- INSTALL_MONGO=false
|
- INSTALL_MONGO=false
|
||||||
- INSTALL_ZIP_ARCHIVE=false
|
- INSTALL_ZIP_ARCHIVE=false
|
||||||
|
- INSTALL_BCMATH=false
|
||||||
- INSTALL_MEMCACHED=false
|
- INSTALL_MEMCACHED=false
|
||||||
- INSTALL_OPCACHE=false
|
- INSTALL_OPCACHE=false
|
||||||
- INSTALL_AEROSPIKE_EXTENSION=false
|
- INSTALL_AEROSPIKE_EXTENSION=false
|
||||||
@ -75,6 +80,7 @@ services:
|
|||||||
- applications
|
- applications
|
||||||
volumes:
|
volumes:
|
||||||
- ./logs/nginx/:/var/log/nginx
|
- ./logs/nginx/:/var/log/nginx
|
||||||
|
- ./nginx/sites/:/etc/nginx/sites-available
|
||||||
ports:
|
ports:
|
||||||
- "80:80"
|
- "80:80"
|
||||||
- "443:443"
|
- "443:443"
|
||||||
@ -112,23 +118,24 @@ services:
|
|||||||
### MySQL Container #########################################
|
### MySQL Container #########################################
|
||||||
|
|
||||||
mysql:
|
mysql:
|
||||||
build: ./mysql
|
build:
|
||||||
|
context: ./mysql
|
||||||
|
args:
|
||||||
|
- MYSQL_DATABASE=homestead
|
||||||
|
- MYSQL_USER=homestead
|
||||||
|
- MYSQL_PASSWORD=secret
|
||||||
|
- MYSQL_ROOT_PASSWORD=root
|
||||||
volumes:
|
volumes:
|
||||||
- mysql:/var/lib/mysql
|
- mysql:/var/lib/mysql
|
||||||
ports:
|
ports:
|
||||||
- "3306:3306"
|
- "3306:3306"
|
||||||
environment:
|
|
||||||
MYSQL_DATABASE: homestead
|
|
||||||
MYSQL_USER: homestead
|
|
||||||
MYSQL_PASSWORD: secret
|
|
||||||
MYSQL_ROOT_PASSWORD: root
|
|
||||||
|
|
||||||
### MariaDB Container #######################################
|
### MariaDB Container #######################################
|
||||||
|
|
||||||
mariadb:
|
mariadb:
|
||||||
build: ./mariadb
|
build: ./mariadb
|
||||||
volumes:
|
volumes:
|
||||||
- mariadb
|
- mysql:/var/lib/mysql
|
||||||
ports:
|
ports:
|
||||||
- "3306:3306"
|
- "3306:3306"
|
||||||
environment:
|
environment:
|
||||||
@ -150,6 +157,19 @@ services:
|
|||||||
POSTGRES_USER: homestead
|
POSTGRES_USER: homestead
|
||||||
POSTGRES_PASSWORD: secret
|
POSTGRES_PASSWORD: secret
|
||||||
|
|
||||||
|
### PostgreSQL PostGis Container ############################
|
||||||
|
|
||||||
|
postgres-postgis:
|
||||||
|
build: ./postgres-postgis
|
||||||
|
volumes:
|
||||||
|
- postgres:/var/lib/postgresql/data
|
||||||
|
ports:
|
||||||
|
- "5432:5432"
|
||||||
|
environment:
|
||||||
|
POSTGRES_DB: homestead
|
||||||
|
POSTGRES_USER: homestead
|
||||||
|
POSTGRES_PASSWORD: secret
|
||||||
|
|
||||||
### Neo4j Container #########################################
|
### Neo4j Container #########################################
|
||||||
|
|
||||||
neo4j:
|
neo4j:
|
||||||
@ -170,6 +190,15 @@ services:
|
|||||||
- "27017:27017"
|
- "27017:27017"
|
||||||
volumes:
|
volumes:
|
||||||
- mongo:/data/db
|
- mongo:/data/db
|
||||||
|
|
||||||
|
### RethinkDB Container #######################################
|
||||||
|
|
||||||
|
rethinkdb:
|
||||||
|
build: ./rethinkdb
|
||||||
|
ports:
|
||||||
|
- "8090:8080"
|
||||||
|
volumes:
|
||||||
|
- rethinkdb:/data/rethinkdb_data
|
||||||
|
|
||||||
### Redis Container #########################################
|
### Redis Container #########################################
|
||||||
|
|
||||||
@ -244,14 +273,12 @@ services:
|
|||||||
|
|
||||||
caddy:
|
caddy:
|
||||||
build: ./caddy
|
build: ./caddy
|
||||||
volumes_from:
|
|
||||||
- applications
|
|
||||||
volumes:
|
|
||||||
- caddy:/root/.caddy
|
|
||||||
ports:
|
ports:
|
||||||
- "80:80"
|
- "80:80"
|
||||||
- "443:443"
|
- "443:443"
|
||||||
- "2015:2015"
|
- "2015:2015"
|
||||||
|
volumes_from:
|
||||||
|
- applications
|
||||||
volumes:
|
volumes:
|
||||||
- ./caddy/Caddyfile:/etc/Caddyfile
|
- ./caddy/Caddyfile:/etc/Caddyfile
|
||||||
- ./logs/caddy:/var/log/caddy
|
- ./logs/caddy:/var/log/caddy
|
||||||
@ -267,8 +294,6 @@ services:
|
|||||||
MYSQL_USER: homestead
|
MYSQL_USER: homestead
|
||||||
MYSQL_PASSWORD: secret
|
MYSQL_PASSWORD: secret
|
||||||
MYSQL_ROOT_PASSWORD: root
|
MYSQL_ROOT_PASSWORD: root
|
||||||
volumes:
|
|
||||||
- phpmyadmin
|
|
||||||
ports:
|
ports:
|
||||||
- "8080:80"
|
- "8080:80"
|
||||||
links:
|
links:
|
||||||
@ -292,13 +317,20 @@ services:
|
|||||||
build: ./elasticsearch
|
build: ./elasticsearch
|
||||||
volumes:
|
volumes:
|
||||||
- elasticsearch-data:/usr/share/elasticsearch/data
|
- elasticsearch-data:/usr/share/elasticsearch/data
|
||||||
- elasticsearch-pkugins:/usr/share/elasticsearch/data
|
- elasticsearch-plugins:/usr/share/elasticsearch/data
|
||||||
ports:
|
ports:
|
||||||
- "9200:9200"
|
- "9200:9200"
|
||||||
- "9300:9300"
|
- "9300:9300"
|
||||||
links:
|
links:
|
||||||
- php-fpm
|
- php-fpm
|
||||||
|
|
||||||
|
### Selenium Container #########################################
|
||||||
|
|
||||||
|
selenium:
|
||||||
|
build: ./selenium
|
||||||
|
ports:
|
||||||
|
- "4444:4444"
|
||||||
|
|
||||||
### Volumes Setup ###########################################
|
### Volumes Setup ###########################################
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
@ -316,6 +348,8 @@ volumes:
|
|||||||
driver: "local"
|
driver: "local"
|
||||||
mongo:
|
mongo:
|
||||||
driver: "local"
|
driver: "local"
|
||||||
|
rethinkdb:
|
||||||
|
driver: "local"
|
||||||
phpmyadmin:
|
phpmyadmin:
|
||||||
driver: "local"
|
driver: "local"
|
||||||
aerospike:
|
aerospike:
|
||||||
@ -324,7 +358,7 @@ volumes:
|
|||||||
driver: "local"
|
driver: "local"
|
||||||
elasticsearch-data:
|
elasticsearch-data:
|
||||||
driver: "local"
|
driver: "local"
|
||||||
elasticsearch-pkugins:
|
elasticsearch-plugins:
|
||||||
driver: "local"
|
driver: "local"
|
||||||
sessions: ## nothing is connected to this (- ./data/sessions:/sessions)
|
sessions: ## nothing is connected to this (- ./data/sessions:/sessions)
|
||||||
driver: "local"
|
driver: "local"
|
||||||
|
@ -1,9 +1,27 @@
|
|||||||
FROM mysql:5.6
|
FROM mysql:5.7
|
||||||
|
|
||||||
MAINTAINER Mahmoud Zalt <mahmoud@zalt.me>
|
MAINTAINER Mahmoud Zalt <mahmoud@zalt.me>
|
||||||
|
|
||||||
|
ADD startup /etc/mysql/startup
|
||||||
|
|
||||||
|
RUN chown -R mysql:root /var/lib/mysql/
|
||||||
|
|
||||||
|
ARG MYSQL_DATABASE=homestead
|
||||||
|
ARG MYSQL_USER=homestead
|
||||||
|
ARG MYSQL_PASSWORD=secret
|
||||||
|
ARG MYSQL_ROOT_PASSWORD=root
|
||||||
|
|
||||||
|
ENV MYSQL_DATABASE=$MYSQL_DATABASE
|
||||||
|
ENV MYSQL_USER=$MYSQL_USER
|
||||||
|
ENV MYSQL_PASSWORD=$MYSQL_PASSWORD
|
||||||
|
ENV MYSQL_ROOT_PASSWORD=$MYSQL_ROOT_PASSWORD
|
||||||
|
|
||||||
|
RUN sed -i 's/MYSQL_DATABASE/'$MYSQL_DATABASE'/g' /etc/mysql/startup && \
|
||||||
|
sed -i 's/MYSQL_USER/'$MYSQL_USER'/g' /etc/mysql/startup && \
|
||||||
|
sed -i 's/MYSQL_PASSWORD/'$MYSQL_PASSWORD'/g' /etc/mysql/startup
|
||||||
|
|
||||||
ADD my.cnf /etc/mysql/conf.d/my.cnf
|
ADD my.cnf /etc/mysql/conf.d/my.cnf
|
||||||
|
|
||||||
CMD ["mysqld"]
|
CMD ["mysqld", "--init-file=/etc/mysql/startup"]
|
||||||
|
|
||||||
EXPOSE 3306
|
EXPOSE 3306
|
||||||
|
@ -4,3 +4,6 @@
|
|||||||
# http://dev.mysql.com/doc/mysql/en/server-system-variables.html
|
# http://dev.mysql.com/doc/mysql/en/server-system-variables.html
|
||||||
|
|
||||||
[mysql]
|
[mysql]
|
||||||
|
|
||||||
|
[mysqld]
|
||||||
|
sql-mode="STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
|
||||||
|
4
mysql/startup
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
DROP USER IF EXISTS 'MYSQL_USER';
|
||||||
|
CREATE USER 'MYSQL_USER'@'%';
|
||||||
|
CREATE DATABASE IF NOT EXISTS MYSQL_DATABASE;
|
||||||
|
GRANT ALL ON MYSQL_DATABASE.* TO 'MYSQL_USER'@'%' IDENTIFIED BY 'MYSQL_PASSWORD';
|
@ -3,7 +3,6 @@ FROM nginx:alpine
|
|||||||
MAINTAINER Mahmoud Zalt <mahmoud@zalt.me>
|
MAINTAINER Mahmoud Zalt <mahmoud@zalt.me>
|
||||||
|
|
||||||
ADD nginx.conf /etc/nginx/
|
ADD nginx.conf /etc/nginx/
|
||||||
COPY sites/*.conf /etc/nginx/sites-available/
|
|
||||||
|
|
||||||
ARG PHP_UPSTREAM=php-fpm
|
ARG PHP_UPSTREAM=php-fpm
|
||||||
|
|
||||||
|
2
nginx/sites/.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
*.conf
|
||||||
|
!default.conf
|
@ -36,6 +36,18 @@ MAINTAINER Mahmoud Zalt <mahmoud@zalt.me>
|
|||||||
# - INSTALL_ZIP_ARCHIVE=true
|
# - INSTALL_ZIP_ARCHIVE=true
|
||||||
#
|
#
|
||||||
|
|
||||||
|
#####################################
|
||||||
|
# SOAP:
|
||||||
|
#####################################
|
||||||
|
|
||||||
|
ARG INSTALL_SOAP=false
|
||||||
|
RUN if [ ${INSTALL_SOAP} = true ]; then \
|
||||||
|
# Install the soap extension
|
||||||
|
apt-get -y update && \
|
||||||
|
apt-get -y install libxml2-dev && \
|
||||||
|
docker-php-ext-install soap \
|
||||||
|
;fi
|
||||||
|
|
||||||
#####################################
|
#####################################
|
||||||
# xDebug:
|
# xDebug:
|
||||||
#####################################
|
#####################################
|
||||||
@ -72,6 +84,16 @@ RUN if [ ${INSTALL_ZIP_ARCHIVE} = true ]; then \
|
|||||||
docker-php-ext-enable zip \
|
docker-php-ext-enable zip \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
|
#####################################
|
||||||
|
# bcmath:
|
||||||
|
#####################################
|
||||||
|
|
||||||
|
ARG INSTALL_BCMATH=false
|
||||||
|
RUN if [ ${INSTALL_BCMATH} = true ]; then \
|
||||||
|
# Install the bcmath extension
|
||||||
|
docker-php-ext-install bcmath \
|
||||||
|
;fi
|
||||||
|
|
||||||
#####################################
|
#####################################
|
||||||
# PHP Memcached:
|
# PHP Memcached:
|
||||||
#####################################
|
#####################################
|
||||||
|
@ -37,6 +37,18 @@ MAINTAINER Mahmoud Zalt <mahmoud@zalt.me>
|
|||||||
# - ...
|
# - ...
|
||||||
#
|
#
|
||||||
|
|
||||||
|
#####################################
|
||||||
|
# SOAP:
|
||||||
|
#####################################
|
||||||
|
|
||||||
|
ARG INSTALL_SOAP=false
|
||||||
|
RUN if [ ${INSTALL_SOAP} = true ]; then \
|
||||||
|
# Install the soap extension
|
||||||
|
apt-get -y update && \
|
||||||
|
apt-get -y install libxml2-dev && \
|
||||||
|
docker-php-ext-install soap \
|
||||||
|
;fi
|
||||||
|
|
||||||
#####################################
|
#####################################
|
||||||
# xDebug:
|
# xDebug:
|
||||||
#####################################
|
#####################################
|
||||||
@ -73,6 +85,16 @@ RUN if [ ${INSTALL_ZIP_ARCHIVE} = true ]; then \
|
|||||||
docker-php-ext-enable zip \
|
docker-php-ext-enable zip \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
|
#####################################
|
||||||
|
# bcmath:
|
||||||
|
#####################################
|
||||||
|
|
||||||
|
ARG INSTALL_BCMATH=false
|
||||||
|
RUN if [ ${INSTALL_BCMATH} = true ]; then \
|
||||||
|
# Install the bcmath extension
|
||||||
|
docker-php-ext-install bcmath \
|
||||||
|
;fi
|
||||||
|
|
||||||
#####################################
|
#####################################
|
||||||
# PHP Memcached:
|
# PHP Memcached:
|
||||||
#####################################
|
#####################################
|
||||||
|
5
postgres-postgis/Dockerfile
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
FROM mdillon/postgis:latest
|
||||||
|
|
||||||
|
CMD ["postgres"]
|
||||||
|
|
||||||
|
EXPOSE 5432
|
11
rethinkdb/Dockerfile
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
FROM rethinkdb:latest
|
||||||
|
|
||||||
|
MAINTAINER Cristian Mello <cristianc.mello@gmail.com>
|
||||||
|
|
||||||
|
VOLUME /data/rethinkdb_data
|
||||||
|
|
||||||
|
RUN cp /etc/rethinkdb/default.conf.sample /etc/rethinkdb/instances.d/instance1.conf
|
||||||
|
|
||||||
|
CMD ["rethinkdb", "--bind", "all"]
|
||||||
|
|
||||||
|
EXPOSE 8080
|
5
selenium/Dockerfile
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
FROM selenium/standalone-chrome
|
||||||
|
|
||||||
|
MAINTAINER Edmund Luong <edmundvmluong@gmail.com>
|
||||||
|
|
||||||
|
EXPOSE 4444
|
@ -10,7 +10,7 @@
|
|||||||
# https://hub.docker.com/r/laradock/workspace/tags/
|
# https://hub.docker.com/r/laradock/workspace/tags/
|
||||||
#
|
#
|
||||||
|
|
||||||
FROM laradock/workspace:1.1
|
FROM laradock/workspace:1.3
|
||||||
|
|
||||||
MAINTAINER Mahmoud Zalt <mahmoud@zalt.me>
|
MAINTAINER Mahmoud Zalt <mahmoud@zalt.me>
|
||||||
|
|
||||||
@ -46,7 +46,7 @@ ARG PUID=1000
|
|||||||
ARG PGID=1000
|
ARG PGID=1000
|
||||||
RUN groupadd -g $PGID laradock && \
|
RUN groupadd -g $PGID laradock && \
|
||||||
useradd -u $PUID -g laradock -m laradock
|
useradd -u $PUID -g laradock -m laradock
|
||||||
|
|
||||||
#####################################
|
#####################################
|
||||||
# Set Timezone
|
# Set Timezone
|
||||||
#####################################
|
#####################################
|
||||||
@ -79,7 +79,7 @@ RUN if [ ${COMPOSER_GLOBAL_INSTALL} = true ]; then \
|
|||||||
#####################################
|
#####################################
|
||||||
USER root
|
USER root
|
||||||
|
|
||||||
COPY ./crontab /var/spool/cron/crontabs
|
COPY ./crontab /etc/cron.d
|
||||||
|
|
||||||
#####################################
|
#####################################
|
||||||
# xDebug:
|
# xDebug:
|
||||||
@ -125,7 +125,7 @@ ENV INSTALL_MONGO ${INSTALL_MONGO}
|
|||||||
RUN if [ ${INSTALL_MONGO} = true ]; then \
|
RUN if [ ${INSTALL_MONGO} = true ]; then \
|
||||||
# Install the mongodb extension
|
# Install the mongodb extension
|
||||||
pecl install mongodb && \
|
pecl install mongodb && \
|
||||||
echo "extension=mongodb.so" >> /etc/php/7.0/cli/php.ini \
|
echo "extension=mongodb.so" >> /etc/php/7.0/cli/conf.d/30-mongodb.ini \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
#####################################
|
#####################################
|
||||||
@ -189,9 +189,16 @@ USER laradock
|
|||||||
|
|
||||||
ARG INSTALL_YARN=false
|
ARG INSTALL_YARN=false
|
||||||
ENV INSTALL_YARN ${INSTALL_YARN}
|
ENV INSTALL_YARN ${INSTALL_YARN}
|
||||||
|
ARG YARN_VERSION=latest
|
||||||
|
ENV YARN_VERSION ${YARN_VERSION}
|
||||||
|
|
||||||
RUN if [ ${INSTALL_YARN} = true ]; then \
|
RUN if [ ${INSTALL_YARN} = true ]; then \
|
||||||
curl -o- -L https://yarnpkg.com/install.sh | bash && \
|
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" && \
|
||||||
|
if [ ${YARN_VERSION} = "latest" ]; then \
|
||||||
|
curl -o- -L https://yarnpkg.com/install.sh | bash; \
|
||||||
|
else \
|
||||||
|
curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version ${YARN_VERSION}; \
|
||||||
|
fi && \
|
||||||
echo "" >> ~/.bashrc && \
|
echo "" >> ~/.bashrc && \
|
||||||
echo 'export PATH="$HOME/.yarn/bin:$PATH"' >> ~/.bashrc \
|
echo 'export PATH="$HOME/.yarn/bin:$PATH"' >> ~/.bashrc \
|
||||||
;fi
|
;fi
|
||||||
@ -234,6 +241,23 @@ RUN if [ ${INSTALL_AEROSPIKE_EXTENSION} = false ]; then \
|
|||||||
rm /etc/php/7.0/cli/conf.d/aerospike.ini \
|
rm /etc/php/7.0/cli/conf.d/aerospike.ini \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
|
#####################################
|
||||||
|
# PHP V8JS:
|
||||||
|
#####################################
|
||||||
|
USER root
|
||||||
|
|
||||||
|
ARG INSTALL_V8JS_EXTENSION=false
|
||||||
|
ENV INSTALL_V8JS_EXTENSION ${INSTALL_V8JS_EXTENSION}
|
||||||
|
|
||||||
|
RUN if [ ${INSTALL_V8JS_EXTENSION} = true ]; then \
|
||||||
|
# Install the php V8JS extension
|
||||||
|
add-apt-repository -y ppa:pinepain/libv8-5.4 \
|
||||||
|
&& apt-get update \
|
||||||
|
&& apt-get install -y php-dev php-pear libv8-5.4 \
|
||||||
|
&& pecl install v8js \
|
||||||
|
&& echo "extension=v8js.so" >> /etc/php/7.0/cli/php.ini \
|
||||||
|
;fi
|
||||||
|
|
||||||
#####################################
|
#####################################
|
||||||
# Non-root user : PHPUnit path
|
# Non-root user : PHPUnit path
|
||||||
#####################################
|
#####################################
|
||||||
@ -244,6 +268,29 @@ USER laradock
|
|||||||
RUN echo "" >> ~/.bashrc && \
|
RUN echo "" >> ~/.bashrc && \
|
||||||
echo 'export PATH="/var/www/vendor/bin:$PATH"' >> ~/.bashrc
|
echo 'export PATH="/var/www/vendor/bin:$PATH"' >> ~/.bashrc
|
||||||
|
|
||||||
|
#####################################
|
||||||
|
# Laravel Artisan Alias
|
||||||
|
#####################################
|
||||||
|
USER root
|
||||||
|
|
||||||
|
RUN echo "" >> ~/.bashrc && \
|
||||||
|
echo 'alias art="php artisan"' >> ~/.bashrc
|
||||||
|
|
||||||
|
#####################################
|
||||||
|
# Laravel Envoy:
|
||||||
|
#####################################
|
||||||
|
USER laradock
|
||||||
|
|
||||||
|
ARG INSTALL_LARAVEL_ENVOY=true
|
||||||
|
ENV INSTALL_LARAVEL_ENVOY ${INSTALL_LARAVEL_ENVOY}
|
||||||
|
|
||||||
|
RUN if [ ${INSTALL_LARAVEL_ENVOY} = true ]; then \
|
||||||
|
# Install the Laravel Envoy
|
||||||
|
echo "" >> ~/.bashrc && \
|
||||||
|
echo 'export PATH="~/.composer/vendor/bin:$PATH"' >> ~/.bashrc \
|
||||||
|
&& composer global require "laravel/envoy=~1.0" \
|
||||||
|
;fi
|
||||||
|
|
||||||
#
|
#
|
||||||
#--------------------------------------------------------------------------
|
#--------------------------------------------------------------------------
|
||||||
# Final Touch
|
# Final Touch
|
||||||
|
1
workspace/crontab/laradock
Normal file
@ -0,0 +1 @@
|
|||||||
|
* * * * * laradock php /var/www/artisan schedule:run >> /dev/null 2>&1
|
@ -1 +0,0 @@
|
|||||||
* * * * * php /var/www/artisan schedule:run >> /dev/null 2>&1
|
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
|
|
||||||
# Grab full name of php-fpm container
|
# Grab full name of php-fpm container
|
||||||
PHP_FPM_CONTAINER=$(docker-compose ps | grep php-fpm | cut -d" " -f 1)
|
PHP_FPM_CONTAINER=$(docker-compose ps | grep php-fpm | cut -d " " -f 1)
|
||||||
|
|
||||||
|
|
||||||
# Grab OS type
|
# Grab OS type
|
||||||
|