forked from solutions-plug/predictIQ
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.test.yml
More file actions
65 lines (60 loc) · 1.58 KB
/
Copy pathdocker-compose.test.yml
File metadata and controls
65 lines (60 loc) · 1.58 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
version: '3.8'
# Test-only compose stack.
# Provides isolated PostgreSQL, Redis, and a Stellar standalone network
# for integration tests. Do NOT use this file in production.
#
# Usage:
# docker compose -f docker-compose.test.yml up -d
# # ... run tests ...
# docker compose -f docker-compose.test.yml down -v
services:
postgres-test:
image: postgres:15-alpine
container_name: predictiq-test-postgres
environment:
POSTGRES_USER: predictiq_test
POSTGRES_PASSWORD: predictiq_test
POSTGRES_DB: predictiq_test
ports:
- "5433:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U predictiq_test -d predictiq_test"]
interval: 5s
timeout: 5s
retries: 10
tmpfs:
- /var/lib/postgresql/data
networks:
- predictiq-test
redis-test:
image: redis:7-alpine
container_name: predictiq-test-redis
ports:
- "6380:6379"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 10
networks:
- predictiq-test
stellar-rpc-stub:
image: stellar/quickstart:latest
container_name: predictiq-test-stellar
command: --standalone --enable-soroban-rpc
environment:
- ENABLE_SOROBAN_RPC=true
ports:
- "8000:8000" # Horizon + Friendbot
- "8080:8080" # Stellar RPC
healthcheck:
test: ["CMD-SHELL", "curl -sf http://localhost:8000/health || exit 1"]
interval: 10s
timeout: 5s
retries: 20
start_period: 30s
networks:
- predictiq-test
networks:
predictiq-test:
driver: bridge