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
96 lines (90 loc) · 2.33 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
96 lines (90 loc) · 2.33 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
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
- SMTP_HOST=maildev
- SMTP_PORT=1025
- STELLAR_HORIZON_URL=http://stellar:8000
- STELLAR_NETWORK=local
env_file:
- .env
depends_on:
db:
condition: service_healthy
redis:
condition: service_healthy
maildev:
condition: service_healthy
stellar:
condition: service_healthy
db:
image: postgres:16-alpine
container_name: mobilemoney_db_dev
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: password
POSTGRES_DB: mobilemoney_stellar
ports:
- "5432:5432"
volumes:
- postgres_dev_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U user -d mobilemoney_stellar"]
interval: 5s
timeout: 5s
retries: 10
redis:
image: redis:7-alpine
container_name: mobilemoney_redis_dev
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
command: redis-server --appendonly yes
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 10
maildev:
image: maildev/maildev:2.1.0
container_name: mobilemoney_maildev_dev
restart: unless-stopped
ports:
- "1080:1080" # Web UI
- "1025:1025" # SMTP Port
healthcheck:
test: ["CMD-SHELL", "nc -z localhost 1025 || exit 1"]
interval: 5s
timeout: 3s
retries: 5
stellar:
image: stellar/quickstart:latest
container_name: mobilemoney_stellar_quickstart_dev
restart: unless-stopped
ports:
- "8000:8000" # Horizon API
command: ["--standalone", "--enable-horizon"]
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:8000 || exit 1"]
interval: 10s
timeout: 5s
retries: 10
start_period: 30s
volumes:
postgres_dev_data:
redis_dev_data: