Listens on tcp port 12345
and will echo back whatever is sent to the server.
- nc
- docker compose
To start
the Docker Compose stack defined in the compose.yaml file, use:
docker compose up -d
nc localhost 12345
Type a Hello, world
message and press enter
.
output:
Hello, world
Hello, world
To remove any resources created by the Docker Compose stack, use:
docker compose down