Skip to content

Commit

Permalink
Add an app.json config for dokku to enable health checks
Browse files Browse the repository at this point in the history
  • Loading branch information
juyrjola committed Oct 19, 2024
1 parent f9ddc08 commit e680434
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ build-storybook.log
/.env*
/Attic/
/.envrc
/public/static/themes/
/public/static/themes
/.rgignore
/test-results/
/playwright-report/
Expand Down
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ COPY --from=builder --chown=nextjs:nodejs /app/public ./public

COPY ./docker/start-server.sh /entrypoint.sh
COPY ./docker/Caddyfile /etc/caddy/
COPY ./docker/dokku-app.json ./app.json

ARG BUILD_ID
ARG SENTRY_RELEASE
Expand Down
11 changes: 11 additions & 0 deletions docker/dokku-app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"web": [
{
"type": "startup",
"name": "web check",
"description": "Checking if the app responds to the /_health endpoint",
"path": "/_health",
"attempts": 3
}
]
}
1 change: 1 addition & 0 deletions e2e-tests/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/playwright-report/
/test-results/
test-results.json

0 comments on commit e680434

Please sign in to comment.