gitKeep/docker-compose.yml

11 lines
315 B
YAML

services:
test-server:
image: python:3.15-rc-slim
command: >
sh -c "mkdir mock_api &&
echo '{\"message\":\"hello\"}' > mock_api/hello &&
echo 'hello' > mock_api/hello-raw &&
python -m http.server 8080 -d mock_api
"
ports:
- "8080:8080"