Skip to content

Commit

Permalink
healthcheck implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
DevRico003 committed Jan 15, 2024
1 parent 7cf9883 commit 707ea90
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions config/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,6 @@ accessories:
directories:
- data:/data/db

# healthcheck:
# path: /api/up
# port: 80
healthcheck:
path: /api/up
port: 443
3 changes: 3 additions & 0 deletions src/pages/api/up.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default function handler(req, res) {
res.status(200).send('Up!');
}

0 comments on commit 707ea90

Please sign in to comment.