{"id":27886023,"url":"https://github.com/azita-abdollahi/express-docker","last_synced_at":"2026-04-08T11:32:18.799Z","repository":{"id":153354789,"uuid":"514279748","full_name":"azita-abdollahi/express-docker","owner":"azita-abdollahi","description":"A Simple dockerized Express.JS + MongoDB + Mongo-Express using NginX Server","archived":false,"fork":false,"pushed_at":"2024-09-24T06:20:49.000Z","size":30,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-03T16:19:50.465Z","etag":null,"topics":["docker-compose","express-js","mongo-express","mongodb","mongoose","nginx","nodejs","rest-api"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/azita-abdollahi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-07-15T13:28:48.000Z","updated_at":"2025-05-26T19:16:33.000Z","dependencies_parsed_at":"2023-04-29T23:00:51.554Z","dependency_job_id":null,"html_url":"https://github.com/azita-abdollahi/express-docker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/azita-abdollahi/express-docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azita-abdollahi%2Fexpress-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azita-abdollahi%2Fexpress-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azita-abdollahi%2Fexpress-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azita-abdollahi%2Fexpress-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/azita-abdollahi","download_url":"https://codeload.github.com/azita-abdollahi/express-docker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azita-abdollahi%2Fexpress-docker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31554091,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T10:21:54.569Z","status":"ssl_error","status_checked_at":"2026-04-08T10:21:38.171Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker-compose","express-js","mongo-express","mongodb","mongoose","nginx","nodejs","rest-api"],"created_at":"2025-05-05T07:51:21.177Z","updated_at":"2026-04-08T11:32:18.790Z","avatar_url":"https://github.com/azita-abdollahi.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A Simple dockerized REST API with Express.JS\n\n\n\nThis is a dockerized sample to build a very simple [`CRUD`](https://en.wikipedia.org/wiki/Create,_read,_update_and_delete) [`Rest API`](https://www.geeksforgeeks.org/rest-api-introduction/) using `NodeJs`, [`ExpressJs`](https://www.npmjs.com/package/express) \u0026 [`MongoDB`](https://www.mongodb.com/what-is-mongodb) (using [`mongoose`](https://www.npmjs.com/package/mongoose)) \u0026 [`mongo-express`](https://github.com/mongo-express/mongo-express) (Web-based MongoDB admin interface, written with Node.js and express) \u0026 [`Nginx`](https://nginx.org/en/)as a proxy web server.\n\n\n\n**Create your services in `docker-compose.yml` file:**\n\n```yaml\nversion: \"3\"\nservices:\n  mongodb:\n    image: mongo:4.2\n    container_name: mongodb\n    networks:\n      - api-net\n    env_file: ./mongo_env\n    volumes:\n      - ./mongo-data:/data/db\n  backend:\n    image: backend-express\n    container_name: backend-container\n    build: \n      context: .\n    depends_on:\n      - mongodb\n    networks: \n      - api-net\n  mongo-express:\n    image: mongo-express:0.54.0\n    container_name: mongo-express\n    depends_on:\n      - mongodb\n    networks:\n      - api-net\n    env_file: ./mongo-express_env\n  nginx: \n    image: nginx:1.21\n    container_name: nginx_proxy\n    restart: on-failure\n    depends_on:\n      - backend\n    networks: \n      - api-net\n    ports:\n      - \"8080:8080\"\n      - \"8081:8081\"\n    volumes:\n      - ./conf.d/:/etc/nginx/conf.d/\nnetworks:\n  api-net:\n```\n\n\n\n**Create environments files for `mongodb` and `mongo-express`:**\n\n`mongo_env` file:\n\n```\nMONGO_INITDB_ROOT_USERNAME=root\nMONGO_INITDB_ROOT_PASSWORD=root\n```\n\n`mongo-express_env` file:\n\n```\nME_CONFIG_MONGODB_SERVER=mongodb\nME_CONFIG_MONGODB_URL=mongodb://root:root@mongodb:27017/mytestdb\nME_CONFIG_MONGODB_ADMINUSERNAME=root\nME_CONFIG_MONGODB_ADMINPASSWORD=root\nME_CONFIG_BASICAUTH_USERNAME=admin\nME_CONFIG_BASICAUTH_PASSWORD=admin\nME_CONFIG_MONGODB_ENABLE_ADMIN=true\n```\n\n\n\n**Note:** By default backend service listens on `TCP/8080` port and mongo-express is available on `TCP/8081`.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fazita-abdollahi%2Fexpress-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fazita-abdollahi%2Fexpress-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fazita-abdollahi%2Fexpress-docker/lists"}