diff options
Diffstat (limited to '.docker')
-rw-r--r-- | .docker/nginx.conf | 5 | ||||
-rw-r--r-- | .docker/php-fpm.conf | 16 | ||||
-rwxr-xr-x | .docker/services.d/.s6-svscan/finish | 2 | ||||
-rwxr-xr-x | .docker/services.d/nginx/run | 2 | ||||
-rwxr-xr-x | .docker/services.d/php-fpm/run | 2 | ||||
-rw-r--r-- | .docker/supervised.conf | 13 |
6 files changed, 25 insertions, 15 deletions
diff --git a/.docker/nginx.conf b/.docker/nginx.conf index e8754d9b..07fba33f 100644 --- a/.docker/nginx.conf +++ b/.docker/nginx.conf | |||
@@ -1,6 +1,7 @@ | |||
1 | user www-data www-data; | 1 | user nginx nginx; |
2 | daemon off; | 2 | daemon off; |
3 | worker_processes 4; | 3 | worker_processes 4; |
4 | pid /var/run/nginx.pid; | ||
4 | 5 | ||
5 | events { | 6 | events { |
6 | worker_connections 768; | 7 | worker_connections 768; |
@@ -59,7 +60,7 @@ http { | |||
59 | fastcgi_split_path_info ^(.+\.php)(/.+)$; | 60 | fastcgi_split_path_info ^(.+\.php)(/.+)$; |
60 | 61 | ||
61 | # filter and proxy PHP requests to PHP-FPM | 62 | # filter and proxy PHP requests to PHP-FPM |
62 | fastcgi_pass unix:/var/run/php5-fpm.sock; | 63 | fastcgi_pass unix:/var/run/php-fpm.sock; |
63 | fastcgi_index index.php; | 64 | fastcgi_index index.php; |
64 | include fastcgi.conf; | 65 | include fastcgi.conf; |
65 | } | 66 | } |
diff --git a/.docker/php-fpm.conf b/.docker/php-fpm.conf new file mode 100644 index 00000000..0843c164 --- /dev/null +++ b/.docker/php-fpm.conf | |||
@@ -0,0 +1,16 @@ | |||
1 | [global] | ||
2 | daemonize = no | ||
3 | |||
4 | [www] | ||
5 | user = nginx | ||
6 | group = nginx | ||
7 | listen.owner = nginx | ||
8 | listen.group = nginx | ||
9 | catch_workers_output = yes | ||
10 | listen = /var/run/php-fpm.sock | ||
11 | pm = dynamic | ||
12 | pm.max_children = 20 | ||
13 | pm.start_servers = 1 | ||
14 | pm.min_spare_servers = 1 | ||
15 | pm.max_spare_servers = 3 | ||
16 | pm.max_requests = 2048 | ||
diff --git a/.docker/services.d/.s6-svscan/finish b/.docker/services.d/.s6-svscan/finish new file mode 100755 index 00000000..1dadeeaf --- /dev/null +++ b/.docker/services.d/.s6-svscan/finish | |||
@@ -0,0 +1,2 @@ | |||
1 | #!/bin/sh | ||
2 | /bin/true | ||
diff --git a/.docker/services.d/nginx/run b/.docker/services.d/nginx/run new file mode 100755 index 00000000..21e7b0d6 --- /dev/null +++ b/.docker/services.d/nginx/run | |||
@@ -0,0 +1,2 @@ | |||
1 | #!/bin/execlineb -P | ||
2 | nginx | ||
diff --git a/.docker/services.d/php-fpm/run b/.docker/services.d/php-fpm/run new file mode 100755 index 00000000..21dd0107 --- /dev/null +++ b/.docker/services.d/php-fpm/run | |||
@@ -0,0 +1,2 @@ | |||
1 | #!/bin/execlineb -P | ||
2 | php-fpm7 -F | ||
diff --git a/.docker/supervised.conf b/.docker/supervised.conf deleted file mode 100644 index 5acd9795..00000000 --- a/.docker/supervised.conf +++ /dev/null | |||
@@ -1,13 +0,0 @@ | |||
1 | [program:php5-fpm] | ||
2 | command=/usr/sbin/php5-fpm -F | ||
3 | priority=5 | ||
4 | autostart=true | ||
5 | autorestart=true | ||
6 | |||
7 | [program:nginx] | ||
8 | command=/usr/sbin/nginx | ||
9 | priority=10 | ||
10 | autostart=true | ||
11 | autorestart=true | ||
12 | stdout_events_enabled=true | ||
13 | stderr_events_enabled=true | ||