This commit is contained in:
Muayyad alsadi 2020-04-18 18:46:23 +03:00
commit 80e7ba188d
2 changed files with 11 additions and 0 deletions

View File

@ -870,6 +870,10 @@ class PodmanCompose:
print(" ** merged:\n", json.dumps(compose, indent = 2)) print(" ** merged:\n", json.dumps(compose, indent = 2))
ver = compose.get('version', None) ver = compose.get('version', None)
services = compose.get('services', None) services = compose.get('services', None)
if services is None:
services = {}
print("WARNING: No services defined")
# NOTE: maybe add "extends.service" to _deps at this stage # NOTE: maybe add "extends.service" to _deps at this stage
flat_deps(services, with_extends=True) flat_deps(services, with_extends=True)
service_names = sorted([ (len(srv["_deps"]), name) for name, srv in services.items() ]) service_names = sorted([ (len(srv["_deps"]), name) for name, srv in services.items() ])

View File

@ -0,0 +1,7 @@
version: '3'
networks:
shared-network:
driver: bridge
ipam:
config:
- subnet: 172.19.0.0/24