{"id":18357465,"url":"https://github.com/edm00se/proxy-simple-docker-compose-node-redis-demo","last_synced_at":"2025-12-30T23:05:07.960Z","repository":{"id":146876454,"uuid":"235669327","full_name":"edm00se/proxy-simple-docker-compose-node-redis-demo","owner":"edm00se","description":"uses traefik to proxy docker requests for scalable web app instances, based on edm00se/simple-docker-compose-node-redis-demo","archived":false,"fork":false,"pushed_at":"2024-12-06T17:38:08.000Z","size":339,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-15T17:49:54.855Z","etag":null,"topics":["docker","docker-compose","nodejs","redis","traefik"],"latest_commit_sha":null,"homepage":null,"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/edm00se.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":"2020-01-22T21:20:55.000Z","updated_at":"2024-12-06T17:38:12.000Z","dependencies_parsed_at":"2024-03-28T19:45:16.915Z","dependency_job_id":"5265db3b-d697-4784-b66e-68aa3a6c6f73","html_url":"https://github.com/edm00se/proxy-simple-docker-compose-node-redis-demo","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/edm00se%2Fproxy-simple-docker-compose-node-redis-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edm00se%2Fproxy-simple-docker-compose-node-redis-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edm00se%2Fproxy-simple-docker-compose-node-redis-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edm00se%2Fproxy-simple-docker-compose-node-redis-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/edm00se","download_url":"https://codeload.github.com/edm00se/proxy-simple-docker-compose-node-redis-demo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248144107,"owners_count":21054869,"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","nodejs","redis","traefik"],"created_at":"2024-11-05T22:14:03.732Z","updated_at":"2025-12-30T23:05:07.945Z","avatar_url":"https://github.com/edm00se.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker Compose Getting Started\n\nThis is built as a fork from [edm00se/simple-docker-compose-node-redis-demo](https://github.com/edm00se/simple-docker-compose-node-redis-demo), which is a [Node.js](https://nodejs.org/) re-interpretation of [the Docker \"getting started\" guide from their docs](https://docs.docker.com/compose/gettingstarted/). If you are unfamiliar with either, you should start there.\n\nThis project extends [edm00se/simple-docker-compose-node-redis-demo](https://github.com/edm00se/simple-docker-compose-node-redis-demo) by:\n\n- adding [traefik](https://docs.traefik.io/) as a load balancer, via the `docker-compose.yml` config\n- re-configuring the `Dockerfile` to expose the HTTP port, instead of solely within the `docker-compose.yml` configuration\n  - this allows traefik to pick it up automagically\n- the `app.js` response now incldues the container ID as \"hostname\" in the response\n\n## Required\n\n1. [Docker](https://www.docker.com/)\n2. [Docker Compose](https://docs.docker.com/compose/install/) (this should come with [Docker CE / Docker Desktop](https://store.docker.com/search?offering=community\u0026type=edition) for both macOS and Windows)\n\n## Clone and Run\n\n1. `git clone https://github.com/edm00se/proxy-simple-docker-compose-node-redis-demo.git`\n2. `cd proxy-simple-docker-compose-node-redis-demo`\n3. `docker-compose up` (first time run will perform build)\n    - you can force a fresh build with `--build`\n    - you can background (run without holding up your CLI) by using `--detach`\n    - you can stop and remove the containers associated by substituting `down` in place of `up`\n4. `docker-compose up -d --scale web=2` will scale up the \"web\" app service of our compose config to the specified number\n\n## Test\n\n```sh\ncurl -H Host:myapp.docker.localhost http://127.0.0.1\n```\n\nThe \"myapp\" label is applied in the defined `labels:` field for the `docker-compose.yml` config definition of the web app \"service\". By specifying a `Host` header in our request, we are specifying a destination that traefik can interpret.\n\n## License\n\nThe MIT License (MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedm00se%2Fproxy-simple-docker-compose-node-redis-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fedm00se%2Fproxy-simple-docker-compose-node-redis-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedm00se%2Fproxy-simple-docker-compose-node-redis-demo/lists"}