{"id":20029640,"url":"https://github.com/emapeire/docker-node","last_synced_at":"2026-04-06T01:33:54.083Z","repository":{"id":237337391,"uuid":"794325183","full_name":"emapeire/docker-node","owner":"emapeire","description":"Docker Node 🐳: learn best practices","archived":false,"fork":false,"pushed_at":"2024-05-02T16:51:30.000Z","size":57,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-03T14:27:47.510Z","etag":null,"topics":["docker","docker-compose","docker-container","docker-image","dockerfile","dockerhub","express","javascript","mongodb","mongoose","msql2","mysql-database","nodejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/emapeire.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}},"created_at":"2024-04-30T22:43:39.000Z","updated_at":"2024-05-02T16:51:33.000Z","dependencies_parsed_at":"2024-04-30T23:45:33.824Z","dependency_job_id":"dfc1b2c3-c2ef-4bd7-b0b8-e85d5c11ac52","html_url":"https://github.com/emapeire/docker-node","commit_stats":null,"previous_names":["emapeire/docker-project","emapeire/docker-node"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/emapeire/docker-node","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emapeire%2Fdocker-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emapeire%2Fdocker-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emapeire%2Fdocker-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emapeire%2Fdocker-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/emapeire","download_url":"https://codeload.github.com/emapeire/docker-node/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emapeire%2Fdocker-node/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31456660,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T21:22:52.476Z","status":"ssl_error","status_checked_at":"2026-04-05T21:22:51.943Z","response_time":75,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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","docker-compose","docker-container","docker-image","dockerfile","dockerhub","express","javascript","mongodb","mongoose","msql2","mysql-database","nodejs"],"created_at":"2024-11-13T09:21:46.496Z","updated_at":"2026-04-06T01:33:54.065Z","avatar_url":"https://github.com/emapeire.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker Node 🐳: learn best practices\n\n### About the project\n\nA simple Node.js project with Docker, MongoDB and MySQL\n\n### Setting up the project\n\nYou'll need to configure the environment variables for the project. To do this, you can create a `.env` file in the root of the project with the following content:\n\n```env\n# Docker Configuration\n# Defining true you are saying that you are running the application in a docker environment.\n# Otherwise (false), you are running the application in a local environment.\nIS_DOCKER_ENV=\u003cflase | true\u003e\n\n# Application Configuration\nAPP_CONTAINER_NAME=\u003capp_container_name\u003e\nAPP_PORT=\u003capp_port\u003e # Default: 3000\n\n# MySQL Configuration\nMYSQL_CONTAINER_HOST=\u003cmysql_container_host\u003e\nMYSQL_PORT=\u003cmysql_port\u003e # Default: 3306\nMYSQL_DATABASE=\u003cmysql_database\u003e\nMYSQL_ROOT_USER=\u003cmysql_root_user\u003e\nMYSQL_ROOT_PASSWORD=\u003cmysql_root_password\u003e\n\n# MongoDB Configuration\nMONGO_CONTAINER_HOST=\u003cmongo_container_host\u003e\nMONGO_DATABASE=\u003cmongo_database\u003e\nMONGO_PORT=\u003cmongo_port\u003e # Default: 27017\n```\n\nAlso, you can look at the [`.env.example`](.env.example) file to see an example of the environment variables.\n\n### Running the project\n\nTo run the project, you'll need to have Docker installed. Then, you can run the following command:\n\n```bash\ndocker-compose up\n```\n\nFor building the project, you can run the following command:\n\n```bash\ndocker-compose up --build\n```\n\nThis will build the Docker image and start the container. You can access the application at `http://localhost:3000`.\n\n### Stopping the project\n\nTo stop the project, you can run the following command:\n\n```bash\ndocker-compose down\n```\n\nThis will stop the container and remove it.\n\n### License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femapeire%2Fdocker-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femapeire%2Fdocker-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femapeire%2Fdocker-node/lists"}