command と entrypoint を同時には使えない
// compose.yml

services:

 webapp:

	image: debian:stable-slim



	command:

	 - /usr/bin/bash

	 - -c

	 - |-

		echo "command is commnad"

	entrypoint:

	 - /usr/bin/bash

	 - -c

	 - |-

		echo "entrypoint is entrypoint"


// terminal

PS C:\Users\elite\yossoi\compose-test-app> docker compose up --build

[+] Running 2/2

 ✔ webapp Pulled				 38.5s

 ✔ 4903f7352a46 Pull complete	 34.5s

[+] Running 2/2

 ✔ Network compose-test-app_default	 Created	0.1s

 ✔ Container compose-test-app-webapp-1 Created	0.2s

Attaching to webapp-1

webapp-1 | entrypoint is entrypoint

webapp-1 exited with code 0