Skip to content
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

fix(docker): Integrate Hyperswitch Web Client and Control Center into Docker Compose Setup #4200

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 34 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ services:
ports:
- "8080:8080"
networks:
- router_net
- hyperswitch_net
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please revert this change, and replace hyperswitch_net with router_net everywhere else.

volumes:
- ./config:/local/config
- ./files:/local/bin/files
Expand All @@ -64,6 +64,21 @@ services:
start_period: 5s
timeout: 10s

hyperswitch-web:
ports:
- "9050:9050"
- "9060:9060"
- "5252:5252"
build:
context: ./docker
dockerfile: web.Dockerfile
Comment on lines +72 to +74
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you include the Dockerfile in the PR?

networks:
- hyperswitch_net
environment:
- HYPERSWITCH_SERVER_URL=http://hyperswitch-server:8080
depends_on:
- hyperswitch-server

hyperswitch-producer:
image: juspaydotin/hyperswitch-producer:standalone
command: /local/bin/scheduler -f /local/config/docker_compose.toml
Expand All @@ -81,6 +96,23 @@ services:
labels:
logs: "promtail"

hyperswitch-control-center:
image: juspaydotin/hyperswitch-control-center
ports:
- "9000:9000"
networks:
- hyperswitch_net
Comment on lines +103 to +104
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this might not be needed since there isn't any inter-service communication happening here...
since all communication happens on the host machine and is initiated by browser

environment:
- apiBaseUrl=http://hyperswitch-server:8080
- sdkBaseUrl=http://hyperswitch-web:9050
depends_on:
- hyperswitch-server
- hyperswitch-web

networks:
hyperswitch_net:
#network configurations here if required
Comment on lines +112 to +114
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We already have the network defined at the beginning of the file.


hyperswitch-consumer:
image: juspaydotin/hyperswitch-consumer:standalone
command: /local/bin/scheduler -f /local/config/docker_compose.toml
Expand Down Expand Up @@ -332,4 +364,4 @@ services:
ulimits:
nofile:
soft: 262144
hard: 262144
hard: 262144
Loading