-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.test.yml
More file actions
149 lines (140 loc) · 3.61 KB
/
docker-compose.test.yml
File metadata and controls
149 lines (140 loc) · 3.61 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
# Docker Compose for testing gait-detection container with different BASE_PATH values
# Usage: docker-compose -f docker-compose.test.yml up <service-name>
version: '3.8'
services:
# Test 1: ROOT PATH (BASE_PATH=/)
gait-test-root:
build:
context: .
dockerfile: Dockerfile
container_name: gait-test-root
ports:
- "8080:8080"
environment:
- BASE_PATH=/
- NODE_ENV=production
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
interval: 10s
timeout: 5s
retries: 3
start_period: 10s
profiles:
- test-root
# Test 2: GAIT PATH (BASE_PATH=/gait) - Current deployment
gait-test-gait:
build:
context: .
dockerfile: Dockerfile
container_name: gait-test-gait
ports:
- "8081:8080"
environment:
- BASE_PATH=/gait
- NODE_ENV=production
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/gait/health"]
interval: 10s
timeout: 5s
retries: 3
start_period: 10s
profiles:
- test-gait
# Test 3: APP PATH (BASE_PATH=/app)
gait-test-app:
build:
context: .
dockerfile: Dockerfile
container_name: gait-test-app
ports:
- "8082:8080"
environment:
- BASE_PATH=/app
- NODE_ENV=production
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/app/health"]
interval: 10s
timeout: 5s
retries: 3
start_period: 10s
profiles:
- test-app
# Test 4: NESTED PATH (BASE_PATH=/deeply/nested/path)
gait-test-nested:
build:
context: .
dockerfile: Dockerfile
container_name: gait-test-nested
ports:
- "8083:8080"
environment:
- BASE_PATH=/deeply/nested/path
- NODE_ENV=production
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/deeply/nested/path/health"]
interval: 10s
timeout: 5s
retries: 3
start_period: 10s
profiles:
- test-nested
# Test 5: SPECIAL CHARACTERS (BASE_PATH=/test-with-hyphens)
gait-test-special:
build:
context: .
dockerfile: Dockerfile
container_name: gait-test-special
ports:
- "8084:8080"
environment:
- BASE_PATH=/test-with-hyphens
- NODE_ENV=production
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/test-with-hyphens/health"]
interval: 10s
timeout: 5s
retries: 3
start_period: 10s
profiles:
- test-special
# Test 6: API SUBPATH (BASE_PATH=/api/v1/gait)
gait-test-api:
build:
context: .
dockerfile: Dockerfile
container_name: gait-test-api
ports:
- "8085:8080"
environment:
- BASE_PATH=/api/v1/gait
- NODE_ENV=production
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/api/v1/gait/health"]
interval: 10s
timeout: 5s
retries: 3
start_period: 10s
profiles:
- test-api
# Test 7: UNDERSCORE PATH (BASE_PATH=/gait_detection)
gait-test-underscore:
build:
context: .
dockerfile: Dockerfile
container_name: gait-test-underscore
ports:
- "8086:8080"
environment:
- BASE_PATH=/gait_detection
- NODE_ENV=production
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/gait_detection/health"]
interval: 10s
timeout: 5s
retries: 3
start_period: 10s
profiles:
- test-underscore
networks:
default:
driver: bridge