-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.java.yml
More file actions
35 lines (34 loc) · 1.01 KB
/
compose.java.yml
File metadata and controls
35 lines (34 loc) · 1.01 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
# compose.java.yml — Stack Java completo (12 casos operativos)
#
# Un solo contenedor, un solo puerto.
# El dispatcher interno enruta por prefijo de path:
#
# GET http://localhost:8400/ → indice de los 12 casos Java
# GET http://localhost:8400/01/... → caso 01
# GET http://localhost:8400/12/... → caso 12
#
# Los 12 servidores de caso corren como subprocesos internos en puertos
# 9401-9412 que nunca se exponen al host.
#
# Uso:
# docker compose -f compose.java.yml up -d --build
# docker compose -f compose.java.yml down
# docker compose -f compose.java.yml logs -f
services:
java-lab:
build:
context: .
dockerfile: java-dispatcher/Dockerfile
container_name: pdsl-java-lab
ports:
- "8400:8400"
environment:
APP_STACK: Java 21
PORT: "8400"
healthcheck:
test: ["CMD-SHELL", "wget -qO- http://127.0.0.1:8400/01/health > /dev/null || exit 1"]
interval: 10s
timeout: 3s
retries: 12
start_period: 30s
restart: unless-stopped