28 lines
578 B
YAML
28 lines
578 B
YAML
|
|
services:
|
||
|
|
api:
|
||
|
|
build:
|
||
|
|
context: .
|
||
|
|
target: api
|
||
|
|
ports:
|
||
|
|
- "6733:6733"
|
||
|
|
healthcheck:
|
||
|
|
test: ["CMD", "curl", "-sf", "http://127.0.0.1:6733/healthz"]
|
||
|
|
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"
|