{"id":20324616,"url":"https://github.com/gh640/docker-compose-watch-example","last_synced_at":"2026-05-05T11:35:21.201Z","repository":{"id":169580654,"uuid":"630806573","full_name":"gh640/docker-compose-watch-example","owner":"gh640","description":"A working example to test docker compose's experimental watch","archived":false,"fork":false,"pushed_at":"2024-12-12T21:30:58.000Z","size":4186,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-04T10:25:34.518Z","etag":null,"topics":["docker","docker-compose"],"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/gh640.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":"2023-04-21T07:40:55.000Z","updated_at":"2024-09-17T22:07:09.000Z","dependencies_parsed_at":"2023-10-12T12:09:58.714Z","dependency_job_id":"8aa059f0-aa93-42a8-ac2e-c1b042d87d2c","html_url":"https://github.com/gh640/docker-compose-watch-example","commit_stats":null,"previous_names":["gh640/docker-compose-watch-example"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gh640/docker-compose-watch-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gh640%2Fdocker-compose-watch-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gh640%2Fdocker-compose-watch-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gh640%2Fdocker-compose-watch-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gh640%2Fdocker-compose-watch-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gh640","download_url":"https://codeload.github.com/gh640/docker-compose-watch-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gh640%2Fdocker-compose-watch-example/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260116643,"owners_count":22961064,"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"],"created_at":"2024-11-14T19:36:32.997Z","updated_at":"2026-05-05T11:35:21.192Z","avatar_url":"https://github.com/gh640.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `docker compose watch` example\n\nA working example to test `docker compose watch`.\n\n\u003e Use `watch` to automatically update and preview your running Compose services as you edit and save your code.\n\u003e\n\u003e For many projects, this allows for a hands-off development workflow once Compose is running, as services automatically update themselves when you save your work.\n\u003e\n\u003e ―― [Automatically update services with file watch | Docker Documentation](https://docs.docker.com/compose/file-watch/)\n\n## Usage\n\n```zsh\n# Build:\nmake build\n# or\ndocker compose build\n\n# Start containers:\nmake up\n# or\ndocker compose up -d\n\n# Open the page with browser:\nmake open-browser\n# or\nopen http://localhost:8000\n\n# Watch:\nmake watch\n# or\ndocker compose watch\n\n# Try changing files in `site/src/` or `site/astro.config.mjs` to see the watch works.\nmake touch-index.astro  # =\u003e sync\nmake touch-astro-config.mjs  # =\u003e sync+restart\nmake touch-package.json  # =\u003e rebuild\n\n# Stop containers:\nmake down\n# or \ndocker compose down\n```\n\n## Environment tested on\n\n```zsh\n❯ docker --version\nDocker version 24.0.6, build ed223bc\n\n❯ docker compose version\nDocker Compose version v2.23.0-desktop.1\n```\n\n`docker version`:\n\n```text\nClient:\n Cloud integration: v1.0.35+desktop.5\n Version:           24.0.6\n API version:       1.43\n Go version:        go1.20.7\n Git commit:        ed223bc\n Built:             Mon Sep  4 12:28:49 2023\n OS/Arch:           darwin/arm64\n Context:           desktop-linux\n\nServer: Docker Desktop 4.25.0 (126437)\n Engine:\n  Version:          24.0.6\n  API version:      1.43 (minimum version 1.12)\n  Go version:       go1.20.7\n  Git commit:       1a79695\n  Built:            Mon Sep  4 12:31:36 2023\n  OS/Arch:          linux/arm64\n  Experimental:     false\n containerd:\n  Version:          1.6.22\n  GitCommit:        8165feabfdfe38c65b599c4993d227328c231fca\n runc:\n  Version:          1.1.8\n  GitCommit:        v1.1.8-0-g82f18fe\n docker-init:\n  Version:          0.19.0\n  GitCommit:        de40ad0\n```\n\nThe files in `site/` contain a minimal Astro sample app.\n\n## Reference\n\n### GA (Docker Compose `2.22.0`-)\n\n- [Announcing Docker Compose Watch GA Release](https://www.docker.com/blog/announcing-docker-compose-watch-ga-release/)\n- [Docker Desktop 4.24: Compose Watch, Resource Saver, and Docker Engine](https://www.docker.com/blog/docker-desktop-4-24-compose-watch-resource-saver-and-docker-engine/)\n- [2.22.0 | Docker Compose release notes | Docker Documentation](https://docs.docker.com/compose/release-notes/#2220)\n  - 2023-09-21\n  - In this release the `watch` command became GA.\n\n### Experimental (Docker Compose `2.16.0`-`2.21.0`)\n\n- [Automatically update services with file watch | Docker Documentation](https://docs.docker.com/compose/file-watch/)\n- [Docker Compose Experiment: Sync Files and Automatically Rebuild Services with Watch Mode](https://www.docker.com/blog/docker-compose-experiment-sync-files-and-automatically-rebuild-services-with-watch-mode/)\n- [GitHub - dockersamples/avatars: Sample project for the Tilt getting started tutorial](https://github.com/dockersamples/avatars)\n- [2.16.0 | Docker Compose release notes | Docker Documentation](https://docs.docker.com/compose/release-notes/#2160)\n  - 2023-02-08\n  - In this release the experimantal `watch` command was introduced.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgh640%2Fdocker-compose-watch-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgh640%2Fdocker-compose-watch-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgh640%2Fdocker-compose-watch-example/lists"}