Disabled back restart, added back healthcheck
gitea/salix/test This commit looks good Details

This commit is contained in:
Juan Ferrer 2019-12-11 16:30:45 +01:00
parent 7fbefce3a6
commit 1b32c13c7f
2 changed files with 4 additions and 3 deletions

View File

@ -12,7 +12,6 @@ RUN apt-get update \
&& apt-get install -y --no-install-recommends \
nodejs \
&& apt-get purge -y --auto-remove \
curl \
gnupg2 \
&& rm -rf /var/lib/apt/lists/* \
&& npm -g install pm2
@ -34,3 +33,6 @@ COPY \
./
CMD ["pm2-runtime", "./back/process.yml"]
HEALTHCHECK --interval=1m --timeout=10s \
CMD curl -f http://localhost:3000/api/Applications/status || exit 1

View File

@ -1,6 +1,5 @@
apps:
- script: ./loopback/server/server.js
name: salix-back
cron_restart: '0 4 * * *'
instances: 1
max_restarts: 10
max_restarts: 5