-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated docker info, added config files
- Loading branch information
Showing
6 changed files
with
96 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,6 @@ FROM php:7.0-fpm | |
MAINTAINER "Zak Henry" <[email protected]> | ||
|
||
RUN mkdir -p /data | ||
VOLUME ["/data"] | ||
WORKDIR /data | ||
|
||
RUN apt-get update && \ | ||
|
@@ -12,7 +11,8 @@ RUN apt-get update && \ | |
libpq-dev \ | ||
libmcrypt-dev \ | ||
libxml2-dev \ | ||
python-pip | ||
python-pip \ | ||
nginx | ||
|
||
RUN pip install --upgrade supervisor supervisor-stdout | ||
|
||
|
@@ -25,22 +25,23 @@ RUN pecl install xdebug-beta && \ | |
ADD config/memory.ini /opt/etc/memory.ini | ||
ADD config/xdebug.ini /opt/etc/xdebug.ini | ||
|
||
RUN sed -i "s|%data-root%|/data|" /opt/etc/xdebug.ini | ||
|
||
RUN cat /opt/etc/memory.ini >> /usr/local/etc/php/conf.d/memory.ini | ||
|
||
|
||
# Configure nginx | ||
ADD config/nginx.conf /etc/nginx/nginx.conf | ||
|
||
# Add supervisor config file | ||
ADD config/supervisord.conf /etc/supervisor/supervisord.conf | ||
|
||
|
||
# Startup scripts | ||
# supervisord startup script | ||
ADD config/supervisord-start.sh /opt/bin/supervisord-start.sh | ||
RUN chmod u=rwx /opt/bin/supervisord-start.sh | ||
# Nginx startup script | ||
ADD config/nginx-start.sh /opt/bin/nginx-start.sh | ||
RUN chmod u=rwx /opt/bin/nginx-start.sh | ||
# PHP startup script | ||
ADD config/webserver-start.sh /opt/bin/webserver-start.sh | ||
RUN chmod u=rwx /opt/bin/webserver-start.sh | ||
|
||
EXPOSE 80 | ||
ADD config/php-start.sh /opt/bin/php-start.sh | ||
RUN chmod u=rwx /opt/bin/php-start.sh | ||
|
||
ENTRYPOINT ["/opt/bin/webserver-start.sh"] | ||
ENTRYPOINT ["/opt/bin/supervisord-start.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
user www-data; | ||
worker_processes 4; | ||
pid /run/nginx.pid; | ||
daemon off; | ||
|
||
events { | ||
worker_connections 768; | ||
# multi_accept on; | ||
} | ||
|
||
http { | ||
|
||
upstream fastgci_backend { | ||
server localhost:9000; | ||
} | ||
|
||
## | ||
# Basic Settings | ||
## | ||
|
||
sendfile off; | ||
tcp_nopush on; | ||
tcp_nodelay on; | ||
keepalive_timeout 65; | ||
types_hash_max_size 2048; | ||
# server_tokens off; | ||
|
||
|
||
# server_names_hash_bucket_size 64; | ||
# server_name_in_redirect off; | ||
|
||
include /etc/nginx/mime.types; | ||
default_type application/octet-stream; | ||
|
||
## | ||
# Logging Settings | ||
## | ||
|
||
access_log /var/log/access.log; | ||
error_log /var/log/error.log warn; | ||
|
||
## | ||
# Gzip Settings | ||
## | ||
|
||
gzip on; | ||
gzip_disable "msie6"; | ||
|
||
# gzip_vary on; | ||
# gzip_proxied any; | ||
# gzip_comp_level 6; | ||
# gzip_buffers 16 8k; | ||
# gzip_http_version 1.1; | ||
# gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript; | ||
|
||
## | ||
# nginx-naxsi config | ||
## | ||
# Uncomment it if you installed nginx-naxsi | ||
## | ||
|
||
#include /etc/nginx/naxsi_core.rules; | ||
|
||
## | ||
# nginx-passenger config | ||
## | ||
# Uncomment it if you installed nginx-passenger | ||
## | ||
|
||
#passenger_root /usr; | ||
#passenger_ruby /usr/bin/ruby; | ||
|
||
## | ||
# Virtual Host Configs | ||
## | ||
|
||
include /etc/nginx/conf.d/*.conf; | ||
include /etc/nginx/sites-enabled/*; | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
|
||
[xdebug] | ||
xdebug.enable=1 | ||
xdebug.enable = 1 | ||
xdebug.remote_enable = 1 | ||
xdebug.remote_port = 9001 | ||
xdebug.profiler_enable = 0 | ||
xdebug.remote_connect_back = 1 | ||
xdebug.idekey = "PHPSTORM" | ||
xdebug.remote_log = %data-root%/logs/xdebug.log | ||
xdebug.remote_log = /var/log/xdebug.log |