{"id":22995674,"url":"https://github.com/eranshmil/docker-examples","last_synced_at":"2026-04-12T15:39:47.572Z","repository":{"id":55669291,"uuid":"155267277","full_name":"eranshmil/docker-examples","owner":"eranshmil","description":"My Docker playground examples, written for learning purposes.","archived":false,"fork":false,"pushed_at":"2020-12-14T04:26:20.000Z","size":1524,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-15T04:58:26.547Z","etag":null,"topics":["docker","docker-compose","express","mongodb","mongoo","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/eranshmil.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}},"created_at":"2018-10-29T19:15:24.000Z","updated_at":"2018-12-20T12:16:29.000Z","dependencies_parsed_at":"2022-08-15T06:01:02.460Z","dependency_job_id":null,"html_url":"https://github.com/eranshmil/docker-examples","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eranshmil%2Fdocker-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eranshmil%2Fdocker-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eranshmil%2Fdocker-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eranshmil%2Fdocker-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eranshmil","download_url":"https://codeload.github.com/eranshmil/docker-examples/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246819784,"owners_count":20839095,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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","express","mongodb","mongoo","nodejs"],"created_at":"2024-12-15T05:30:14.023Z","updated_at":"2026-04-12T15:39:42.529Z","avatar_url":"https://github.com/eranshmil.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple Docker Examples\n\nMy Docker playground examples, written for learning purposes.\u003cbr /\u003e\nTested on MacOS, so feel free to open a PR if you are using another platform.\u003cbr /\u003e\n_Warning: may not be suitable for production use._\n\n## What's in the box\n\nCurrently, each example uses [nodemon](https://github.com/remy/nodemon) for:\n\n1. Debugging\n1. Watching files and live-reload the app\n\n## Usage\n\n1. Install [Docker](https://docs.docker.com/install/).\n1. Clone this repository:\n\n   ```bash\n   git clone https://github.com/eranshmil/docker-examples.git\n   ```\n\n1. Go to the folder you want to use, for example:\n\n   ```bash\n   cd express-mongo\n   ```\n\n1. Run the following command to create the containers:\n\n   ```bash\n    docker-compose up\n   ```\n\n1. When you finish developing, run:\n\n   ```bash\n   docker-compose down\n   ```\n\n- If you have some issue, try to run the container with the build flag:\n\n  ```bash\n  docker-compose up --build\n  ```\n\n### Standalone services\n\nRunning only one service in the container:\n\n```bash\ndocker-compose run --service-ports mongo\n```\n\n- In this example, the service called mongo\n- The service-ports flag publishes the service ports to the host machine\n\n### Breakpoint at first line\n\nIn order to debug the initialization process of your app, change the --inspect flag to --inspect-brk in the relevant package.json.\u003cbr /\u003e\nFor example:\n\n```json\n{\n    ...\n    \"scripts\": {\n        ...\n        \"watch\": \"nodemon -L --inspect-brk=0.0.0.0\"\n    }\n    ...\n}\n```\n\n## Debugging with vscode\n\n\u003cimg src=\"assets/vscode-debugger.gif\"\u003e\n\n## Todo\n\n1. Add documentation about parameters used in Dockerfile and docker-compose.yml.\n1. Explain about the first example.\n1. Examples to add:\n   - Angular container\n   - Laravel container\n\n## Resources\n\n1. [Official NodeJS Debugging Guide](https://nodejs.org/en/docs/guides/debugging-getting-started/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feranshmil%2Fdocker-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feranshmil%2Fdocker-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feranshmil%2Fdocker-examples/lists"}