version: "2" services: simple: image: busybox:1.31.0-uclibc command: sh -c "sleep 1 && echo hello && tail -f /dev/null" another: image: busybox:1.31.0-uclibc command: sh -c "sleep 1 && echo test"