diff --git a/Dockerfile b/Dockerfile index e49c873..81d90af 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,4 @@ +# Dockerfile FROM node:20-alpine AS builder WORKDIR /app @@ -50,12 +51,9 @@ 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"] \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 0cefa68..417f5d3 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -19,20 +19,16 @@ services: env_file: .env networks: - proxy - ports: - - '3000:3000' labels: - 'traefik.enable=true' - 'traefik.http.routers.youtubepedia.rule=Host(`youtubepedia.barron.agency`)' - 'traefik.http.routers.youtubepedia.entrypoints=websecure' - 'traefik.http.routers.youtubepedia.tls.certresolver=letsencrypt' - 'traefik.http.services.youtubepedia.loadbalancer.server.port=3000' - # WebSocket Konfiguration - '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' networks: proxy: - external: false - name: proxy + external: true