-
Notifications
You must be signed in to change notification settings - Fork 102
Expand file tree
/
Copy pathdocker-compose.test.yml
More file actions
39 lines (35 loc) · 1.06 KB
/
Copy pathdocker-compose.test.yml
File metadata and controls
39 lines (35 loc) · 1.06 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
version: '3.9'
services:
postgres_test:
image: postgres:15-alpine
environment:
POSTGRES_USER: bankerchanger
POSTGRES_PASSWORD: bankerchanger
POSTGRES_DB: bankerchanger_test
ports:
- '5433:5432'
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U bankerchanger']
interval: 10s
timeout: 5s
retries: 5
redis_test:
image: redis:7-alpine
ports:
- '6380:6379'
healthcheck:
test: ['CMD', 'redis-cli', 'ping']
interval: 10s
timeout: 5s
retries: 5
mock_soroban_rpc:
image: node:20-alpine
working_dir: /app
command: node -e "const http = require('http'); http.createServer((req, res) => { res.writeHead(200, {'Content-Type': 'application/json'}); res.end(JSON.stringify({ jsonrpc: '2.0', id: 1, result: { status: 'SUCCESS' } })); }).listen(8000, () => console.log('Mock Soroban RPC listening on port 8000'));"
ports:
- '8000:8000'
healthcheck:
test: ['CMD', 'wget', '-qO-', 'http://localhost:8000/']
interval: 5s
timeout: 3s
retries: 5