This reverts commit 43dcdf4e6a.
This commit is contained in:
@@ -166,8 +166,8 @@ steps:
|
|||||||
ROUTE_PREFIX: /auth
|
ROUTE_PREFIX: /auth
|
||||||
PORT: 9001
|
PORT: 9001
|
||||||
commands:
|
commands:
|
||||||
- docker compose -f /drone/auth/docker/docker-compose.staging-build.yml build --pull --no-cache
|
- docker compose -f docker-compose.staging-build.yml build --pull --no-cache
|
||||||
- docker compose -f /drone/auth/docker/docker-compose.staging-build.yml up --remove-orphans --force-recreate --wait
|
- docker compose -f docker-compose.staging-build.yml up --remove-orphans --force-recreate --wait
|
||||||
volumes:
|
volumes:
|
||||||
- name: env-secrets
|
- name: env-secrets
|
||||||
path: /drone/auth/staging.env
|
path: /drone/auth/staging.env
|
||||||
@@ -205,7 +205,7 @@ volumes:
|
|||||||
host:
|
host:
|
||||||
path: /volume1/docker/beethoven/labs-auth/staging.env
|
path: /volume1/docker/beethoven/labs-auth/staging.env
|
||||||
- name: mongo-init
|
- name: mongo-init
|
||||||
path: /drone/auth/docker/docker-entrypoint-initdb.d/mongo-init.js
|
path: /drone/auth/mongo-init.js
|
||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- Test Pipeline
|
- Test Pipeline
|
||||||
|
|||||||
@@ -2,9 +2,9 @@
|
|||||||
FROM node:20-alpine AS build
|
FROM node:20-alpine AS build
|
||||||
ENV NODE_ENV development
|
ENV NODE_ENV development
|
||||||
WORKDIR /home/node/app
|
WORKDIR /home/node/app
|
||||||
COPY ../package*.json ./
|
COPY package*.json ./
|
||||||
COPY ../tsconfig.json ./
|
COPY tsconfig.json ./
|
||||||
COPY ../lib ./lib
|
COPY lib ./lib
|
||||||
RUN ls -a
|
RUN ls -a
|
||||||
RUN yarn install
|
RUN yarn install
|
||||||
RUN yarn build
|
RUN yarn build
|
||||||
@@ -13,7 +13,7 @@ RUN yarn build
|
|||||||
FROM node:20-alpine AS auth-service
|
FROM node:20-alpine AS auth-service
|
||||||
ENV NODE_ENV ${ENV:-production}
|
ENV NODE_ENV ${ENV:-production}
|
||||||
WORKDIR /home/node/app
|
WORKDIR /home/node/app
|
||||||
COPY ../package*.json ./
|
COPY package*.json ./
|
||||||
RUN yarn install --frozen-lockfile --production
|
RUN yarn install --frozen-lockfile --production
|
||||||
COPY --from=0 /home/node/app/dist .
|
COPY --from=0 /home/node/app/dist .
|
||||||
EXPOSE ${PORT:-9001}
|
EXPOSE ${PORT:-9001}
|
||||||
@@ -4,7 +4,7 @@ services:
|
|||||||
auth-service_mongo:
|
auth-service_mongo:
|
||||||
container_name: ${CONTAINER_PREFIX:-staging}-auth-service_mongo
|
container_name: ${CONTAINER_PREFIX:-staging}-auth-service_mongo
|
||||||
env_file:
|
env_file:
|
||||||
- ../staging.env
|
- staging.env
|
||||||
networks:
|
networks:
|
||||||
- docknet
|
- docknet
|
||||||
volumes:
|
volumes:
|
||||||
@@ -15,7 +15,7 @@ services:
|
|||||||
image: mongo:4.4
|
image: mongo:4.4
|
||||||
auth-service:
|
auth-service:
|
||||||
env_file:
|
env_file:
|
||||||
- ../staging.env
|
- staging.env
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
args:
|
args:
|
||||||
@@ -1,5 +1,4 @@
|
|||||||
/* eslint-disable no-undef */
|
/* eslint-disable no-undef */
|
||||||
db = db.getSiblingDB(process.env.DB_NAME);
|
|
||||||
db.createUser({
|
db.createUser({
|
||||||
user: process.env.DB_USERNAME,
|
user: process.env.DB_USERNAME,
|
||||||
pwd: process.env.DB_PASSWORD,
|
pwd: process.env.DB_PASSWORD,
|
||||||
Reference in New Issue
Block a user