Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
e5e04e4e18 | |||
44d8720400 | |||
f0200626ba | |||
69406db3e0 | |||
bcb749151a |
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
|||||||
/logs
|
/logs
|
||||||
|
.env
|
25
README.md
25
README.md
@ -221,7 +221,7 @@ You can select your own combination of container form this list:
|
|||||||
3 - Enter the Workspace container, to execute commands like (Artisan, Composer, PHPUnit, Gulp, ...).
|
3 - Enter the Workspace container, to execute commands like (Artisan, Composer, PHPUnit, Gulp, ...).
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker exec -it {Workspace-Container-Name} bash
|
docker-compose run workspace bash
|
||||||
```
|
```
|
||||||
Replace `{Workspace-Container-Name}` with your Workspace container name.
|
Replace `{Workspace-Container-Name}` with your Workspace container name.
|
||||||
<br>
|
<br>
|
||||||
@ -323,7 +323,7 @@ docker-compose down
|
|||||||
2 - enter any container using:
|
2 - enter any container using:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker exec -it {container-name} bash
|
docker-compose run {container-name} bash
|
||||||
```
|
```
|
||||||
3 - to exit a container, type `exit`.
|
3 - to exit a container, type `exit`.
|
||||||
|
|
||||||
@ -494,19 +494,13 @@ You can run artisan commands and many other Terminal commands from the Workspace
|
|||||||
docker-compose up -d workspace // ..and all your other containers
|
docker-compose up -d workspace // ..and all your other containers
|
||||||
```
|
```
|
||||||
|
|
||||||
2 - Find the Workspace container name:
|
2 - Enter the Workspace container:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker-compose ps
|
docker-compose run workspace /bin/bash
|
||||||
```
|
```
|
||||||
|
|
||||||
3 - Enter the Workspace container:
|
3 - Run anything you want :)
|
||||||
|
|
||||||
```bash
|
|
||||||
docker exec -it {workspace-container-name} bash
|
|
||||||
```
|
|
||||||
|
|
||||||
4 - Run anything you want :)
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
php artisan
|
php artisan
|
||||||
@ -518,13 +512,6 @@ Composer update
|
|||||||
phpunit
|
phpunit
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
<a name="Use-Redis"></a>
|
<a name="Use-Redis"></a>
|
||||||
### Use Redis
|
### Use Redis
|
||||||
@ -627,7 +614,7 @@ More details about this [here](https://github.com/jenssegers/laravel-mongodb#ins
|
|||||||
5 - Test it:
|
5 - Test it:
|
||||||
|
|
||||||
- First let your Models extend from the Mongo Eloquent Model. Check the [documentation](https://github.com/jenssegers/laravel-mongodb#eloquent).
|
- First let your Models extend from the Mongo Eloquent Model. Check the [documentation](https://github.com/jenssegers/laravel-mongodb#eloquent).
|
||||||
- Enter the Workspace Continer `docker exec -it laradock_workspace_1 bash`.
|
- Enter the Workspace Continer `docker-compose run workspace bash`.
|
||||||
- Migrate the Database `php artisan migrate`.
|
- Migrate the Database `php artisan migrate`.
|
||||||
|
|
||||||
|
|
||||||
|
@ -153,7 +153,10 @@ services:
|
|||||||
### Workspace Utilities Container ###########################
|
### Workspace Utilities Container ###########################
|
||||||
|
|
||||||
workspace:
|
workspace:
|
||||||
build: ./workspace
|
build:
|
||||||
|
context: ./workspace
|
||||||
|
args:
|
||||||
|
INSTALL_PRESTISSIMO: ${INSTALL_PRESTISSIMO}
|
||||||
volumes_from:
|
volumes_from:
|
||||||
- application
|
- application
|
||||||
tty: true
|
tty: true
|
||||||
|
@ -88,3 +88,9 @@ RUN . ~/.bashrc
|
|||||||
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||||
|
|
||||||
WORKDIR /var/www/laravel
|
WORKDIR /var/www/laravel
|
||||||
|
|
||||||
|
# Install optional software
|
||||||
|
ARG INSTALL_PRESTISSIMO=false
|
||||||
|
RUN if [ "$INSTALL_PRESTISSIMO" = true ] ; then \
|
||||||
|
composer global require "hirak/prestissimo:^0.3"; \
|
||||||
|
fi
|
Reference in New Issue
Block a user