{"id":21660568,"url":"https://github.com/shimotaroo/docker-nextjs-laravel-sample","last_synced_at":"2025-04-11T22:42:37.993Z","repository":{"id":110677167,"uuid":"417467324","full_name":"shimotaroo/docker-nextjs-laravel-sample","owner":"shimotaroo","description":"Next.js×Laravel APIのDocker環境（簡易版）","archived":false,"fork":false,"pushed_at":"2021-10-15T11:06:19.000Z","size":6,"stargazers_count":13,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-25T18:45:14.700Z","etag":null,"topics":["docker","docker-compose","laravel","nextjs"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","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/shimotaroo.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-10-15T11:00:09.000Z","updated_at":"2024-04-15T10:00:03.000Z","dependencies_parsed_at":"2023-04-21T10:05:46.886Z","dependency_job_id":null,"html_url":"https://github.com/shimotaroo/docker-nextjs-laravel-sample","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/shimotaroo%2Fdocker-nextjs-laravel-sample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shimotaroo%2Fdocker-nextjs-laravel-sample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shimotaroo%2Fdocker-nextjs-laravel-sample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shimotaroo%2Fdocker-nextjs-laravel-sample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shimotaroo","download_url":"https://codeload.github.com/shimotaroo/docker-nextjs-laravel-sample/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248493001,"owners_count":21113159,"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","laravel","nextjs"],"created_at":"2024-11-25T09:34:31.763Z","updated_at":"2025-04-11T22:42:37.985Z","avatar_url":"https://github.com/shimotaroo.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Next.js × Laravel の環境構築\n\n## 前提\n\n- M1Mac対応\n- Intel製チップMacの場合は`.docker/db/Dockerfile`を以下の通り修正\n- Windowsでの動作確認は行っていない\n\n```diff\n- FROM --platform=linux/x86_64 mysql:8.0\n+ FROM mysql:8.0\n\nENV TZ=UTC\n\nCOPY my.cnf /etc/my.cnf\n```\n\n## コンテナ起動\n\n```sh\ndocker-compose up -d --build\n```\n\n## Laravelインストール\n\n```sh\ndocker-compose exec api composer create-project laravel/laravel .\n```\n\n`api`ディレクトリ内にLaravelがインストールされる\n\n`localhost:80`にアクセスするとLaravelのウェルカムページが表示される\n\n## Next.jsインストール\n\n```sh\ndocker-compose exec front yarn create next-app  --typescript .\n\n# 開発用サーバー起動\ndocker-compose exec front yarn dev\n```\n\n`front`ディレクトリ内にNext.jsがインストールされる\n\n`localhost:3000`にアクセスするとNext.jsのウェルカムページが表示される\n\n開発用サーバーの停止は`control + c`\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshimotaroo%2Fdocker-nextjs-laravel-sample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshimotaroo%2Fdocker-nextjs-laravel-sample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshimotaroo%2Fdocker-nextjs-laravel-sample/lists"}