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
dfe9ced5
Commit
dfe9ced5
authored
Jan 04, 2021
by
thomas craipeau
Browse files
docker front apache
parent
27948a80
Changes
5
Hide whitespace changes
Inline
Side-by-side
docker-compose-apache.yml
0 → 100644
View file @
dfe9ced5
version
:
'
2'
services
:
mongo
:
image
:
mongo:3.6
#volumes:
# - ./code/data/db:/data/db
volumes
:
-
mongodb:/data/db
-
mongodb_config:/data/configdb
command
:
mongod
ports
:
-
"
5017:27017"
front
:
build
:
docker-front-apache
container_name
:
frontapachephp7
ports
:
-
"
5080:80"
-
"
5443:443"
#- "5901:9001"
volumes
:
-
./code:/code
#- ./code/data/db:/data/db
-
mongodb:/data/db
-
./code/log:/var/log/apache2
depends_on
:
-
mongo
volumes
:
mongodb
:
mongodb_config
:
\ No newline at end of file
docker-front-apache/Dockerfile
0 → 100644
View file @
dfe9ced5
FROM
php:7.2-apache-stretch
ENV
COMPOSER_ALLOW_SUPERUSER=1
EXPOSE
80 443 9001
RUN
apt-get update
&&
apt-get
install
-my
\
nginx
\
supervisor
\
git
\
zip
\
gnupg
\
iputils-ping
\
libicu-dev
\
unzip
\
wget
\
nano
\
libmcrypt-dev
\
libfreetype6-dev
\
libjpeg62-turbo-dev
\
libpng-dev
\
libcurl4-gnutls-dev
\
curl
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
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-install curl
# 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/conf/apache.conf
0 → 100644
View file @
dfe9ced5
<
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/conf/php.ini
0 → 100644
View file @
dfe9ced5
; Enable XDebug
;zend_extension = xdebug.so
; 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/conf/vhost.conf
0 → 100644
View file @
dfe9ced5
<
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
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