Skip to content

Commit b1cfef2

Browse files
authored
build(docker): add web client and control center services to docker compose setup (#4197)
1 parent 575fac6 commit b1cfef2

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed

docker-compose.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,39 @@ services:
123123
labels:
124124
logs: "promtail"
125125

126+
### Web Client
127+
hyperswitch-web:
128+
ports:
129+
- "9050:9050"
130+
- "9060:9060"
131+
- "5252:5252"
132+
build:
133+
context: ./docker
134+
dockerfile: web.Dockerfile
135+
environment:
136+
- HYPERSWITCH_PUBLISHABLE_KEY=$HYPERSWITCH_PUBLISHABLE_KEY
137+
- HYPERSWITCH_SECRET_KEY=$HYPERSWITCH_SECRET_KEY
138+
- HYPERSWITCH_SERVER_URL=${HYPERSWITCH_SERVER_URL:-http://hyperswitch-server:8080}
139+
- HYPERSWITCH_CLIENT_URL=${HYPERSWITCH_CLIENT_URL:-http://localhost:9050}
140+
- SELF_SERVER_URL=${SELF_SERVER_URL:-http://localhost:5252}
141+
- SDK_ENV=${SDK_ENV:-local}
142+
- ENV_SDK_URL=${ENV_SDK_URL:-http://localhost:9050}
143+
- ENV_BACKEND_URL=${ENV_BACKEND_URL:-http://localhost:8080}
144+
- ENV_LOGGING_URL=${ENV_LOGGING_URL:-http://localhost:3100}
145+
labels:
146+
logs: "promtail"
147+
148+
### Control Center
149+
hyperswitch-control-center:
150+
image: juspaydotin/hyperswitch-control-center:latest
151+
ports:
152+
- "9000:9000"
153+
environment:
154+
- apiBaseUrl=http://localhost:8080
155+
- sdkBaseUrl=http://localhost:9050/HyperLoader.js
156+
labels:
157+
logs: "promtail"
158+
126159
### Clustered Redis setup
127160
redis-cluster:
128161
image: redis:7

docker/web.Dockerfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM node:lts
2+
3+
RUN npm install concurrently -g
4+
5+
WORKDIR /hyperswitch-web
6+
7+
RUN git clone https://github.com/juspay/hyperswitch-web --depth 1 .
8+
9+
RUN npm install
10+
11+
EXPOSE 9050
12+
EXPOSE 5252
13+
EXPOSE 9060
14+
15+
CMD concurrently "npm run re:build && npm run start" "npm run start:playground"

0 commit comments

Comments
 (0)