Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
laradock
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kerwin
laradock
Commits
ef857998
Commit
ef857998
authored
Jul 24, 2016
by
orette
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added HHVM container and used environment variable for switching
parent
4d245210
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
62 additions
and
4 deletions
+62
-4
.env
.env
+2
-1
docker-compose.yml
docker-compose.yml
+16
-2
Dockerfile
hhvm/Dockerfile
+21
-0
server.ini
hhvm/server.ini
+20
-0
Dockerfile
nginx/Dockerfile
+3
-1
No files found.
.env
View file @
ef857998
INSTALL_PRESTISSIMO=false
\ No newline at end of file
INSTALL_PRESTISSIMO=false
PHP_PROCESS_MANAGER=php-fpm
docker-compose.yml
View file @
ef857998
...
...
@@ -5,7 +5,10 @@ services:
### Nginx Server Container ##################################
nginx
:
build
:
./nginx
build
:
context
:
./nginx
args
:
-
PHP_UPSTREAM=${PHP_PROCESS_MANAGER}
volumes_from
:
-
volumes_source
volumes
:
...
...
@@ -14,7 +17,7 @@ services:
-
"
80:80"
-
"
443:443"
links
:
-
php-fpm
-
${PHP_PROCESS_MANAGER}
### PHP-FPM Container #######################################
...
...
@@ -29,6 +32,17 @@ services:
links
:
-
workspace
### HHVM Container ##########################################
hhvm
:
build
:
./hhvm
volumes_from
:
-
volumes_source
expose
:
-
"
9000"
links
:
-
workspace
### MySQL Container #########################################
mysql
:
...
...
hhvm/Dockerfile
0 → 100644
View file @
ef857998
FROM
ubuntu:14.04
RUN
apt-key adv
--recv-keys
--keyserver
hkp://keyserver.ubuntu.com:80 0x5a16e7281be7a449
RUN
apt-get update
-y
&&
apt-get
install
-y
software-properties-common
\
&&
add-apt-repository
"deb http://dl.hhvm.com/ubuntu
$(
lsb_release
-sc
)
main"
\
&&
apt-get update
-y
\
&&
apt-get
install
-y
hhvm
\
&&
apt-get clean
\
&&
rm
-rf
/var/lib/apt/lists/
*
RUN
mkdir
-p
/var/www/laravel
ADD
server.ini /etc/hhvm/server.ini
RUN
usermod
-u
1000 www-data
WORKDIR
/var/www/laravel
CMD
["/usr/bin/hhvm", "-m", "server", "-c", "/etc/hhvm/server.ini"]
EXPOSE
9000
hhvm/server.ini
0 → 100644
View file @
ef857998
; php options
pid
=
/var/run/hhvm/pid
; hhvm specific
hhvm.server.port
=
9000
hhvm.server.type
=
fastcgi
hhvm.server.default_document
=
index.php
hhvm.server.error_document404
=
index.php
hhvm.server.upload.upload_max_file_size
=
25M
hhvm.log.level
=
Error
hhvm.log.header
=
true
hhvm.log.access
[default][file]
=
/var/log/hhvm/access.log
hhvm.log.access
[default][format]
=
"%h
%l
%u
%t
\"%r\"
%>s
%b"
hhvm.server.source_root
=
/var/www/laravel/public
hhvm.repo.central.path
=
/var/run/hhvm/hhvm.hhbc
; Uncomment to log to files instead of STDOUT
;hhvm.log.use_log_file = true
;hhvm.log.file = /var/log/hhvm/error.log
nginx/Dockerfile
View file @
ef857998
...
...
@@ -5,7 +5,9 @@ MAINTAINER Mahmoud Zalt <mahmoud@zalt.me>
ADD
nginx.conf /etc/nginx/
ADD
laravel.conf /etc/nginx/sites-available/
RUN
echo
"upstream php-upstream { server php-fpm:9000; }"
>
/etc/nginx/conf.d/upstream.conf
ARG
PHP_UPSTREAM
RUN
echo
"upstream php-upstream { server
${
PHP_UPSTREAM
}
:9000; }"
>
/etc/nginx/conf.d/upstream.conf
RUN
usermod
-u
1000 www-data
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment