2 Commits

Author SHA1 Message Date
d800311ae7 - ENV updates
Some checks failed
continuous-integration/drone/push Build encountered an error
2023-05-06 09:08:15 -04:00
32fdde5d90 - The missing env variables...
Some checks failed
continuous-integration/drone/push Build encountered an error
2023-05-06 08:43:26 -04:00
7 changed files with 16 additions and 18 deletions

View File

@@ -61,7 +61,7 @@ trigger:
branch:
- main
event:
- pull_request
# - pull_request
- push
---

View File

@@ -27,5 +27,3 @@ RESET_VALID_MINUTES=15
DEFAULT_TOKEN_DAYS=1
CONTAINER_PREFIX=dev
SERVICE_NAME=auth-service
DB_TYPE=mongo

6
.env.staging Normal file
View File

@@ -0,0 +1,6 @@
HOST=area51.mifi.dev
PORT=9001
ROUTE_PREFIX=/auth
CONTAINER_PREFIX=mifi

View File

@@ -1,13 +1,3 @@
# FROM node:20-alpine AS build
# RUN mkdir -p /home/node/app/node_modules && chown -R node:node /home/node/app
# WORKDIR /home/node/app
# COPY package*.json .
# COPY dist/lib .
# USER node
# RUN yarn install --frozen-lockfile --production
# COPY --chown=node:node node_modules ./node_modules
# CMD ["node", "dist/lib/server/index.js"]
FROM node:20-alpine AS build
WORKDIR /home/node/app
COPY package*.json ./

View File

@@ -2,7 +2,7 @@ version: '3.8'
services:
auth-service_mongo:
env_file: dev.env
env_file: .env.dev
container_name: ${CONTAINER_PREFIX:-dev}-auth-service_mongo
ports:
- 27017:27017
@@ -14,7 +14,7 @@ services:
restart: unless-stopped
image: mongo:latest
auth-service:
env_file: dev.env
env_file: .env.dev
build: .
container_name: ${CONTAINER_PREFIX:-dev}-auth-service
ports:

View File

@@ -3,7 +3,9 @@ version: '3.8'
services:
auth-service_mongo:
container_name: ${CONTAINER_PREFIX:-mifi}-auth-service_mongo
env_file: staging.env
env_file:
- .env.staging
- staging.env
networks:
- docknet
volumes:
@@ -11,7 +13,9 @@ services:
restart: unless-stopped
image: mongo:latest
auth-service:
env_file: staging.env
env_file:
- .env.staging
- staging.env
build: .
container_name: ${CONTAINER_PREFIX:-mifi}-auth-service
environment:

View File

@@ -1,6 +1,6 @@
{
"name": "@mifi/auth",
"version": "0.0.28",
"version": "0.0.30",
"author": "mifi (Mike Fitzpatrick)",
"license": "MIT",
"scripts": {