version: "3"
name: third-party-testing
services:
server:
build: .
image: server-client
environment:
- RUST_LOG=debug
healthcheck:
test: ["CMD", "lsof", "-i:67"]
interval: 30s
timeout: 4m
retries: 10
start_period: 20s
command: ./target/release/server
client:
cap_add:
- NET_ADMIN
image: server-client
pull_policy: never
environment:
- RUST_LOG=debug
depends_on:
server:
condition: service_healthy
command: ./target/release/client --interface eth0 dora
dhclient:
cap_add:
- NET_ADMIN
build:
dockerfile_inline: |
FROM debian:trixie-slim
RUN apt-get update && apt-get install -y isc-dhcp-client
depends_on:
server:
condition: service_healthy
command: dhclient -v -p 68