forked from devgateway/dg-toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-test.yml
More file actions
98 lines (93 loc) · 2.31 KB
/
docker-compose-test.yml
File metadata and controls
98 lines (93 loc) · 2.31 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
services:
# PostgreSQL database for the admin application
postgres:
image: postgis/postgis:15-3.3-alpine
restart: unless-stopped
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: admin
POSTGRES_USER: postgres
POSTGRES_DB: tcdi_admin
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d tcdi_admin"]
interval: 10s
timeout: 5s
retries: 5
networks:
- tcdi-network
# PostgreSQL database for the interference service (remote service)
postgres-interference:
image: postgis/postgis:15-3.3-alpine
restart: unless-stopped
ports:
- "5433:5432"
volumes:
- postgres_interference_data:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: admin
POSTGRES_USER: postgres
POSTGRES_DB: interference
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d interference"]
interval: 10s
timeout: 5s
retries: 5
networks:
- tcdi-network
# Eureka service registry
eureka:
image: steeltoeoss/eureka-server:latest
restart: unless-stopped
ports:
- "8761:8761"
environment:
EUREKA_SERVER_ENABLE_SELF_PRESERVATION: "false"
healthcheck:
test:
[
"CMD",
"wget",
"-q",
"--spider",
"http://localhost:8761/actuator/health",
]
interval: 10s
timeout: 5s
retries: 10
networks:
- tcdi-network
# Mock interference service for testing CSV uploads
# This is a simple mock that simulates the remote interference service API
mock-interference-service:
image: mockserver/mockserver:5.15.0
restart: unless-stopped
ports:
- "8090:1080"
environment:
MOCKSERVER_INITIALIZATION_JSON_PATH: /config/mockserver-init.json
MOCKSERVER_LOG_LEVEL: INFO
volumes:
- ./mockserver-init.json:/config/mockserver-init.json:ro
healthcheck:
test:
[
"CMD",
"wget",
"-q",
"--spider",
"http://localhost:1080/mockserver/status",
]
interval: 10s
timeout: 5s
retries: 5
networks:
- tcdi-network
networks:
tcdi-network:
driver: bridge
volumes:
postgres_data:
postgres_interference_data: