diff --git a/Dockerfile-unit.template b/Dockerfile-unit.template index e9ed8dc..b8090dd 100644 --- a/Dockerfile-unit.template +++ b/Dockerfile-unit.template @@ -105,6 +105,7 @@ RUN \ "listeners": { "*:9000": { "pass": "routes/main" } }, \ "listeners": { "*:9001": { "pass": "routes/dynamic" } }, \ "listeners": { "*:9002": { "pass": "routes/static" } }, \ + "listeners": { "*:9003": { "pass": "routes/direct" } }, \ "routes": { \ "main": [ \ { "match": { "uri": "/console.php" }, "action": { "pass": "applications/direct_php" } }, \ @@ -127,6 +128,9 @@ RUN \ "dynamic": [ \ { "action": { "pass": "applications/index_php" } } \ ], \ + "direct": [ \ + { "action": { "pass": "applications/direct_php" } } \ + ], \ }, \ "applications": { \ "index_php": { \ @@ -152,7 +156,7 @@ RUN \ rm /var/www/html/index.php /var/www/html/index.php.remove; \ } -EXPOSE 9000 9001 9002 +EXPOSE 9000 9001 9002 9003 ENTRYPOINT ["/entrypoint.sh"] STOPSIGNAL SIGTERM CMD ["unitd", "--no-daemon", "--control", "unix:/var/run/control.unit.sock"]