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

feat: Modified the Docker Compose file to include three new services: the web client, the React demo app (for the web client), and the control center. #4242

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
51 changes: 50 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,55 @@ services:
start_period: 5s
timeout: 10s

hyperswitch-web:
build:
context: ../hyperswitch-web
dockerfile: Dockerfile
ports:
- "9050:9050"
networks:
- router_net
depends_on:
hyperswitch-server:
condition: service_healthy

hyperswitch-web-demo:
build:
context: ../hyperswitch-web/Hyperswitch-React-Demo-App
dockerfile: Dockerfile
ports:
- "9060:9060"
- "5252:5252"
- "4242:4242"
networks:
- router_net
depends_on:
hyperswitch-server:
condition: service_healthy
hyperswitch-web:
condition: service_started
environment:
- HYPERSWITCH_PUBLISHABLE_KEY="<your_publishable_key>"
- HYPERSWITCH_SECRET_KEY="<your_secret_key>"
- HYPERSWITCH_SERVER_URL="http://localhost:8080/"
- HYPERSWITCH_CLIENT_URL="http://localhost:9050/"
- SELF_SERVER_URL="http://localhost:5252"

hyperswitch-control-center:
image: juspaydotin/hyperswitch-control-center:latest
ports:
- "9000:9000"
networks:
- router_net
depends_on:
hyperswitch-server:
condition: service_healthy
hyperswitch-web:
condition: service_started
environment:
- apiBaseUrl=http://localhost:8080 # URL on which the hyperswitch-server is hosted
- sdkBaseUrl=http://localhost:9050 # URL on which the hyperswitch-web is hosted

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