2021-06-08 09:39:49 +02:00
|
|
|
|
|
|
|
## Description
|
|
|
|
|
2022-03-09 13:24:09 +01:00
|
|
|
Services are built once and then tagged, by default as `project_service`.
|
2021-06-08 09:39:49 +02:00
|
|
|
|
|
|
|
If the Compose file specifies an
|
2022-03-09 13:24:09 +01:00
|
|
|
[image](https://github.com/compose-spec/compose-spec/blob/master/spec.md#image) name,
|
2021-06-08 09:39:49 +02:00
|
|
|
the image is tagged with that name, substituting any variables beforehand. See
|
|
|
|
[variable interpolation](https://github.com/compose-spec/compose-spec/blob/master/spec.md#interpolation).
|
|
|
|
|
2022-03-09 13:24:09 +01:00
|
|
|
If you change a service's `Dockerfile` or the contents of its build directory,
|
2021-09-13 17:14:32 +02:00
|
|
|
run `docker compose build` to rebuild it.
|