hyperswitch icon indicating copy to clipboard operation
hyperswitch copied to clipboard

build(docker): add web, control-center in docker-compose

Open Dhanus3133 opened this issue 1 year ago • 4 comments

Added hyperswitch-web and hyperswitch-control-center in docker-compose

Type of Change

  • [ ] Bugfix
  • [x] New feature
  • [ ] Enhancement
  • [ ] Refactoring
  • [ ] Dependency updates
  • [ ] Documentation
  • [ ] CI/CD

Description

Two new services were added to start the SDK, demo, and control center automatically within docker-compose.

Solves #4110

Additional Changes

  • [ ] This PR modifies the API contract
  • [ ] This PR modifies the database schema
  • [x] This PR modifies application configuration/environment variables

Dhanus3133 avatar Mar 26 '24 04:03 Dhanus3133

Thanks for the PR, @Dhanus3133!

Also, how is the user expected to configure the publishable and API keys, and the remaining URLs?

image

Resolved it.

Dhanus3133 avatar Mar 27 '24 02:03 Dhanus3133

I noticed that one of the PRs closely mirrors mine. Just wanted to bring this matter to your attention.

Dhanus3133 avatar Mar 27 '24 09:03 Dhanus3133

@SanchithHegde do you know why this happens? image

Dhanus3133 avatar Apr 04 '24 05:04 Dhanus3133

@SanchithHegde do you know why this happens?

If you're running the web client and demo app within a Docker container, and use localhost:8080 as server URL, the web client / demo app would try to access a service running at port 8080 within the container itself, not on the host machine. You'd need to understand the intricacies of Docker networking, and then go with a suitable, clean approach for solving this.

SanchithHegde avatar Apr 04 '24 09:04 SanchithHegde