use health-check docker image

This commit is contained in:
Karol Wypchlo 2022-04-07 14:41:18 +02:00
parent 1d50d51f29
commit 73dad081ea
No known key found for this signature in database
GPG Key ID: B515DE9EEBE241E1
2 changed files with 9 additions and 7 deletions

View File

@ -159,9 +159,11 @@ services:
- 3100 - 3100
health-check: health-check:
build: # uncomment "build" and comment out "image" to build from sources
context: ./packages/health-check # build:
dockerfile: Dockerfile # context: https://github.com/SkynetLabs/skynet-webportal.git#master
# dockerfile: ./packages/health-check/Dockerfile
image: skynetlabs/health-check
container_name: health-check container_name: health-check
restart: unless-stopped restart: unless-stopped
logging: *default-logging logging: *default-logging

View File

@ -11,13 +11,13 @@ ENV PATH="/usr/app/bin:${PATH}"
RUN echo '*/5 * * * * source /etc/environment ; /usr/app/bin/cli run critical >> /proc/1/fd/1' >> /etc/crontabs/root && \ RUN echo '*/5 * * * * source /etc/environment ; /usr/app/bin/cli run critical >> /proc/1/fd/1' >> /etc/crontabs/root && \
echo '0 * * * * source /etc/environment ; /usr/app/bin/cli run extended >> /proc/1/fd/1' >> /etc/crontabs/root echo '0 * * * * source /etc/environment ; /usr/app/bin/cli run extended >> /proc/1/fd/1' >> /etc/crontabs/root
COPY package.json yarn.lock ./ COPY packages/health-check/package.json packages/health-check/yarn.lock ./
RUN yarn --frozen-lockfile RUN yarn --frozen-lockfile
COPY src src COPY packages/health-check/src src
COPY cli cli COPY packages/health-check/cli cli
COPY bin bin COPY packages/health-check/bin bin
EXPOSE 3100 EXPOSE 3100
ENV NODE_ENV production ENV NODE_ENV production