HUB
Sign inSign up
nodejs-auth-api logo

ranckosolutionsinc/nodejs-auth-api

By ranckosolutionsinc

•Updated over 3 years ago

A JWT authentication RESTful API built on Express (Node.js)

Image
0

276

ranckosolutionsinc/nodejs-auth-api repository overview

Github repo: https://github.com/MikeTeddyOmondi/nodejs-auth-api⁠

Docker Compose manifest:

version: "3.6"

services:
  auth:
    container_name: auth-service-api
    image: ranckosolutionsinc/node-auth-api:v1.0.0
    # build: ./
    restart: always
    ports:
      - 8888:8888
    environment:
      - PORT=${PORT}
      - DB_URL=${DB_URL}
      - NODE_ENV=${NODE_ENV}
      - ACCESS_SECRET=${ACCESS_SECRET}
      - REFRESH_SECRET=${REFRESH_SECRET}
    networks:
      - auth-service-network
    depends_on:
      - mongo

  mongo:
    container_name: auth-service-db
    image: mongo:4.2
    restart: always
    ports:
      - 27017:27017
    environment:
      - MONGO_INITDB_ROOT_USERNAME=${MONGO_INITDB_ROOT_USERNAME}
      - MONGO_INITDB_ROOT_PASSWORD=${MONGO_INITDB_ROOT_PASSWORD}
    volumes:
      - auth-service-db-data:/data/db
    networks:
      - auth-service-network

volumes:
  auth-service-db-data:

networks:
  auth-service-network:
    name: auth-service
    driver: bridge
Tag summary
Recent tags
Content type
Image
Digest
sha256:3f88533d7…
Size
57.9 MB
Last updated
over 3 years ago
docker pull ranckosolutionsinc/nodejs-auth-api:v1.0.0