mirror of
https://github.com/docker/compose.git
synced 2025-04-08 17:05:13 +02:00
Add links argument to service
This commit is contained in:
parent
ffdebb84bb
commit
973760a501
@ -2,7 +2,7 @@ import re
|
||||
|
||||
|
||||
class Service(object):
|
||||
def __init__(self, name, client=None, image=None, command=None):
|
||||
def __init__(self, name, client=None, image=None, command=None, links=None):
|
||||
if not re.match('^[a-zA-Z0-9_]+$', name):
|
||||
raise ValueError('Invalid name: %s' % name)
|
||||
|
||||
@ -10,6 +10,7 @@ class Service(object):
|
||||
self.client = client
|
||||
self.image = image
|
||||
self.command = command
|
||||
self.links = links or []
|
||||
|
||||
@property
|
||||
def containers(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user