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

This commit is contained in:
Juan Ferrer 2019-12-11 16:51:45 +01:00
parent ad7636b879
commit 9c4f776281
2 changed files with 4 additions and 2 deletions

View File

@ -34,3 +34,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