mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-11-01 02:57:02 +08:00 
			
		
		
		
	build(docker): add web client and control center services to docker compose setup (#4197)
This commit is contained in:
		| @ -123,6 +123,39 @@ services: | |||||||
|     labels: |     labels: | ||||||
|       logs: "promtail" |       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 | ||||||
|  |       - 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} | ||||||
|  |       - SDK_ENV=${SDK_ENV:-local} | ||||||
|  |       - ENV_SDK_URL=${ENV_SDK_URL:-http://localhost:9050} | ||||||
|  |       - ENV_BACKEND_URL=${ENV_BACKEND_URL:-http://localhost:8080} | ||||||
|  |       - ENV_LOGGING_URL=${ENV_LOGGING_URL:-http://localhost:3100} | ||||||
|  |     labels:   | ||||||
|  |       logs: "promtail"   | ||||||
|  |  | ||||||
|  |   ### Control Center | ||||||
|  |   hyperswitch-control-center: | ||||||
|  |     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 |   ### Clustered Redis setup | ||||||
|   redis-cluster: |   redis-cluster: | ||||||
|     image: redis:7 |     image: redis:7 | ||||||
|  | |||||||
							
								
								
									
										15
									
								
								docker/web.Dockerfile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								docker/web.Dockerfile
									
									
									
									
									
										Normal file
									
								
							| @ -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 . | ||||||
|  |  | ||||||
|  | RUN npm install | ||||||
|  |  | ||||||
|  | EXPOSE 9050 | ||||||
|  | EXPOSE 5252 | ||||||
|  | EXPOSE 9060 | ||||||
|  |  | ||||||
|  | CMD concurrently "npm run re:build && npm run start" "npm run start:playground" | ||||||
		Reference in New Issue
	
	Block a user
	 Prasad Bhalerao
					Prasad Bhalerao