We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 268905b commit f80a126Copy full SHA for f80a126
2 files changed
5.4/docker-compose.yml
@@ -0,0 +1,8 @@
1
+php:
2
+ build: .
3
+ working_dir: /var/www/app
4
+ environment:
5
+ PHP_FPM_USER: root
6
+ PHP_FPM_PORT: 9000
7
+ PHP_ERROR_REPORTING: E_ALL
8
+ ENVIRONMENT: staging
5.4/run.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+variables=( "PHP_FPM_USER" "PHP_FPM_PORT" "PHP_ERROR_REPORTING" "ENVIRONMENT" )
+for var in "${variables[@]}"
+do
+ :
+ sed -i "s|%$var%|${!var}|g" /etc/php5/fpm/pool.d/www.conf
9
+done
10
11
+/usr/sbin/php5-fpm --allow-to-run-as-root -c /etc/php5/fpm --nodaemonize
0 commit comments