version: '3.8'

services:
  client:
    image: busybox
    command: ['sleep', 'infinity']
    container_name: threats-client
    restart: unless-stopped
    ports:
      - '8080:8080'

  server:
    image: busybox
    command: ['sleep', 'infinity']
    container_name: threats-server
    restart: unless-stopped
    network_mode: service:client