Skip to content

Commit

Permalink
asd
Browse files Browse the repository at this point in the history
  • Loading branch information
Bit-Barron committed Nov 2, 2024
1 parent e1aa607 commit 86f0ac7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ WORKDIR /app

RUN npm install -g pnpm

# Environment Variables
ARG DATABASE_URL
ARG SMTP_HOST
ARG SMTP_PORT
Expand Down Expand Up @@ -49,6 +50,12 @@ COPY --from=builder /app/prisma ./prisma

RUN pnpm install --prod --frozen-lockfile

# Health check
HEALTHCHECK --interval=30s --timeout=30s --start-period=5s --retries=3 \
CMD wget --no-verbose --tries=1 --spider http://localhost:3000/api/health || exit 1

# Expose the application port
EXPOSE 3000

# Start the application
CMD ["node", "build"]
8 changes: 1 addition & 7 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,8 @@ services:
- 'traefik.http.middlewares.youtubepedia-ws.headers.customrequestheaders.Upgrade=websocket'
- 'traefik.http.middlewares.youtubepedia-ws.headers.customrequestheaders.Connection=Upgrade'
- 'traefik.http.routers.youtubepedia.middlewares=youtubepedia-ws'
# CORS Headers
- 'traefik.http.middlewares.youtubepedia-cors.headers.accesscontrolallowmethods=GET,POST,PUT,DELETE,OPTIONS'
- 'traefik.http.middlewares.youtubepedia-cors.headers.accesscontrolalloworiginlist=*'
- 'traefik.http.middlewares.youtubepedia-cors.headers.accesscontrolallowcredentials=true'
- 'traefik.http.middlewares.youtubepedia-cors.headers.accesscontrolallowheaders=*'
- 'traefik.http.routers.youtubepedia.middlewares=youtubepedia-ws,youtubepedia-cors'

networks:
proxy:
external: false
name: proxy
name: proxy

0 comments on commit 86f0ac7

Please sign in to comment.