-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.test.yml
More file actions
101 lines (94 loc) · 2.69 KB
/
docker-compose.test.yml
File metadata and controls
101 lines (94 loc) · 2.69 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
97
98
99
100
services:
# PostgreSQL Database (Test) with pgvector
postgres:
image: pgvector/pgvector:pg15
container_name: meho-postgres-test
environment:
POSTGRES_DB: meho_test
POSTGRES_USER: meho
POSTGRES_PASSWORD: password
ports:
- "5432:5432"
tmpfs:
- /var/lib/postgresql/data # Ephemeral storage for tests
volumes:
- ./scripts/init-db.sql:/docker-entrypoint-initdb.d/init-db.sql:ro
healthcheck:
test: ["CMD-SHELL", "pg_isready -U meho"]
interval: 5s
timeout: 3s
retries: 10
networks:
- meho-test-network
# Qdrant removed - using pgvector in PostgreSQL (Session 15)
# MinIO Object Storage (Test)
minio:
image: minio/minio:latest
container_name: meho-minio-test
command: server /data --console-address ":9001"
environment:
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: minioadmin
ports:
- "9000:9000"
- "9001:9001"
tmpfs:
- /data # Ephemeral storage
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 10s
timeout: 5s
retries: 10
networks:
- meho-test-network
# Redis Cache (Test)
redis:
image: redis:7-alpine
container_name: meho-redis-test
ports:
- "6379:6379"
command: redis-server --save "" # Disable persistence
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 10
networks:
- meho-test-network
# Keycloak Identity Provider (Test)
keycloak:
image: quay.io/keycloak/keycloak:24.0
container_name: meho-keycloak-test
environment:
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: test
KC_DB: postgres
KC_DB_URL: jdbc:postgresql://postgres:5432/keycloak_test
KC_DB_USERNAME: meho
KC_DB_PASSWORD: password
KC_HEALTH_ENABLED: "true"
KC_HTTP_ENABLED: "true"
KC_HOSTNAME_STRICT: "false"
KC_HOSTNAME_STRICT_HTTPS: "false"
KC_HOSTNAME_STRICT_BACKCHANNEL: "false"
KC_PROXY: edge
command: start-dev --import-realm
ports:
- "8080:8080"
volumes:
- ./tests/fixtures/keycloak:/opt/keycloak/data/import:ro
depends_on:
postgres:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "exec 3<>/dev/tcp/127.0.0.1/9000 && echo -e 'GET /health/ready HTTP/1.1\r\nHost: localhost\r\nConnection: close\r\n\r\n' >&3 && timeout 1 cat <&3 | grep -q 'UP'"]
interval: 10s
timeout: 5s
retries: 15
start_period: 60s
networks:
- meho-test-network
# RabbitMQ removed - not used by any code (removed in Session 35)
networks:
meho-test-network:
driver: bridge