Skip to content

Commit 5e0e120

Browse files
committed
add apache2 container.
1 parent 33b701a commit 5e0e120

3 files changed

Lines changed: 43 additions & 9 deletions

File tree

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ docker-compose up -d nginx mysql
211211

212212
You can select your own combination of container form this list:
213213

214-
`nginx`, `hhvm` ,`mysql`, `redis`, `postgres`, `mariadb`, `neo4j`, `mongo`, `memcached`, `beanstalkd`, `beanstalkd-console`, `caddy`, `workspace`, `php-fpm`.
214+
`apache2`, `caddy`, `nginx`, `hhvm`, `php-fpm`, `mysql`, `redis`, `postgres`, `mariadb`, `neo4j`, `mongo`, `memcached`, `beanstalkd`, `beanstalkd-console`, `workspace`.
215215

216216

217217
**Note**: `workspace` and `php-fpm` will run automatically in most of the cases, so no need to specify them in the `up` command.
@@ -580,15 +580,15 @@ composer require predis/predis:^1.0
580580
<a name="Use-Mongo"></a>
581581
### Use Mongo
582582

583-
1 - First install `mongo` in the Workspace and the PHP-FPM Containers:
583+
1 - First install `mongo` in the Workspace and the PHP-FPM Containers:
584584
<br>
585585
a) open the `docker-compose.yml` file
586586
<br>
587-
b) search for the `INSTALL_MONGO` argument under the Workspace Container
587+
b) search for the `INSTALL_MONGO` argument under the Workspace Container
588588
<br>
589589
c) set it to `true`
590590
<br>
591-
d) search for the `INSTALL_MONGO` argument under the PHP-FPM Container
591+
d) search for the `INSTALL_MONGO` argument under the PHP-FPM Container
592592
<br>
593593
e) set it to `true`
594594

@@ -769,15 +769,15 @@ Right now you have to manually edit the `Dockerfile` or create a new one like it
769769
<a name="Install-xDebug"></a>
770770
### Install xDebug
771771

772-
1 - First install `xDebug` in the Workspace and the PHP-FPM Containers:
772+
1 - First install `xDebug` in the Workspace and the PHP-FPM Containers:
773773
<br>
774774
a) open the `docker-compose.yml` file
775775
<br>
776-
b) search for the `INSTALL_XDEBUG` argument under the Workspace Container
776+
b) search for the `INSTALL_XDEBUG` argument under the Workspace Container
777777
<br>
778778
c) set it to `true`
779779
<br>
780-
d) search for the `INSTALL_XDEBUG` argument under the PHP-FPM Container
780+
d) search for the `INSTALL_XDEBUG` argument under the PHP-FPM Container
781781
<br>
782782
e) set it to `true`
783783

@@ -934,7 +934,7 @@ It should be like this:
934934
<a name="Install-Prestissimo"></a>
935935
### Install Prestissimo
936936

937-
[Prestissimo](https://github.com/hirak/prestissimo) is a plugin for composer which enables parallel install functionality.
937+
[Prestissimo](https://github.com/hirak/prestissimo) is a plugin for composer which enables parallel install functionality.
938938

939939
1 - Enable Running Global Composer Install during the Build:
940940

@@ -1006,7 +1006,7 @@ This little project was built by one man who has a full time job and many respon
10061006
<a name="Help"></a>
10071007
## Help & Questions
10081008

1009-
Join the chat room on [Gitter](https://gitter.im/LaraDock/laradock) and get help and support from the community.
1009+
Join the chat room on [Gitter](https://gitter.im/LaraDock/laradock) and get help and support from the community.
10101010

10111011
You can as well can open an [issue](https://github.com/laradock/laradock/issues) on Github (will be labeled as Question) and discuss it with people on [Gitter](https://gitter.im/LaraDock/laradock).
10121012

apache2/Dockerfile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
FROM webdevops/apache:ubuntu-16.04
2+
3+
MAINTAINER Eric Pfeiffer <computerfr33k@users.noreply.github.com>
4+
5+
ARG PHP_SOCKET="php-fpm:9000"
6+
7+
ENV WEB_PHP_SOCKET=$PHP_SOCKET
8+
9+
ENV WEB_DOCUMENT_ROOT=/var/www/laravel/public
10+
11+
EXPOSE 80 443
12+
13+
WORKDIR /var/www/laravel/public
14+
15+
ENTRYPOINT ["/opt/docker/bin/entrypoint.sh"]
16+
17+
CMD ["supervisord"]

docker-compose.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,23 @@ services:
5151
links:
5252
- php-fpm
5353

54+
### Apache Server Container ##################################
55+
56+
apache2:
57+
build:
58+
context: ./apache2
59+
args:
60+
- PHP_SOCKET="php-fpm:9000"
61+
volumes_from:
62+
- volumes_source
63+
volumes:
64+
- ./logs/apache2:/var/log/apache2
65+
ports:
66+
- "80:80"
67+
- "443:443"
68+
links:
69+
- php-fpm
70+
5471
### HHVM Container ##########################################
5572

5673
hhvm:

0 commit comments

Comments
 (0)