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