Skip to content

Commit

Permalink
fix: postgres port.
Browse files Browse the repository at this point in the history
  • Loading branch information
morganney committed Jan 5, 2024
1 parent 9c102c4 commit b84840b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ COPY packages/api/initdb.d /docker-entrypoint-initdb.d
EXPOSE 5432

FROM redis:7.2.3 AS redis
EXPOSE 6739
EXPOSE 6379

FROM node:20.10-bookworm AS builder
ARG VITE_GOOG_CLIENT_ID
Expand Down
2 changes: 2 additions & 0 deletions packages/api/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ app.get('/health', async (req, res) => {
uptime: uptime()
})
} catch (err) {
logger.error(err, 'Health check request failed.')

return res.status(503).json(new errors.ServiceUnavailable())
}
})
Expand Down

0 comments on commit b84840b

Please sign in to comment.