diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 265f37106..5e9adb742 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -26,6 +26,14 @@ jobs: target: keycloak secrets: inherit + build_novu-bridge: + name: 'Build novu-bridge' + uses: ./.github/workflows/build_base.yaml + with: + image: novu-bridge + context: ./novu/bridge + secrets: inherit + build_php-fpm-base: name: 'Build php-fpm-base' uses: ./.github/workflows/build_base.yaml diff --git a/docker-compose.yml b/docker-compose.yml index 47d950fc1..e72ad2af7 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1190,7 +1190,7 @@ services: - "traefik.enable=true" - "traefik.project_name=${COMPOSE_PROJECT_NAME}" - "traefik.http.routers.novu-bridge.rule=Host(`bridge-novu.${PHRASEA_DOMAIN}`)" - - "traefik.http.services.novu-bridge.loadbalancer.server.port=4000" + - "traefik.http.services.novu-bridge.loadbalancer.server.port=3000" extra_hosts: - api-novu.${PHRASEA_DOMAIN}:${PS_GATEWAY_IP} - bridge-novu.${PHRASEA_DOMAIN}:${PS_GATEWAY_IP} diff --git a/novu/bridge/Dockerfile b/novu/bridge/Dockerfile index 9bae4323d..d2fba82f0 100644 --- a/novu/bridge/Dockerfile +++ b/novu/bridge/Dockerfile @@ -17,8 +17,14 @@ USER 1000 WORKDIR /usr/src/app -COPY --chown=1000:1000 . . +COPY --chown=1000:1000 package.json pnpm-lock.yaml ./ RUN pnpm install --frozen-lockfile -CMD ["pnpm", "dev"] +COPY --chown=1000:1000 . . + +ENV NOVU_SECRET_KEY=__defined_me + +RUN pnpm build + +CMD ["pnpm", "start"] diff --git a/novu/bridge/package.json b/novu/bridge/package.json index c00f216c2..5ba603097 100644 --- a/novu/bridge/package.json +++ b/novu/bridge/package.json @@ -3,7 +3,7 @@ "version": "0.1.0", "private": true, "scripts": { - "dev": "next dev --port=4000", + "dev": "next dev --port=3000", "build": "next build", "start": "next start", "lint": "next lint",