Sign inSign up

florinbuzec/goals-node

By florinbuzec

Updated over 2 years ago

Goals nodeJS app

Image
API management
0

80

florinbuzec/goals-node repository overview

Used as backend container to a goals docker-compose.yml project. Example for play-with-docker.com:

version: "3.8"
services:
  backend:
    image: 'florinbuzec/goals-node:v2024-05-04.2'
    container_name: goals-backend
    env_file:
      - ./backend.env
    volumes:
      - logs:/app/logs
      - /app/node_modules
    ports:
      - '80:80'

  frontend:
    image: 'florinbuzec/goals-react:v2024-05-04.12'
    container_name: goals-frontend
    # only used to the built image, but NODE_ENV is needed
#    env_file:
#      - ./frontend.env
    depends_on:
      - backend
    ports:
      - '3000:80'
    #stdin_open: true
    #tty: true

volumes:
  logs:

.backend.env:

MONGODB_USERNAME=florinb
MONGODB_PASSWORD=password
MONGODB_NAME=course-goals
MONGODB_URL=mongodb+srv://${MONGODB_USERNAME}:${MONGODB_PASSWORD}@cluster0.iq12jpw.mongodb.net/${MONGODB_NAME}?retryWrites=true&w=majority&appName=Cluster0

Tag summary

Content type

Image

Digest

sha256:bdd596fa4

Size

393.5 MB

Last updated

over 2 years ago

docker pull florinbuzec/goals-node:v2024-05-04.2