{"id":17678715,"url":"https://github.com/louiscklaw/with-docker-compose-app-windows","last_synced_at":"2026-05-07T03:39:25.737Z","repository":{"id":101275998,"uuid":"520375020","full_name":"louiscklaw/with-docker-compose-app-windows","owner":"louiscklaw","description":"with-docker-compose-app windows mod","archived":false,"fork":false,"pushed_at":"2022-08-02T06:17:42.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-05T20:46:12.914Z","etag":null,"topics":["docker","docker-compose","javascript","js","nextjs","nextjs-boilerplate","nextjs-template"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","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/louiscklaw.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":"2022-08-02T06:15:29.000Z","updated_at":"2022-08-02T06:21:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"6d412e12-de3e-489a-92a4-c3bfa45b6221","html_url":"https://github.com/louiscklaw/with-docker-compose-app-windows","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/louiscklaw%2Fwith-docker-compose-app-windows","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/louiscklaw%2Fwith-docker-compose-app-windows/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/louiscklaw%2Fwith-docker-compose-app-windows/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/louiscklaw%2Fwith-docker-compose-app-windows/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/louiscklaw","download_url":"https://codeload.github.com/louiscklaw/with-docker-compose-app-windows/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246358875,"owners_count":20764462,"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","javascript","js","nextjs","nextjs-boilerplate","nextjs-template"],"created_at":"2024-10-24T08:05:37.383Z","updated_at":"2026-05-07T03:39:25.695Z","avatar_url":"https://github.com/louiscklaw.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# With Docker Compose\n\nThis example contains everything needed to get a Next.js development and production environment up and running with Docker Compose.\n\n## Benefits of Docker Compose\n\n- Develop locally without Node.js or TypeScript installed ✨\n- Easy to run, consistent development environment across Mac, Windows, and Linux teams\n- Run multiple Next.js apps, databases, and other microservices in a single deployment\n- Multistage builds combined with [Output Standalone](https://nextjs.org/docs/advanced-features/output-file-tracing#automatically-copying-traced-files-experimental) outputs up to 85% smaller apps (Approximately 110 MB compared to 1 GB with create-next-app)\n- BuildKit engine builds multiple Docker images in parallel\n- Easy configuration with YAML files\n\n## How to use\n\nExecute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init), [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/), or [pnpm](https://pnpm.io) to bootstrap the example:\n\n```bash\nnpx create-next-app --example with-docker-compose with-docker-compose-app\n```\n\n```bash\nyarn create next-app --example with-docker-compose with-docker-compose-app\n```\n\n```bash\npnpm create next-app --example with-docker-compose with-docker-compose-app\n```\n\n## Prerequisites\n\nInstall [Docker Desktop](https://docs.docker.com/get-docker) for Mac, Windows, or Linux. Docker Desktop includes Docker Compose as part of the installation.\n\n## Development\n\nFirst, run the development server:\n\n```bash\n# Create a network, which allows containers to communicate\n# with each other, by using their container name as a hostname\ndocker network create my_network\n\n# Build dev using new BuildKit engine\nCOMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 docker-compose -f docker-compose.dev.yml build --parallel\n\n# Up dev\ndocker-compose -f docker-compose.dev.yml up\n```\n\nOpen [http://localhost:3000](http://localhost:3000) with your browser to see the result.\n\nYou can start editing the page by modifying `pages/index.tsx`. The page auto-updates as you edit the file.\n\n## Production\n\nMultistage builds are highly recommended in production. Combined with the Next 12 [Output Standalone](https://nextjs.org/docs/advanced-features/output-file-tracing#automatically-copying-traced-files-experimental) feature, only `node_modules` files required for production are copied into the final Docker image.\n\nFirst, run the production server (Final image approximately 110 MB).\n\n```bash\n# Create a network, which allows containers to communicate\n# with each other, by using their container name as a hostname\ndocker network create my_network\n\n# Build prod using new BuildKit engine\nCOMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 docker-compose -f docker-compose.prod.yml build --parallel\n\n# Up prod in detached mode\ndocker-compose -f docker-compose.prod.yml up -d\n```\n\nAlternatively, run the production server without without multistage builds (Final image approximately 1 GB).\n\n```bash\n# Create a network, which allows containers to communicate\n# with each other, by using their container name as a hostname\ndocker network create my_network\n\n# Build prod without multistage using new BuildKit engine\nCOMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 docker-compose -f docker-compose.prod-without-multistage.yml build --parallel\n\n# Up prod without multistage in detached mode\ndocker-compose -f docker-compose.prod-without-multistage.yml up -d\n```\n\nOpen [http://localhost:3000](http://localhost:3000).\n\n## Useful commands\n\n```bash\n# Stop all running containers\ndocker kill $(docker ps -q) \u0026\u0026 docker rm $(docker ps -a -q)\n\n# Free space\ndocker system prune -af --volumes\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flouiscklaw%2Fwith-docker-compose-app-windows","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flouiscklaw%2Fwith-docker-compose-app-windows","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flouiscklaw%2Fwith-docker-compose-app-windows/lists"}