hello-yaaash25 commited on
Commit
acaecf4
Β·
1 Parent(s): e8e48b3

Add docker-compose.yml for payment, webhook, and OAuth2 services

Browse files
Files changed (1) hide show
  1. docker-compose.yml +60 -0
docker-compose.yml ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ services:
2
+ # Payment service with idempotency key support
3
+ payment-service:
4
+ build:
5
+ context: ./mock-lab
6
+ dockerfile: Dockerfile.payment
7
+ ports:
8
+ - "3001:3001"
9
+ environment:
10
+ - NODE_ENV=development
11
+ - PORT=3001
12
+ volumes:
13
+ - ./mock-lab/payments-data:/app/data
14
+ healthcheck:
15
+ test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3001/health"]
16
+ interval: 30s
17
+ timeout: 10s
18
+ retries: 3
19
+
20
+ # Webhook service with HMAC signature verification
21
+ webhook-service:
22
+ build:
23
+ context: ./mock-lab
24
+ dockerfile: Dockerfile.webhook
25
+ ports:
26
+ - "3002:3002"
27
+ environment:
28
+ - NODE_ENV=development
29
+ - PORT=3002
30
+ - WEBHOOK_SECRET=your-webhook-secret-key-here
31
+ healthcheck:
32
+ test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3002/health"]
33
+ interval: 30s
34
+ timeout: 10s
35
+ retries: 3
36
+
37
+ # OAuth2 PKCE server
38
+ oauth2-server:
39
+ build:
40
+ context: ./mock-lab
41
+ dockerfile: Dockerfile.oauth2
42
+ ports:
43
+ - "3003:3003"
44
+ environment:
45
+ - NODE_ENV=development
46
+ - PORT=3003
47
+ - ISSUER_URL=http://localhost:3003
48
+ healthcheck:
49
+ test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3003/.well-known/openid_configuration"]
50
+ interval: 30s
51
+ timeout: 10s
52
+ retries: 3
53
+
54
+ networks:
55
+ default:
56
+ name: docless-api-demo
57
+
58
+ volumes:
59
+ payments-data:
60
+ driver: local