qfieldcloud icon indicating copy to clipboard operation
qfieldcloud copied to clipboard

Replace deprecated scale with deploy.replicas

Open stcz opened this issue 2 years ago • 1 comments
trafficstars

In the docker compose files scale: is used, which is deprecated:

WARN[0000] `scale` is deprecated. Use the `deploy.replicas` element 

This PR replaces it with deploy.replicas.

Since docker 1.18 Variables of the wrong type (what is the case here) are casted.

stcz avatar Mar 19 '23 14:03 stcz

While I do agree it is a step in the right direction, we had some environments that were experiencing troubles with this setting.

Cannot remember right now, but the deprecated setting is used on purpose for now.

Take this as a warning it might take a bit longer than anticipated to get this merged.

suricactus avatar Mar 19 '23 14:03 suricactus

Closing since scale was un-deprecated, see https://github.com/compose-spec/compose-spec/commit/d53d354ccd74501289e4aa3f9ffa4bd2c3fa7963

In docker 24.x it is still causing the warning, but in 25.x it is no longer the case.

suricactus avatar Aug 23 '24 22:08 suricactus