chore: add docker healthcheck to deployment template
Build and Push Docker Image / build-and-push (push) Canceled after 0s
Build and Push Docker Image / build-and-push (push) Canceled after 0s
This commit is contained in:
1 parent
5e60ab53ba
commit
e98edaf675
1 file changed
+5
@@ -10,6 +10,11 @@ services:
|
||||
environment:
|
||||
# TokenWatch liest DB_USER, DB_PASSWORD, etc. und NTFY_URL aus der .env
|
||||
NODE_ENV: production
|
||||
healthcheck:
|
||||
test: ["CMD", "node", "-e", "require('http').get('http://127.0.0.1:3000/', (r) => process.exit(r.statusCode === 200 ? 0 : 1)).on('error', () => process.exit(1))"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
networks:
|
||||
- jannik-cloud-net
|
||||
|
||||
|
||||
Reference in new issue
Block a user