Files

28 lines
589 B
YAML
Raw Permalink Normal View History

services:
api:
build:
context: .
target: api
ports:
- "6733:6733"
healthcheck:
test: ["CMD", "curl", "-s", "-o", "/dev/null", "http://127.0.0.1:6733/"]
interval: 2s
timeout: 2s
retries: 15
start_period: 5s
simulator:
build:
context: .
target: simulator
depends_on:
api:
condition: service_healthy
command: ["-host", "api", "-port", "6733"]
working_dir: /output
volumes:
- ./output:/output
# Ensure the bind-mounted host dir is writable for results.txt
user: "0:0"