version: "3" services: numa-0: build: context: "base/" dockerfile: "Dockerfile" cap_add: - NET_RAW command: ["/usr/sbin/sshd","-D", "-p", "6001"] expose: - "6001" hostname: "{{ ansible_hostname[:-1] }}1" network_mode: "host" privileged: true restart: "always" shm_size: "4G" volumes: {% for volume in docker_volumes %} - type: "bind" source: "{{ volume.source }}" target: "{{ volume.target }}" {% endfor %} numa-1: build: context: "base/" dockerfile: "Dockerfile" cap_add: - NET_RAW command: ["/usr/sbin/sshd","-D", "-p", "6002"] expose: - "6002" hostname: "{{ ansible_hostname[:-1] }}2" network_mode: "host" privileged: true restart: "always" shm_size: "4G" volumes: {% for volume in docker_volumes %} - type: "bind" source: "{{ volume.source }}" target: "{{ volume.target }}" {% endfor %}