-
Notifications
You must be signed in to change notification settings - Fork 4.2k
build(docker): add web client and control center services to docker compose setup #4197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 10 commits
e9e33d7
f606675
a84bb9e
115ba2a
89fa634
2c62e41
270db2a
13ed018
dd1d576
542b115
ce5ca87
61573ac
42c8346
3e9a23c
5b126a0
e44f2a7
7a552e5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -122,6 +122,45 @@ services: | |
labels: | ||
logs: "promtail" | ||
|
||
### Web Client | ||
hyperswitch-web: | ||
ports: | ||
- "9050:9050" | ||
- "9060:9060" | ||
- "5252:5252" | ||
build: | ||
context: ./docker | ||
dockerfile: web.Dockerfile | ||
env_file: | ||
- ./.env | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @prasad89 can you add this env file if it is needed, I'd prefer all variables in the below There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @lsampras We've set up a configuration block with default variable pointers. - HYPERSWITCH_SERVER_URL=${HYPERSWITCH_SERVER_URL:-http://hyperswitch-server:8080}
- HYPERSWITCH_CLIENT_URL=${HYPERSWITCH_CLIENT_URL:-http://localhost:9050}
- SELF_SERVER_URL=${SELF_SERVER_URL:-http://localhost:5252} For confidentiality, Therefore, the complete HYPERSWITCH_PUBLISHABLE_KEY=HYPERSWITCH_PUBLISHABLE_KEY
HYPERSWITCH_SECRET_KEY=HYPERSWITCH_SECRET_KEY
HYPERSWITCH_SERVER_URL=http://hyperswitch-server:8080
HYPERSWITCH_CLIENT_URL=http://localhost:9050
SELF_SERVER_URL=http://localhost:5252 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. but then you are specifying these keys here as well,
in that case we can remove the .env file There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In our configuration, we're defining the We are using There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @lsampras, so the process for configuring the application flow will involve creating a There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @lsampras Yes, those should be present in the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @lsampras hope I explained you well. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yeah, Can you test that flow once on your end and lmk if you are able to make payments through that? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @lsampras have tested the flow added one fix for the same. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @prasad89 Can you make sure the SDK loads in control-center ![]() |
||
environment: | ||
- HYPERSWITCH_PUBLISHABLE_KEY=$HYPERSWITCH_PUBLISHABLE_KEY | ||
- HYPERSWITCH_SECRET_KEY=$HYPERSWITCH_SECRET_KEY | ||
prasad89 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- HYPERSWITCH_SERVER_URL=${HYPERSWITCH_SERVER_URL:-http://hyperswitch-server:8080} | ||
- HYPERSWITCH_CLIENT_URL=${HYPERSWITCH_CLIENT_URL:-http://localhost:9050} | ||
prasad89 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- SELF_SERVER_URL=${SELF_SERVER_URL:-http://localhost:5252} | ||
SanchithHegde marked this conversation as resolved.
Show resolved
Hide resolved
|
||
depends_on: | ||
hyperswitch-server: | ||
condition: service_started | ||
lsampras marked this conversation as resolved.
Show resolved
Hide resolved
|
||
labels: | ||
logs: "promtail" | ||
|
||
### Control Center | ||
hyperswitch-control-center: | ||
prasad89 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
image: juspaydotin/hyperswitch-control-center:latest | ||
ports: | ||
- "9000:9000" | ||
environment: | ||
- apiBaseUrl=http://localhost:8080 | ||
- sdkBaseUrl=http://localhost:9050 | ||
prasad89 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
depends_on: | ||
hyperswitch-server: | ||
condition: service_started | ||
hyperswitch-web: | ||
condition: service_started | ||
lsampras marked this conversation as resolved.
Show resolved
Hide resolved
|
||
labels: | ||
logs: "promtail" | ||
|
||
### Clustered Redis setup | ||
redis-cluster: | ||
image: redis:7 | ||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -0,0 +1,15 @@ | ||||||
FROM node:lts | ||||||
|
||||||
RUN npm install concurrently -g | ||||||
|
||||||
WORKDIR /hyperswitch-web | ||||||
|
||||||
RUN git clone https://github.com/juspay/hyperswitch-web . | ||||||
lsampras marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
|
||||||
RUN npm install | ||||||
|
||||||
EXPOSE 9050 | ||||||
EXPOSE 5252 | ||||||
EXPOSE 9060 | ||||||
|
||||||
CMD concurrently "npm run re:build" "npm run start" "npm run start:playground" | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for the suggestion. |
Uh oh!
There was an error while loading. Please reload this page.