-
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 12 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,39 @@ services: | |
labels: | ||
logs: "promtail" | ||
|
||
### Web Client | ||
hyperswitch-web: | ||
ports: | ||
- "9050:9050" | ||
- "9060:9060" | ||
- "5252:5252" | ||
build: | ||
context: ./docker | ||
dockerfile: web.Dockerfile | ||
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
|
||
- SDK_ENV=${SDK_ENV:-local} | ||
- ENV_SDK_URL=${ENV_SDK_URL:-http://localhost:9050/HyperLoader.js} | ||
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. This won't have the |
||
- ENV_BACKEND_URL=${ENV_BACKEND_URL:-http://localhost:8080} | ||
- ENV_LOGGING_URL=${ENV_LOGGING_URL:-http://localhost:3100} | ||
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. I believe you picked this up from the issue that was mentioned in the fix, but that change hasn't been merged to either use the older SDK variable keys or pull that branch instead of main in your dockerfile |
||
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/HyperLoader.js | ||
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 . --depth 1 | ||
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. The ordering here seems incorrect |
||
|
||
RUN npm install | ||
|
||
EXPOSE 9050 | ||
EXPOSE 5252 | ||
EXPOSE 9060 | ||
|
||
CMD concurrently "npm run re:build && npm run start" "npm run start:playground" |
Uh oh!
There was an error while loading. Please reload this page.