This commit is contained in:
parent
9584d2faa1
commit
8308fa533f
@ -105,6 +105,7 @@ RUN \
|
|||||||
"listeners": { "*:9000": { "pass": "routes/main" } }, \
|
"listeners": { "*:9000": { "pass": "routes/main" } }, \
|
||||||
"listeners": { "*:9001": { "pass": "routes/dynamic" } }, \
|
"listeners": { "*:9001": { "pass": "routes/dynamic" } }, \
|
||||||
"listeners": { "*:9002": { "pass": "routes/static" } }, \
|
"listeners": { "*:9002": { "pass": "routes/static" } }, \
|
||||||
|
"listeners": { "*:9003": { "pass": "routes/direct" } }, \
|
||||||
"routes": { \
|
"routes": { \
|
||||||
"main": [ \
|
"main": [ \
|
||||||
{ "match": { "uri": "/console.php" }, "action": { "pass": "applications/direct_php" } }, \
|
{ "match": { "uri": "/console.php" }, "action": { "pass": "applications/direct_php" } }, \
|
||||||
@ -127,6 +128,9 @@ RUN \
|
|||||||
"dynamic": [ \
|
"dynamic": [ \
|
||||||
{ "action": { "pass": "applications/index_php" } } \
|
{ "action": { "pass": "applications/index_php" } } \
|
||||||
], \
|
], \
|
||||||
|
"direct": [ \
|
||||||
|
{ "action": { "pass": "applications/direct_php" } } \
|
||||||
|
], \
|
||||||
}, \
|
}, \
|
||||||
"applications": { \
|
"applications": { \
|
||||||
"index_php": { \
|
"index_php": { \
|
||||||
@ -152,7 +156,7 @@ RUN \
|
|||||||
rm /var/www/html/index.php /var/www/html/index.php.remove; \
|
rm /var/www/html/index.php /var/www/html/index.php.remove; \
|
||||||
}
|
}
|
||||||
|
|
||||||
EXPOSE 9000 9001 9002
|
EXPOSE 9000 9001 9002 9003
|
||||||
ENTRYPOINT ["/entrypoint.sh"]
|
ENTRYPOINT ["/entrypoint.sh"]
|
||||||
STOPSIGNAL SIGTERM
|
STOPSIGNAL SIGTERM
|
||||||
CMD ["unitd", "--no-daemon", "--control", "unix:/var/run/control.unit.sock"]
|
CMD ["unitd", "--no-daemon", "--control", "unix:/var/run/control.unit.sock"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user