Sign inSign up

scottiecrump/client-address-next

By scottiecrump

•Updated almost 5 years ago

An app that allows users to add client data.

Image
0

328

scottiecrump/client-address-next repository overview

⁠Steps to Set Up and Run The Image In a Container

⁠Create a .env file

The image expects a MONGO_URI environment variable to connect to a MongoDB database. Create a .env file that includes a MONGO_URI variable set equal to your Mongo connection string.

⁠Running In A Container

Create a docker-compose.yml file in the root of your project and include the client-address-next image and mongo as services. You can use the following example:

version: '3.8'

services:
  api:
    image: scottiecrump/client-address-next
    environment:
      - MONGO_URI=${MONGO_URI}
    depends_on:
      - mongo
    ports:
      - 3000:3000
  mongo:
    image: mongo
    ports:
      - 27017:27017
    volumes:
      - mongo-data:/data/db
      - mongo-config:/data/configdb
volumes:
  mongo-data:
    driver: local
  mongo-config:
    driver: local
⁠Starting and Stopping The Container

Use docker-compose up -d and docker-compose down to stop the container via the terminal.

Tag summary

Content type

Image

Digest

Size

177.7 MB

Last updated

almost 5 years ago

docker pull scottiecrump/client-address-next