- ENV updates
Some checks failed
continuous-integration/drone/push Build encountered an error

This commit is contained in:
2023-05-06 09:08:15 -04:00
parent 32fdde5d90
commit d800311ae7
6 changed files with 15 additions and 20 deletions

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,14 +13,13 @@ 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:
- DB_HOST=${CONTAINER_PREFIX:-mifi}-auth-service_mongo
- HOST=${HOST}
- PORT=${PORT}
- ROUTE_PREFIX=${ROUTE_PREFIX}
labels:
- 'traefik.enable=true'
- 'traefik.http.routers.grow.rule=Host(`${HOST}`) && Path(`${ROUTE_PREFIX}`)'

View File

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