This commit is contained in:
parent
3eda2c7d68
commit
a76ad6f775
@ -103,9 +103,12 @@ RUN \
|
||||
&& unitd --control unix:/var/run/control.unit.sock \
|
||||
&& curl -X PUT --data-binary \
|
||||
'{ \
|
||||
"listeners": { "*:9000": { "pass": "routes/main" } }, \
|
||||
"listeners": { "*:9001": { "pass": "routes/dynamic" } }, \
|
||||
"listeners": { "*:9002": { "pass": "routes/static" } }, \
|
||||
"listeners": { \
|
||||
"*:9000": { "pass": "routes/main" }, \
|
||||
"*:9001": { "pass": "routes/dynamic" }, \
|
||||
"*:9002": { "pass": "routes/static" }, \
|
||||
"*:9003": { "pass": "routes/direct" } \
|
||||
}, \
|
||||
"routes": { \
|
||||
"main": [ \
|
||||
{ "match": { "uri": "/console.php" }, "action": { "pass": "applications/direct_php" } }, \
|
||||
@ -128,6 +131,9 @@ RUN \
|
||||
"dynamic": [ \
|
||||
{ "action": { "pass": "applications/index_php" } } \
|
||||
], \
|
||||
"direct": [ \
|
||||
{ "action": { "pass": "applications/direct_php" } } \
|
||||
], \
|
||||
}, \
|
||||
"applications": { \
|
||||
"index_php": { \
|
||||
@ -153,7 +159,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"]
|
||||
|
@ -103,9 +103,12 @@ RUN \
|
||||
&& unitd --control unix:/var/run/control.unit.sock \
|
||||
&& curl -X PUT --data-binary \
|
||||
'{ \
|
||||
"listeners": { "*:9000": { "pass": "routes/main" } }, \
|
||||
"listeners": { "*:9001": { "pass": "routes/dynamic" } }, \
|
||||
"listeners": { "*:9002": { "pass": "routes/static" } }, \
|
||||
"listeners": { \
|
||||
"*:9000": { "pass": "routes/main" }, \
|
||||
"*:9001": { "pass": "routes/dynamic" }, \
|
||||
"*:9002": { "pass": "routes/static" }, \
|
||||
"*:9003": { "pass": "routes/direct" } \
|
||||
}, \
|
||||
"routes": { \
|
||||
"main": [ \
|
||||
{ "match": { "uri": "/console.php" }, "action": { "pass": "applications/direct_php" } }, \
|
||||
@ -128,6 +131,9 @@ RUN \
|
||||
"dynamic": [ \
|
||||
{ "action": { "pass": "applications/index_php" } } \
|
||||
], \
|
||||
"direct": [ \
|
||||
{ "action": { "pass": "applications/direct_php" } } \
|
||||
], \
|
||||
}, \
|
||||
"applications": { \
|
||||
"index_php": { \
|
||||
@ -153,7 +159,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"]
|
||||
|
@ -103,9 +103,12 @@ RUN \
|
||||
&& unitd --control unix:/var/run/control.unit.sock \
|
||||
&& curl -X PUT --data-binary \
|
||||
'{ \
|
||||
"listeners": { "*:9000": { "pass": "routes/main" } }, \
|
||||
"listeners": { "*:9001": { "pass": "routes/dynamic" } }, \
|
||||
"listeners": { "*:9002": { "pass": "routes/static" } }, \
|
||||
"listeners": { \
|
||||
"*:9000": { "pass": "routes/main" }, \
|
||||
"*:9001": { "pass": "routes/dynamic" }, \
|
||||
"*:9002": { "pass": "routes/static" }, \
|
||||
"*:9003": { "pass": "routes/direct" } \
|
||||
}, \
|
||||
"routes": { \
|
||||
"main": [ \
|
||||
{ "match": { "uri": "/console.php" }, "action": { "pass": "applications/direct_php" } }, \
|
||||
@ -128,6 +131,9 @@ RUN \
|
||||
"dynamic": [ \
|
||||
{ "action": { "pass": "applications/index_php" } } \
|
||||
], \
|
||||
"direct": [ \
|
||||
{ "action": { "pass": "applications/direct_php" } } \
|
||||
], \
|
||||
}, \
|
||||
"applications": { \
|
||||
"index_php": { \
|
||||
@ -153,7 +159,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"]
|
||||
|
@ -103,9 +103,12 @@ RUN \
|
||||
&& unitd --control unix:/var/run/control.unit.sock \
|
||||
&& curl -X PUT --data-binary \
|
||||
'{ \
|
||||
"listeners": { "*:9000": { "pass": "routes/main" } }, \
|
||||
"listeners": { "*:9001": { "pass": "routes/dynamic" } }, \
|
||||
"listeners": { "*:9002": { "pass": "routes/static" } }, \
|
||||
"listeners": { \
|
||||
"*:9000": { "pass": "routes/main" }, \
|
||||
"*:9001": { "pass": "routes/dynamic" }, \
|
||||
"*:9002": { "pass": "routes/static" }, \
|
||||
"*:9003": { "pass": "routes/direct" } \
|
||||
}, \
|
||||
"routes": { \
|
||||
"main": [ \
|
||||
{ "match": { "uri": "/console.php" }, "action": { "pass": "applications/direct_php" } }, \
|
||||
@ -128,6 +131,9 @@ RUN \
|
||||
"dynamic": [ \
|
||||
{ "action": { "pass": "applications/index_php" } } \
|
||||
], \
|
||||
"direct": [ \
|
||||
{ "action": { "pass": "applications/direct_php" } } \
|
||||
], \
|
||||
}, \
|
||||
"applications": { \
|
||||
"index_php": { \
|
||||
@ -153,7 +159,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"]
|
||||
|
Loading…
x
Reference in New Issue
Block a user