{"id":16617866,"url":"https://github.com/jreijn/spring-session-docker-demo","last_synced_at":"2025-10-12T20:02:39.572Z","repository":{"id":140006302,"uuid":"39350659","full_name":"jreijn/spring-session-docker-demo","owner":"jreijn","description":"This project uses Spring Boot, Spring Session, Redis, HAProxy and Docker to run HA environment with Docker Compose","archived":false,"fork":false,"pushed_at":"2015-09-14T20:40:49.000Z","size":148,"stargazers_count":27,"open_issues_count":1,"forks_count":28,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-01T05:03:02.211Z","etag":null,"topics":["docker","haproxy","spring-boot","spring-session"],"latest_commit_sha":null,"homepage":"http://www.jeroenreijn.com/2015/09/testing-session-replication-with-docker-compose-redis-spring-session.html","language":"Java","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/jreijn.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}},"created_at":"2015-07-19T22:08:02.000Z","updated_at":"2023-02-12T13:55:48.000Z","dependencies_parsed_at":"2023-03-13T07:46:00.835Z","dependency_job_id":null,"html_url":"https://github.com/jreijn/spring-session-docker-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jreijn/spring-session-docker-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jreijn%2Fspring-session-docker-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jreijn%2Fspring-session-docker-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jreijn%2Fspring-session-docker-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jreijn%2Fspring-session-docker-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jreijn","download_url":"https://codeload.github.com/jreijn/spring-session-docker-demo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jreijn%2Fspring-session-docker-demo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262900086,"owners_count":23381657,"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","haproxy","spring-boot","spring-session"],"created_at":"2024-10-12T02:18:25.620Z","updated_at":"2025-10-12T20:02:39.406Z","avatar_url":"https://github.com/jreijn.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spring Session Demo with Docker and Docker Compose\n\nThis is a demo project, which uses Spring Boot, Spring Session, Redis, HAProxy and Docker to demonstrate the use of Spring Session within a scalable environment.\n\n## Prerequisets\n\n```\n$ docker-machine create --driver virtualbox dev\n```\n\nTo be able to let docker talk to the machine we've just created we need to export some environment variables. You can do this by using:\n\n```\n$ eval \"$(docker-machine env dev)\"\n```\n\n## How to run\n\nGo into the 'app' directory and let's first build the application.\n\n```\n$ mvn package\n```\n\nGo back into the root of the project.\n\nBuild the container images\n\n```\n$ docker-compose build\n```\n\nStart docker-compose and watch the containers start\n\n```\n$ docker-compose run\n```\n\n## Playing around with the App\n\nTo figure out on which host you can see the application you can run:\n\n```\n$ docker-machine ip dev\n```\n\nNow we know the ip address on which the container host is running. This is important because HAProxy is exposed on port 80 of the host.\n\nNow you can connect to http://[DOCKER_HOST]/ and you should see the app.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjreijn%2Fspring-session-docker-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjreijn%2Fspring-session-docker-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjreijn%2Fspring-session-docker-demo/lists"}