Liman to dst
This commit is contained in:
parent
cd3ca6b155
commit
b7e19d61b0
|
@ -0,0 +1,3 @@
|
||||||
|
[submodule "dst"]
|
||||||
|
path = dst
|
||||||
|
url = https://git.wadza.fr/me/dst.git
|
|
@ -58,7 +58,7 @@ services:
|
||||||
build:
|
build:
|
||||||
context: gotify
|
context: gotify
|
||||||
|
|
||||||
liman:
|
dst:
|
||||||
image: local/liman
|
image: local/dst
|
||||||
build:
|
build:
|
||||||
context: liman
|
context: dst
|
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit a9721d695cbf6e9b6884c1ae77e3c2a3bb7b022e
|
|
@ -1,7 +0,0 @@
|
||||||
FROM salihciftci/liman
|
|
||||||
|
|
||||||
COPY ./healthcheck.js /
|
|
||||||
|
|
||||||
RUN chmod a+x /healthcheck.js
|
|
||||||
|
|
||||||
HEALTHCHECK CMD node /healthcheck.js
|
|
|
@ -1,25 +0,0 @@
|
||||||
var http = require("http");
|
|
||||||
|
|
||||||
var options = {
|
|
||||||
host: "localhost",
|
|
||||||
port: "5000",
|
|
||||||
path: "/login",
|
|
||||||
timeout: 2000
|
|
||||||
};
|
|
||||||
|
|
||||||
var request = http.request(options, (res) => {
|
|
||||||
if (res.statusCode == 200) {
|
|
||||||
process.exit(0);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
console.log(`STATUS: ${res.statusCode}`);
|
|
||||||
process.exit(1);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
request.on('error', function (err) {
|
|
||||||
console.log('ERROR', err);
|
|
||||||
process.exit(1);
|
|
||||||
});
|
|
||||||
|
|
||||||
request.end();
|
|
Loading…
Reference in New Issue