-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.test.yml
More file actions
65 lines (61 loc) · 1.83 KB
/
docker-compose.test.yml
File metadata and controls
65 lines (61 loc) · 1.83 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'
# E2E test environment for Universal Analyzer Bridge
# Exercises all transport types: ASTM TCP, MLLP, File, HTTP
# Uses WireMock as capture server for request verification
services:
# OpenELIS Analyzer Bridge (under test)
openelis-analyzer-bridge:
build: .
ports:
- "12001:12001" # ASTM LIS1-A listener
- "12011:12011" # ASTM E1381-95 listener
- "2575:2575" # MLLP HL7 listener
- "8443:8443" # HTTP /input endpoint + actuator
environment:
LOGGING_LEVEL_ORG_ITECH: DEBUG
LOGGING_LEVEL_ROOT: INFO
volumes:
- ./configuration.test.yml:/app/configuration.yml:ro
- ./test-data/file-input:/mnt/analyzer-import
- ./test-data/file-archive:/mnt/analyzer-archive
- ./test-data/file-error:/mnt/analyzer-error
networks:
astm-test-net:
ipv4_address: 172.28.0.100
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8443/actuator/health"]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
depends_on:
wiremock:
condition: service_healthy
# WireMock — captures forwarded messages for verification
# Query API: GET http://localhost:8080/__admin/requests
# Reset: DELETE http://localhost:8080/__admin/requests
wiremock:
image: wiremock/wiremock:3.3.1
container_name: wiremock-capture
ports:
- "8080:8080"
command:
- --port=8080
- --verbose
- --global-response-templating
volumes:
- ./test-data/wiremock:/home/wiremock
networks:
astm-test-net:
ipv4_address: 172.28.0.200
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/__admin/health"]
interval: 5s
timeout: 3s
retries: 5
networks:
astm-test-net:
driver: bridge
ipam:
config:
- subnet: 172.28.0.0/24