---
services:
ssh-server:
hostname: ssh-server
platform: linux/amd64
build:
context: ./sshd-test
container_name: ssh-server
networks:
ssh-network:
ipv4_address: 10.10.10.2
ssh-server-2:
hostname: ssh-server-2
platform: linux/amd64
build:
context: ./sshd-test
container_name: ssh-server-2
networks:
ssh-network:
ipv4_address: 10.10.10.5
http-server:
image: python:alpine
command: >
sh -c "
echo -n Hello > index.html &&
python -m http.server
"
networks:
ssh-network:
ipv4_address: 10.10.10.4
async-ssh2-tokio:
build: context: ../
dockerfile: ./tests/async-ssh2-tokio/Dockerfile
tty: true
networks:
ssh-network:
ipv4_address: 10.10.10.3
depends_on:
- ssh-server
- ssh-server-2
- http-server
networks:
ssh-network:
driver: bridge
ipam:
config:
- subnet: 10.10.10.0/24