`build`と一緒に`image`を指定する。
```yaml
version: "3"
services:
frontend:
build: ./webapp
image: awesome/webapp
```
## 参考
- [Compose file build reference \| Docker Documentation](https://docs.docker.com/compose/compose-file/build/)
- [Docker Composeでビルド時に任意のイメージ名を指定する方法 \- 水底](https://amaya382.hatenablog.jp/entry/2017/04/03/034002)