Sign inSign up

dockeranay2310/taskflow-server

By dockeranay2310

•Updated 9 months ago

Production-ready TaskFlow API: Node.js/Express backend with Alpine Linux containerization.

Image
Web servers
1

202

dockeranay2310/taskflow-server repository overview

⁠TaskFlow Server (Backend)

The official backend API for TaskFlow, a full-stack MERN application designed to manage daily tasks efficiently.
This image runs a lightweight Node.js + Express server optimized for Docker deployments.


ā šŸš€ Features

  • RESTful API: Endpoints for creating, reading, and deleting tasks
  • MongoDB Integration: Uses Mongoose for schema-based data modeling
  • Production Ready: Built on node:20-alpine (~50MB image size)
  • Security: Runs as a non-root user (node)
  • Health Checks: /health endpoint for container monitoring

ā šŸ“¦ How to Run

This image is designed to run alongside a MongoDB container.


services:
  server:
    image: dockeranay2310/taskflow-server:v1.0
    container_name: taskflow_server
    environment:
      - PORT=5000
      - MONGO_URI=mongodb://mongo:27017/taskflow
    ports:
      - "5000:5000"
    depends_on:
      - mongo

  mongo:
    image: mongo
    container_name: taskflow_mongo
    ports:
      - "27017:27017"

Manual Run

docker run -d \
  --name taskflow_server \
  -p 5000:5000 \
  -e MONGO_URI=mongodb://host.docker.internal:27017/taskflow \
  dockeranay2310/taskflow-server:v1.0

šŸ”§ Environment Variables Variable Description Default PORT Server listening port 5000 MONGO_URI MongoDB connection string mongodb://localhost:27017/taskflow NODE_ENV Environment mode production šŸ“” API Endpoints

GET /health → Health check status

GET /todos → Retrieve all tasks

POST /todos → Create a new task

šŸ— Architecture

Runtime: Node.js + Express

Database: MongoDB

ODM: Mongoose

Container Base Image: node:20-alpine

āœ… Summary

Lightweight and secure Node.js backend

Docker-optimized production build

Clean REST API structure

Ready for orchestration (Docker Compose / Kubernetes)

Tag summary

Content type

Image

Digest

sha256:e3cd1a204…

Size

51.5 MB

Last updated

9 months ago

docker pull dockeranay2310/taskflow-server:v1.0