service: Support publishing arbitary ports through sockets
This commit is contained in:
@@ -93,11 +93,44 @@ argument_specs:
|
||||
default: []
|
||||
elements: str
|
||||
service_container_publish_ports:
|
||||
description: "A list of published ports in docker format (<host listen address>:<host port>:<container port>)"
|
||||
description: A list of ports to publish outside the container
|
||||
type: list
|
||||
required: false
|
||||
default: []
|
||||
elements: str
|
||||
elements: dict
|
||||
options:
|
||||
name:
|
||||
description:
|
||||
- Name of the port.
|
||||
- If type is socket, the socket will be created at /run/<service name>-<port name>.sock on the host.
|
||||
- If type is not socket, this is just informative.
|
||||
type: str
|
||||
required: true
|
||||
container_port:
|
||||
description: Container port to publish
|
||||
type: int
|
||||
required: true
|
||||
type:
|
||||
description: Whether to publish as a port or socket
|
||||
type: str
|
||||
required: false
|
||||
default: port
|
||||
choices:
|
||||
- socket
|
||||
- port
|
||||
host_address:
|
||||
description:
|
||||
- IP or hostname to listen on on the host
|
||||
- Ignored if type is socket
|
||||
type: str
|
||||
required: false
|
||||
default: 0.0.0.0
|
||||
host_port:
|
||||
description:
|
||||
- Port to listen on on the host
|
||||
- Required if type is port, ignored otherwise
|
||||
type: int
|
||||
required: false
|
||||
service_container_mounts:
|
||||
description: List of bind mounts or volumes to be mounted inside the service container(s).
|
||||
type: list
|
||||
|
||||
Reference in New Issue
Block a user