Compare commits
21 Commits
Author | SHA1 | Date | |
---|---|---|---|
a1fd2aabcd | |||
3e2b413094 | |||
ec3ebb9701 | |||
cfc48b3791 | |||
3725ad4c46 | |||
a0b75bac46 | |||
489740848f | |||
b2aa38877b | |||
51703f00fc | |||
f1716a2767 | |||
5640bd963d | |||
8bb69beb84 | |||
76afeedc33 | |||
16b6223ba9 | |||
1b88c2c9d8 | |||
b254d4a9c9 | |||
2ed475f1ef | |||
3a5100097a | |||
15b3fe65c1 | |||
da6face95e | |||
1345164ac3 |
31
README.md
31
README.md
@ -23,7 +23,7 @@ It's like Laravel Homestead but for Docker instead of Vagrant.
|
|||||||
- [Chinese](https://github.com/LaraDock/laradock/blob/master/README-zh.md)
|
- [Chinese](https://github.com/LaraDock/laradock/blob/master/README-zh.md)
|
||||||
- [Intro](#Intro)
|
- [Intro](#Intro)
|
||||||
- [Features](#features)
|
- [Features](#features)
|
||||||
- [Supported Software's](#Supported-Containers)
|
- [Supported Software](#Supported-Containers)
|
||||||
- [What is Docker](#what-is-docker)
|
- [What is Docker](#what-is-docker)
|
||||||
- [What is Laravel](#what-is-laravel)
|
- [What is Laravel](#what-is-laravel)
|
||||||
- [Why Docker not Vagrant](#why-docker-not-vagrant)
|
- [Why Docker not Vagrant](#why-docker-not-vagrant)
|
||||||
@ -41,7 +41,7 @@ It's like Laravel Homestead but for Docker instead of Vagrant.
|
|||||||
- [Edit default container configuration](#Edit-Container)
|
- [Edit default container configuration](#Edit-Container)
|
||||||
- [Edit a Docker Image](#Edit-a-Docker-Image)
|
- [Edit a Docker Image](#Edit-a-Docker-Image)
|
||||||
- [Build/Re-build Containers](#Build-Re-build-Containers)
|
- [Build/Re-build Containers](#Build-Re-build-Containers)
|
||||||
- [Add more Software's (Docker Images)](#Add-Docker-Images)
|
- [Add more Software (Docker Images)](#Add-Docker-Images)
|
||||||
- [View the Log files](#View-the-Log-files)
|
- [View the Log files](#View-the-Log-files)
|
||||||
- [Laravel](#Laravel):
|
- [Laravel](#Laravel):
|
||||||
- [Install Laravel from a Docker Container](#Install-Laravel)
|
- [Install Laravel from a Docker Container](#Install-Laravel)
|
||||||
@ -97,7 +97,7 @@ Let's see how easy it is to install `NGINX`, `PHP`, `Composer`, `MySQL` and `Red
|
|||||||
|
|
||||||
- Easy switch between PHP versions: 7.0, 5.6, 5.5...
|
- Easy switch between PHP versions: 7.0, 5.6, 5.5...
|
||||||
- Choose your favorite database engine: MySQL, Postgres, MariaDB...
|
- Choose your favorite database engine: MySQL, Postgres, MariaDB...
|
||||||
- Run your own combination of software's: Memcached, HHVM, Beanstalkd...
|
- Run your own combination of software: Memcached, HHVM, Beanstalkd...
|
||||||
- Every software runs on a separate container: PHP-FPM, NGINX, PHP-CLI...
|
- Every software runs on a separate container: PHP-FPM, NGINX, PHP-CLI...
|
||||||
- Easy to customize any container, with simple edit to the `dockerfile`.
|
- Easy to customize any container, with simple edit to the `dockerfile`.
|
||||||
- All Images extends from an official base Image. (Trusted base Images).
|
- All Images extends from an official base Image. (Trusted base Images).
|
||||||
@ -111,7 +111,7 @@ Let's see how easy it is to install `NGINX`, `PHP`, `Composer`, `MySQL` and `Red
|
|||||||
|
|
||||||
|
|
||||||
<a name="Supported-Containers"></a>
|
<a name="Supported-Containers"></a>
|
||||||
### Supported Software's (Containers)
|
### Supported Software (Containers)
|
||||||
|
|
||||||
- **Database Engines:**
|
- **Database Engines:**
|
||||||
- MySQL
|
- MySQL
|
||||||
@ -135,8 +135,8 @@ Let's see how easy it is to install `NGINX`, `PHP`, `Composer`, `MySQL` and `Red
|
|||||||
- RabbitMQ (+ RabbitMQ Console)
|
- RabbitMQ (+ RabbitMQ Console)
|
||||||
- **Tools:**
|
- **Tools:**
|
||||||
- Workspace (PHP7-CLI, Composer, Git, Node, Gulp, SQLite, Vim, Nano, cURL...)
|
- Workspace (PHP7-CLI, Composer, Git, Node, Gulp, SQLite, Vim, Nano, cURL...)
|
||||||
- phpMyAdmin
|
- PhpMyAdmin
|
||||||
- pgAdmin
|
- PgAdmin
|
||||||
- ElasticSearch
|
- ElasticSearch
|
||||||
|
|
||||||
|
|
||||||
@ -189,7 +189,7 @@ Running a virtual Container is much faster than running a full virtual Machine.
|
|||||||
|
|
||||||
What's better than a **Demo Video**:
|
What's better than a **Demo Video**:
|
||||||
|
|
||||||
- LaraDock v4.0 (Coming soon..)
|
- LaraDock v4.* (Coming soon..)
|
||||||
- LaraDock [v2.2](https://www.youtube.com/watch?v=-DamFMczwDA)
|
- LaraDock [v2.2](https://www.youtube.com/watch?v=-DamFMczwDA)
|
||||||
- LaraDock [v0.3](https://www.youtube.com/watch?v=jGkyO6Is_aI)
|
- LaraDock [v0.3](https://www.youtube.com/watch?v=jGkyO6Is_aI)
|
||||||
- LaraDock [v0.1](https://www.youtube.com/watch?v=3YQsHe6oF80)
|
- LaraDock [v0.1](https://www.youtube.com/watch?v=3YQsHe6oF80)
|
||||||
@ -269,6 +269,12 @@ You can select your own combination of Containers form the list below:
|
|||||||
docker-compose exec workspace bash
|
docker-compose exec workspace bash
|
||||||
```
|
```
|
||||||
<br />
|
<br />
|
||||||
|
<br>
|
||||||
|
2a - Alternatively, Windows Powershell users can execute the following command to enter a running container.
|
||||||
|
```bash
|
||||||
|
docker exec -it {container-id} bash
|
||||||
|
```
|
||||||
|
<br />
|
||||||
Add `--user=laradock` (example `docker-compose exec --user=laradock workspace bash`) to have files created as your host's user. (you can change the PUID (User id) and PGID (group id) variables from the `docker-compose.yml`).
|
Add `--user=laradock` (example `docker-compose exec --user=laradock workspace bash`) to have files created as your host's user. (you can change the PUID (User id) and PGID (group id) variables from the `docker-compose.yml`).
|
||||||
|
|
||||||
|
|
||||||
@ -458,7 +464,7 @@ You might use the `--no-cache` option if you want full rebuilding (`docker-compo
|
|||||||
|
|
||||||
<br>
|
<br>
|
||||||
<a name="Add-Docker-Images"></a>
|
<a name="Add-Docker-Images"></a>
|
||||||
### Add more Software's (Docker Images)
|
### Add more Software (Docker Images)
|
||||||
|
|
||||||
To add an image (software), just edit the `docker-compose.yml` and add your container details, to do so you need to be familiar with the [docker compose file syntax](https://docs.docker.com/compose/compose-file/).
|
To add an image (software), just edit the `docker-compose.yml` and add your container details, to do so you need to be familiar with the [docker compose file syntax](https://docs.docker.com/compose/compose-file/).
|
||||||
|
|
||||||
@ -1138,12 +1144,15 @@ For special help with Docker and/or Laravel, you can schedule a live call with t
|
|||||||
|
|
||||||
## Credits
|
## Credits
|
||||||
|
|
||||||
**Creator:**
|
**Admins:**
|
||||||
|
|
||||||
- [Mahmoud Zalt](https://github.com/Mahmoudz) (Twitter [@Mahmoud_Zalt](https://twitter.com/Mahmoud_Zalt))
|
- [Mahmoud Zalt](https://github.com/Mahmoudz) **Creator** (Twitter [@Mahmoud_Zalt](https://twitter.com/Mahmoud_Zalt))
|
||||||
|
- [Bo-Yi Wu (appleboy)](https://github.com/appleboy)
|
||||||
|
|
||||||
**Main Contributors:**
|
**Main Contributors:**
|
||||||
|
|
||||||
|
- [Francis Lavoie (francislavoie)](https://github.com/francislavoie)
|
||||||
|
- [luciano-jr](https://github.com/luciano-jr)
|
||||||
- [Zhqagp](https://github.com/zhqagp)
|
- [Zhqagp](https://github.com/zhqagp)
|
||||||
- [Tim B (tjb328)](https://github.com/tjb328)
|
- [Tim B (tjb328)](https://github.com/tjb328)
|
||||||
- [MidasCodeBreaker](https://github.com/midascodebreaker)
|
- [MidasCodeBreaker](https://github.com/midascodebreaker)
|
||||||
@ -1154,7 +1163,6 @@ For special help with Docker and/or Laravel, you can schedule a live call with t
|
|||||||
- [Eric Pfeiffer (computerfr33k)](https://github.com/computerfr33k)
|
- [Eric Pfeiffer (computerfr33k)](https://github.com/computerfr33k)
|
||||||
- [Orette](https://github.com/orette)
|
- [Orette](https://github.com/orette)
|
||||||
- [Jack Fletcher (Kauhat)](https://github.com/Kauhat)
|
- [Jack Fletcher (Kauhat)](https://github.com/Kauhat)
|
||||||
- [Bo-Yi Wu (appleboy)](https://github.com/appleboy)
|
|
||||||
- [Amin Mkh (AminMkh)](https://github.com/AminMkh)
|
- [Amin Mkh (AminMkh)](https://github.com/AminMkh)
|
||||||
- [Matthew Tonkin Dunn (mattythebatty)](https://github.com/mattythebatty)
|
- [Matthew Tonkin Dunn (mattythebatty)](https://github.com/mattythebatty)
|
||||||
- [Zhivitsa Kirill (zhikiri)](https://github.com/zhikiri)
|
- [Zhivitsa Kirill (zhikiri)](https://github.com/zhikiri)
|
||||||
@ -1165,7 +1173,6 @@ For special help with Docker and/or Laravel, you can schedule a live call with t
|
|||||||
- [Contributors](https://github.com/LaraDock/laradock/graphs/contributors)
|
- [Contributors](https://github.com/LaraDock/laradock/graphs/contributors)
|
||||||
- [Supporters](https://github.com/LaraDock/laradock/issues?utf8=%E2%9C%93&q=)
|
- [Supporters](https://github.com/LaraDock/laradock/issues?utf8=%E2%9C%93&q=)
|
||||||
|
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
[MIT License](https://github.com/laradock/laradock/blob/master/LICENSE) (MIT)
|
[MIT License](https://github.com/laradock/laradock/blob/master/LICENSE) (MIT)
|
||||||
|
@ -104,8 +104,6 @@ services:
|
|||||||
build: ./mysql
|
build: ./mysql
|
||||||
volumes_from:
|
volumes_from:
|
||||||
- volumes_data
|
- volumes_data
|
||||||
ports:
|
|
||||||
- "3306:3306"
|
|
||||||
environment:
|
environment:
|
||||||
MYSQL_DATABASE: homestead
|
MYSQL_DATABASE: homestead
|
||||||
MYSQL_USER: homestead
|
MYSQL_USER: homestead
|
||||||
@ -131,8 +129,6 @@ services:
|
|||||||
build: ./mariadb
|
build: ./mariadb
|
||||||
volumes_from:
|
volumes_from:
|
||||||
- volumes_data
|
- volumes_data
|
||||||
ports:
|
|
||||||
- "3306:3306"
|
|
||||||
environment:
|
environment:
|
||||||
MYSQL_DATABASE: homestead
|
MYSQL_DATABASE: homestead
|
||||||
MYSQL_USER: homestead
|
MYSQL_USER: homestead
|
||||||
@ -234,6 +230,7 @@ services:
|
|||||||
build: ./caddy
|
build: ./caddy
|
||||||
volumes_from:
|
volumes_from:
|
||||||
- volumes_source
|
- volumes_source
|
||||||
|
- volumes_data
|
||||||
ports:
|
ports:
|
||||||
- "80:80"
|
- "80:80"
|
||||||
- "443:443"
|
- "443:443"
|
||||||
@ -307,6 +304,7 @@ services:
|
|||||||
- ./data/mongo:/data/db
|
- ./data/mongo:/data/db
|
||||||
- ./data/aerospike:/opt/aerospike/data
|
- ./data/aerospike:/opt/aerospike/data
|
||||||
- ./data/sessions:/sessions
|
- ./data/sessions:/sessions
|
||||||
|
- ./data/caddy:/root/.caddy
|
||||||
- ./data/elasticsearch/data:/usr/share/elasticsearch/data
|
- ./data/elasticsearch/data:/usr/share/elasticsearch/data
|
||||||
|
|
||||||
### Add more Containers below ###############################
|
### Add more Containers below ###############################
|
||||||
|
@ -2,6 +2,8 @@ FROM mysql:latest
|
|||||||
|
|
||||||
MAINTAINER Mahmoud Zalt <mahmoud@zalt.me>
|
MAINTAINER Mahmoud Zalt <mahmoud@zalt.me>
|
||||||
|
|
||||||
|
ADD my.cnf /etc/mysql/conf.d/my.cnf
|
||||||
|
|
||||||
CMD ["mysqld"]
|
CMD ["mysqld"]
|
||||||
|
|
||||||
EXPOSE 3306
|
EXPOSE 3306
|
||||||
|
6
mysql/my.cnf
Normal file
6
mysql/my.cnf
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
# The MySQL Client configuration file.
|
||||||
|
#
|
||||||
|
# For explanations see
|
||||||
|
# http://dev.mysql.com/doc/mysql/en/server-system-variables.html
|
||||||
|
|
||||||
|
[mysql]
|
@ -114,6 +114,9 @@ RUN if [ ${INSTALL_OPCACHE} = true ]; then \
|
|||||||
docker-php-ext-enable opcache \
|
docker-php-ext-enable opcache \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
|
# Copy opcache configration
|
||||||
|
COPY ./opcache.ini /usr/local/etc/php/conf.d/opcache.ini
|
||||||
|
|
||||||
#
|
#
|
||||||
#--------------------------------------------------------------------------
|
#--------------------------------------------------------------------------
|
||||||
# Final Touch
|
# Final Touch
|
||||||
|
@ -125,6 +125,8 @@ RUN if [ ${INSTALL_OPCACHE} = true ]; then \
|
|||||||
docker-php-ext-enable opcache \
|
docker-php-ext-enable opcache \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
|
# Copy opcache configration
|
||||||
|
COPY ./opcache.ini /usr/local/etc/php/conf.d/opcache.ini
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
|
7
php-fpm/opcache.ini
Normal file
7
php-fpm/opcache.ini
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
extension=opcache.so
|
||||||
|
opcache.enable="1"
|
||||||
|
opcache.memory_consumption="256"
|
||||||
|
opcache.use_cwd="0"
|
||||||
|
opcache.fast_shutdown="1"
|
||||||
|
opcache.max_file_size="0"
|
||||||
|
opcache.validate_timestamps="0"
|
@ -1,10 +1,3 @@
|
|||||||
#
|
|
||||||
# RabbitMQ Dockerfile
|
|
||||||
#
|
|
||||||
# https://github.com/dockerfile/rabbitmq
|
|
||||||
#
|
|
||||||
|
|
||||||
# Pull base image.
|
|
||||||
FROM rabbitmq
|
FROM rabbitmq
|
||||||
|
|
||||||
RUN rabbitmq-plugins enable --offline rabbitmq_management
|
RUN rabbitmq-plugins enable --offline rabbitmq_management
|
||||||
|
@ -165,6 +165,14 @@ RUN if [ ${INSTALL_NODE} = true ]; then \
|
|||||||
echo '[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm' >> ~/.bashrc \
|
echo '[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm' >> ~/.bashrc \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
|
# Add NVM binaries to root's .bashrc
|
||||||
|
USER root
|
||||||
|
RUN if [ ${INSTALL_NODE} = true ]; then \
|
||||||
|
echo "" >> ~/.bashrc && \
|
||||||
|
echo 'export NVM_DIR="/home/laradock/.nvm"' >> ~/.bashrc && \
|
||||||
|
echo '[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm' >> ~/.bashrc \
|
||||||
|
;fi
|
||||||
|
|
||||||
#####################################
|
#####################################
|
||||||
# PHP Aerospike:
|
# PHP Aerospike:
|
||||||
#####################################
|
#####################################
|
||||||
@ -186,6 +194,9 @@ RUN if [ ${INSTALL_AEROSPIKE_EXTENSION} = true ]; then \
|
|||||||
) \
|
) \
|
||||||
&& rm /tmp/aerospike-client-php.tar.gz \
|
&& rm /tmp/aerospike-client-php.tar.gz \
|
||||||
;fi
|
;fi
|
||||||
|
RUN if [ ${INSTALL_AEROSPIKE_EXTENSION} = false ]; then \
|
||||||
|
rm /etc/php/7.0/cli/conf.d/aerospike.ini \
|
||||||
|
;fi
|
||||||
|
|
||||||
#
|
#
|
||||||
#--------------------------------------------------------------------------
|
#--------------------------------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user