We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26e6651 commit 0a6e0a3Copy full SHA for 0a6e0a3
podman_compose.py
@@ -1949,7 +1949,8 @@ def _parse_compose_file(self):
1949
container_names_by_service = {}
1950
self.services = services
1951
for service_name, service_desc in services.items():
1952
- replicas = try_int(service_desc.get("deploy", {}).get("replicas", "1"))
+ replicas = try_int(service_desc.get("deploy", {}).get("replicas"), fallback=1)
1953
+
1954
container_names_by_service[service_name] = []
1955
for num in range(1, replicas + 1):
1956
name0 = f"{project_name}_{service_name}_{num}"
0 commit comments