Files
mtusi2026lab2/docker-compose.yml
T
ricoromaandClaude Opus 5.5 7b775a29a9 chore: carry over lab 1 solution into lab 2 skeleton
Copy the committed lab 1 sources as-is: src/, student-tests/, bench/,
Dockerfile, docker-compose.yml, pyproject.toml, uv.lock,
.python-version, config_example.toml, AGENTS.md, CLAUDE.md, .claude/,
openspec/, .graphifyignore and KNOWN_ISSUES.md. Lab 1 evidence stays
in the lab 1 repository.

Merge the new skeleton files with own sections: Makefile (lab 2
targets plus own run, docker, bench and common targets), .gitignore,
.dockerignore and .env.example. Rename the image to
mtusi-messenger:lab2 and point AGENTS.md at lab 2.

The application is still the in-memory lab 1 implementation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 22:11:46 +03:00

25 lines
993 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Стенд лабы 1: один процесс API, состояние в памяти. Правила —
# .claude/rules/docker.md. Переменные — из .env (шаблон .env.example).
services:
api:
build: .
# тот же тег, что у docker build из README и make run_no_compose
image: mtusi-messenger:lab2
restart: unless-stopped
ports:
# только localhost: стенд учебный
- "127.0.0.1:${APP_OUT_PORT:-8080}:${APP__PORT:-8080}"
environment:
- APP__RUN_MODE=docker
- APP__PORT=${APP__PORT:-8080}
volumes:
# длинная запись: без файла запуск падает, а не создаёт каталог
- type: bind
source: ./config.toml
target: /app/config.toml
read_only: true
bind:
create_host_path: false
# healthcheck — из образа; SIGKILL не раньше, чем через 10 с
stop_grace_period: 10s