docker compose service wait for the container is ready code example
Example: docker compose service wait for forever
version: '3'
services:
app:
image: node:8
tty: true # <-- This option
version: '3'
services:
app:
image: node:8
tty: true # <-- This option