Files
mtusi2026lab2/compose.yaml
T

13 lines
437 B
YAML

services:
api:
build: .
image: mtusi-messenger:lab2
# Fixed name so the Makefile targets and student-tests/lifecycle.sh address
# the same container whether it was started by compose or by docker run.
container_name: mtusi-messenger-lab2
env_file: .env
# Loopback only; override with PUBLISH=127.0.0.1:18080 when 8080 is busy.
ports:
- "${PUBLISH:-127.0.0.1:8080}:8080"
stop_grace_period: 10s