Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Pixel Humain
docker
Commits
c9bda3dd
Commit
c9bda3dd
authored
Jan 06, 2021
by
thomas craipeau
Browse files
update
parent
94c4041a
Changes
7
Hide whitespace changes
Inline
Side-by-side
docker-compose-php5.6-apache.yml
0 → 100644
View file @
c9bda3dd
version
:
'
2'
services
:
mongo
:
image
:
mongo:3.6
volumes
:
-
./code:/code
-
mongodb:/data/db
-
mongodb_config:/data/configdb
command
:
mongod
ports
:
-
"
5017:27017"
front
:
build
:
docker-front-apache-php56
container_name
:
frontapachephp56
ports
:
-
"
5080:80"
-
"
5443:443"
volumes
:
-
./code:/code
-
mongodb:/data/db
-
./code/log:/var/log/apache2
depends_on
:
-
mongo
volumes
:
mongodb
:
mongodb_config
:
\ No newline at end of file
docker-front-apache-php56/Dockerfile
0 → 100644
View file @
c9bda3dd
FROM
node:latest
AS
node
FROM
php:5.6-apache-stretch
COPY
--from=node /usr/local/lib/node_modules /usr/local/lib/node_modules
COPY
--from=node /usr/local/bin/node /usr/local/bin/node
RUN
ln
-s
/usr/local/lib/node_modules/npm/bin/npm-cli.js /usr/local/bin/npm
ENV
COMPOSER_ALLOW_SUPERUSER=1
EXPOSE
80 443 9001
RUN
apt-get update
&&
apt-get
install
-my
\
git
\
zip
\
gnupg
\
iputils-ping
\
libicu-dev
\
unzip
\
wget
\
nano
\
curl
\
libmcrypt-dev
\
libfreetype6-dev
\
libjpeg62-turbo-dev
\
libpng-dev
\
libcurl4-gnutls-dev
RUN
pecl channel-update pecl.php.net & pecl
install
redis-4.0.1
\
&&
pecl
install
mongodb-1.7.4
RUN
docker-php-ext-configure gd
--with-freetype-dir
=
/usr/include/
--with-jpeg-dir
=
/usr/include/
\
&&
docker-php-ext-install
-j
$(
nproc
)
gd
\
&&
docker-php-ext-install curl mcrypt
\
&&
docker-php-ext-enable redis mongodb curl mcrypt
# composer
RUN
curl
-sS
https://getcomposer.org/installer | php
--
--install-dir
=
/usr/local/bin
--filename
=
composer
&&
\
apt-get clean
&&
rm
-rf
/var/lib/apt/lists/
*
/tmp/
*
/var/tmp/
*
# PHP Extensions
COPY
conf/php.ini /usr/local/etc/php/conf.d/app.ini
# Apache
COPY
conf/vhost.conf /etc/apache2/sites-available/000-default.conf
COPY
conf/apache.conf /etc/apache2/conf-available/z-app.conf
RUN
a2enmod rewrite remoteip
&&
\
a2enconf z-app
\ No newline at end of file
docker-front-apache-php56/conf/apache.conf
0 → 100644
View file @
c9bda3dd
<
Directory
/
code
/
pixelhumain
/
ph
>
Options
-
Indexes
+
FollowSymLinks
AllowOverride
All
Require
all
granted
</
Directory
>
LogFormat
"%a %l %u %t \"
%
r
\
" %>s %O \"
%{
Referer
}
i
\
" \"
%{
User
-
Agent
}
i
\
""
combined
docker-front-apache-php56/conf/php.ini
0 → 100644
View file @
c9bda3dd
; Enable XDebug
;zend_extension = xdebug.so
date.timezone
=
'Europe/Paris'
; XDebug configuration
xdebug.remote_enable
=
1
xdebug.renite_enable
=
1
xdebug.max_nesting_level
=
1000
xdebug.profiler_enable_trigger
=
1
xdebug.profiler_output_dir
=
"/var/log"
runkit.internal_override
=
1
; Show PHP errors
display_errors
=
on
error_reporting
=
E_ALL & ~E_WARNING
; Use PHP short tags
short_open_tag
=
on
output_buffering
=
on
docker-front-apache-php56/conf/vhost.conf
0 → 100644
View file @
c9bda3dd
<
VirtualHost
*:
80
>
DocumentRoot
/
code
/
pixelhumain
/
ph
ErrorLog
${
APACHE_LOG_DIR
}/
error
.
log
CustomLog
${
APACHE_LOG_DIR
}/
access
.
log
combined
</
VirtualHost
>
\ No newline at end of file
docker-front-apache/Dockerfile
View file @
c9bda3dd
...
...
@@ -10,8 +10,6 @@ ENV COMPOSER_ALLOW_SUPERUSER=1
EXPOSE
80 443 9001
RUN
apt-get update
&&
apt-get
install
-my
\
nginx
\
supervisor
\
git
\
zip
\
gnupg
\
...
...
@@ -30,13 +28,11 @@ RUN apt-get update && apt-get install -my \
RUN
pecl
install
redis-4.0.1
\
&&
pecl
install
xdebug-2.6.0
\
&&
pecl
install
mongodb
\
&&
pecl
install
mcrypt-1.0.2
RUN
pecl
install
runkit7-3.1.0a1
&&
pecl
install
mcrypt-1.0.2
RUN
docker-php-ext-configure gd
--with-freetype-dir
=
/usr/include/
--with-jpeg-dir
=
/usr/include/
\
&&
docker-php-ext-install
-j
$(
nproc
)
gd
\
&&
docker-php-ext-enable redis xdebug mongodb mcrypt
runkit7
\
&&
docker-php-ext-enable redis xdebug mongodb mcrypt
\
&&
docker-php-ext-install curl
# composer
...
...
docker-front-apache/conf/php.ini
View file @
c9bda3dd
; Enable XDebug
;zend_extension = xdebug.so
date.timezone
=
'Europe/Paris'
; XDebug configuration
xdebug.remote_enable
=
1
xdebug.renite_enable
=
1
...
...
Write
Preview
Supports
Markdown
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