forked from sublime247/mobile-money
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
68 lines (63 loc) · 1.57 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
68 lines (63 loc) · 1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
version: "3.8"
services:
app:
image: node:20-alpine
working_dir: /app
command: npx tsx watch --inspect=0.0.0.0:9229 src/index.ts
ports:
- "3000:3000"
- "9229:9229"
volumes:
- .:/app
- /app/node_modules
environment:
- NODE_ENV=development
- DATABASE_URL=postgresql://user:password@db:5432/mobilemoney_stellar
- REDIS_URL=redis://redis:6379
- MTN_BASE_URL=http://provider-mock:4010/mtn
- MTN_TARGET_ENVIRONMENT=sandbox
- AIRTEL_BASE_URL=http://provider-mock:4010/airtel
- AIRTEL_COUNTRY=NG
- AIRTEL_CURRENCY=NGN
env_file:
- .env
depends_on:
- db
- redis
- provider-mock
db:
image: postgres:16-alpine
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: password
POSTGRES_DB: mobilemoney_stellar
ports:
- "5432:5432"
volumes:
- postgres_dev_data:/var/lib/postgresql/data
redis:
image: redis:7-alpine
ports:
- "6379:6379"
command: redis-server /usr/local/etc/redis/redis.conf
volumes:
- ./redis.conf:/usr/local/etc/redis/redis.conf:ro
- redis_dev_data:/data
provider-mock:
image: node:20-alpine
working_dir: /app
command: npx tsx watch scripts/provider-mock-server.ts
ports:
- "4010:4010"
volumes:
- .:/app
- /app/node_modules
environment:
- NODE_ENV=development
- PROVIDER_MOCK_PORT=4010
- PROVIDER_MOCK_DELAY_MS=0
- PROVIDER_MOCK_BALANCE=100000
- PROVIDER_MOCK_CURRENCY=XAF
volumes:
postgres_dev_data:
redis_dev_data: