{"id":22946580,"url":"https://github.com/kfox/react-docker-compose-example","last_synced_at":"2026-04-13T23:32:12.813Z","repository":{"id":91416905,"uuid":"328239554","full_name":"kfox/react-docker-compose-example","owner":"kfox","description":"An example React starter app showing how to develop inside a Docker container using Docker Compose","archived":false,"fork":false,"pushed_at":"2021-01-10T01:54:06.000Z","size":217,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-01T22:35:19.055Z","etag":null,"topics":["docker","docker-compose","react","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kfox.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2021-01-09T20:22:41.000Z","updated_at":"2021-01-10T01:55:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"c66b27e4-7932-46a1-a20e-6b4c6a0812ba","html_url":"https://github.com/kfox/react-docker-compose-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kfox/react-docker-compose-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kfox%2Freact-docker-compose-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kfox%2Freact-docker-compose-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kfox%2Freact-docker-compose-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kfox%2Freact-docker-compose-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kfox","download_url":"https://codeload.github.com/kfox/react-docker-compose-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kfox%2Freact-docker-compose-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31775758,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T20:17:16.280Z","status":"ssl_error","status_checked_at":"2026-04-13T20:17:08.216Z","response_time":93,"last_error":"SSL_read: 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","react","typescript"],"created_at":"2024-12-14T14:47:20.757Z","updated_at":"2026-04-13T23:32:12.794Z","avatar_url":"https://github.com/kfox.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React Docker Compose Example\n\nThis repo demonstrates a React application development environment running within a [Docker](https://docs.docker.com/get-docker/) container (via [Docker Compose](https://docs.docker.com/compose/)) using a [local bind mount](https://docs.docker.com/storage/bind-mounts/) for the source code. The `node_modules` folder only exists as a [named volume](https://docs.docker.com/storage/volumes/) within the Docker container itself, i.e. no local `node_modules` folder is used or copied to the Docker container.\n\nThis example only shows how the React app would be handled with `docker-compose`, but in a more complex (and more realistic) app you would also have API, database, and other services defined in the [`docker-compose.yml`](docker-compose.yml) file.\n\n## Quick Start\n\nTo start the development environment, make sure you have Docker installed and then run:\n\n```bash\ndocker-compose up\n```\n\nor just:\n\n```bash\nyarn dev\n```\n\nWhen the development server starts up, it will watch the local filesystem and reload the server inside the Docker container when it detects changes in the source code.\n\n## asdf and Docker\n\nThere are also a few files to simplify use with [asdf](https://asdf-vm.com) and Docker:\n\n- [`.tool-versions`](.tool-versions) - Can serve as a single \"source of truth\" for tool versioning for all developers working on this project.\n- [`.envrc`](.envrc) - If you have the [asdf-direnv](https://github.com/asdf-community/asdf-direnv) plugin installed, the presence of this file automatically activates the \"tools\" defined in the `.tool-versions` file if you have the appropriate plugins installed, e.g. run `asdf install nodejs` once in the project root.\n- [`.env`](.env) - Local environment variables are defined here. If this file is present, `docker-compose` will automatically load the variables defined in it. In a \"real\" project, you might also have a helper script that would create the variable assignments in this file based on the contents of your `.tool-versions` file.\n\nNote that you wouldn't normally commit the `.env` file (and maybe not even the `.envrc` file) to the repository, but I left them in to show how they might look as part of the overall project.\n\n## Create React App\n\nThis project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app) via:\n\n```bash\nyarn create react-app react-docker-compose-example --template typescript\n```\n\n## Available Scripts\n\nIn the project directory, you can run:\n\n### `yarn dev`\n\nRuns the application via `docker-compose`.\n\n### `yarn start`\n\nRuns the app in the development mode.\\\nOpen [http://localhost:3000](http://localhost:3000) to view it in the browser.\n\nThe page will reload if you make edits.\\\nYou will also see any lint errors in the console.\n\n### `yarn test`\n\nLaunches the test runner in the interactive watch mode.\\\nSee the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.\n\n### `yarn build`\n\nBuilds the app for production to the `build` folder.\\\nIt correctly bundles React in production mode and optimizes the build for the best performance.\n\nThe build is minified and the filenames include the hashes.\\\nYour app is ready to be deployed!\n\nSee the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.\n\n### `yarn eject`\n\n**Note: this is a one-way operation. Once you `eject`, you can’t go back!**\n\nIf you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.\n\nInstead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.\n\nYou don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.\n\n## Learn More\n\nYou can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).\n\nTo learn React, check out the [React documentation](https://reactjs.org/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkfox%2Freact-docker-compose-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkfox%2Freact-docker-compose-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkfox%2Freact-docker-compose-example/lists"}