Liman to dst

master
May B. 2020-03-14 17:41:15 +01:00
parent cd3ca6b155
commit b7e19d61b0
5 changed files with 7 additions and 35 deletions

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "dst"]
path = dst
url = https://git.wadza.fr/me/dst.git

View File

@ -58,7 +58,7 @@ services:
build:
context: gotify
liman:
image: local/liman
dst:
image: local/dst
build:
context: liman
context: dst

1
dst Submodule

@ -0,0 +1 @@
Subproject commit a9721d695cbf6e9b6884c1ae77e3c2a3bb7b022e

View File

@ -1,7 +0,0 @@
FROM salihciftci/liman
COPY ./healthcheck.js /
RUN chmod a+x /healthcheck.js
HEALTHCHECK CMD node /healthcheck.js

View File

@ -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();