Added healthcheck.js to Dockerfile
This commit is contained in:
parent
3f19804506
commit
b53a79790f
5
.gitignore
vendored
Normal file
5
.gitignore
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
healthchecks.md
|
||||||
|
node_modules/
|
||||||
|
notes.js
|
||||||
|
package-lock.json
|
||||||
|
package.json
|
||||||
@ -30,6 +30,7 @@ COPY http-proxy.conf .
|
|||||||
WORKDIR /flosight
|
WORKDIR /flosight
|
||||||
COPY start.sh .
|
COPY start.sh .
|
||||||
COPY flocore-node.json .
|
COPY flocore-node.json .
|
||||||
|
COPY healthcheck.js .
|
||||||
|
|
||||||
RUN mkdir /data
|
RUN mkdir /data
|
||||||
RUN chmod 755 /flosight/start.sh
|
RUN chmod 755 /flosight/start.sh
|
||||||
@ -37,5 +38,5 @@ RUN chmod 755 /flosight/start.sh
|
|||||||
# Expose used ports
|
# Expose used ports
|
||||||
EXPOSE 80 443 3001 7312 7313 17312 17313 17413 41289
|
EXPOSE 80 443 3001 7312 7313 17312 17313 17413 41289
|
||||||
|
|
||||||
HEALTHCHECK CMD curl --fail http://localhost:3001/api/sync || exit 1
|
HEALTHCHECK CMD node healthcheck.js
|
||||||
CMD ["/flosight/start.sh"]
|
CMD ["/flosight/start.sh"]
|
||||||
Loading…
Reference in New Issue
Block a user