{"id":23462020,"url":"https://github.com/cslant/react-docker","last_synced_at":"2026-05-04T01:32:55.351Z","repository":{"id":217837387,"uuid":"744894288","full_name":"cslant/react-docker","owner":"cslant","description":"This is a simple docker configuration for React. It is suitable for both development and production environments.","archived":false,"fork":false,"pushed_at":"2024-04-30T01:45:25.000Z","size":191,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-12T08:57:19.919Z","etag":null,"topics":["cslant","cslant-docker","docker","docker-compose","docker-template","docker-templates","react-docker","react-environnement","reactjs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/cslant.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,"zenodo":null}},"created_at":"2024-01-18T08:16:49.000Z","updated_at":"2024-06-10T18:02:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"233daead-3bd1-4fb9-8f94-66a82cbdb90e","html_url":"https://github.com/cslant/react-docker","commit_stats":null,"previous_names":["tanhongit/react-docker","cslant/react-docker"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/cslant/react-docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cslant%2Freact-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cslant%2Freact-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cslant%2Freact-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cslant%2Freact-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cslant","download_url":"https://codeload.github.com/cslant/react-docker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cslant%2Freact-docker/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263828727,"owners_count":23516791,"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":["cslant","cslant-docker","docker","docker-compose","docker-template","docker-templates","react-docker","react-environnement","reactjs"],"created_at":"2024-12-24T08:15:28.748Z","updated_at":"2026-05-04T01:32:50.331Z","avatar_url":"https://github.com/cslant.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker for React\n\nThis is a simple docker configuration for React. It is suitable for both development and production environments.\n\n## For development\n\nFirst, update the **APP_CONTAINER_NAME** and **APP_PORT** variables in the .env file if you want to change the container name and the port number.\n\n```bash\ncp .env.example .env\n```\n\nAnd change variables. Example:\n\n```dotenv\nAPP_CONTAINER_NAME=react-app\nAPP_PORT=3001\n```\n\nThen, run the following command to start the development server:\n\n```bash\ndocker compose up -d\n```\n\nNow, you can access the development server at http://localhost:3001.\n\n## For production\n\nFirst, update the **APP_CONTAINER_NAME** and **APP_PORT** variables in the .env file if you want to change the container name and the port number.\n\n```bash\ncp .env.example .env\n```\n\nAnd change variables. Example:\n\n```dotenv\nAPP_CONTAINER_NAME=react-app-prod\nPROD_APP_PORT=85\n```\n\nThen, run the following command to build the production image:\n\n```bash\ndocker compose -f docker-compose.prod.yml up -d --build\n```\n\nNow, you can access the production server at http://localhost:85.\n\n\u003e [!IMPORTANT]\n\u003e ## Note\n\u003e Every time you change the source code, you need to rebuild the image by running the above command again.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcslant%2Freact-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcslant%2Freact-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcslant%2Freact-docker/lists"}