x-log-limits: &log-limits logging: driver: json-file options: max-file: "3" max-size: 20m services: jsmpp: build: ./interop-tests/peers/jsmpp image: interop-jsmpp:3.0.3-a24db96 command: ["node", "2775"] <<: *log-limits healthcheck: test: ["CMD-SHELL", "bash -c 'exec 3<>/dev/tcp/127.0.0.1/8080'"] interval: 1s retries: 30 timeout: 2s # jsmpp only ever dials node:2775 on this container's own network namespace, so this sees exactly # its side of every scenario below (same pattern as compose.kannel.yaml). capture: image: nicolaka/netshoot:v0.16 network_mode: "service:jsmpp" cap_add: - NET_ADMIN - NET_RAW depends_on: jsmpp: condition: service_started command: ["dumpcap", "-i", "any", "-f", "tcp port 2775", "-w", "/captures/jsmpp.pcapng"] volumes: - ./interop-tests/captures:/captures node: depends_on: capture: condition: service_started jsmpp: condition: service_healthy