| 1 |
services: |
| 2 |
piped-test: |
| 3 |
image: alpine |
| 4 |
command: cat |
| 5 |
# Service that will receive piped input and echo it back |
| 6 |
tty-test: |
| 7 |
image: alpine |
| 8 |
command: sh -c "if [ -t 0 ]; then echo 'TTY detected'; else echo 'No TTY detected'; fi" |
| 9 |
# Service to test TTY detection |