service: Support specifying container command
This commit is contained in:
@@ -1,4 +1,6 @@
|
|||||||
---
|
---
|
||||||
|
service_container_command: []
|
||||||
|
|
||||||
service_domains: []
|
service_domains: []
|
||||||
service_vhost_locations: []
|
service_vhost_locations: []
|
||||||
service_proxy_pass_host_header: true
|
service_proxy_pass_host_header: true
|
||||||
|
|||||||
@@ -8,6 +8,13 @@ argument_specs:
|
|||||||
type: str
|
type: str
|
||||||
required: true
|
required: true
|
||||||
|
|
||||||
|
service_container_command:
|
||||||
|
description: Command to start the service container with.
|
||||||
|
type: list
|
||||||
|
required: false
|
||||||
|
default: []
|
||||||
|
elements: str
|
||||||
|
|
||||||
service_domains:
|
service_domains:
|
||||||
description: A list of domains which should be proxied to the main service container
|
description: A list of domains which should be proxied to the main service container
|
||||||
type: list
|
type: list
|
||||||
@@ -242,8 +249,8 @@ argument_specs:
|
|||||||
description:
|
description:
|
||||||
- List of additional containers for the service.
|
- List of additional containers for the service.
|
||||||
- >
|
- >
|
||||||
Will inherit most options from main service container, except for publish_ports.
|
Will inherit most options from main service container. All options can be overridden
|
||||||
All options can be overridden per-container.
|
per-container.
|
||||||
type: list
|
type: list
|
||||||
required: false
|
required: false
|
||||||
default: []
|
default: []
|
||||||
@@ -263,6 +270,12 @@ argument_specs:
|
|||||||
type: str
|
type: str
|
||||||
required: false
|
required: false
|
||||||
default: "{{ service_container_image }}"
|
default: "{{ service_container_image }}"
|
||||||
|
command:
|
||||||
|
description: Command to start the container with.
|
||||||
|
type: list
|
||||||
|
required: false
|
||||||
|
default: "[]"
|
||||||
|
elements: str
|
||||||
mounts:
|
mounts:
|
||||||
description: List of bind mounts or volumes to be mounted inside the main service container.
|
description: List of bind mounts or volumes to be mounted inside the main service container.
|
||||||
type: list
|
type: list
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
container_name: "{{ container.name }}"
|
container_name: "{{ container.name }}"
|
||||||
container_image: "{{ container.image | default(service_container_image) }}"
|
container_image: "{{ container.image | default(service_container_image) }}"
|
||||||
container_image_creds: "{{ service_container_image_creds }}"
|
container_image_creds: "{{ service_container_image_creds }}"
|
||||||
|
container_command: "{{ container.command | default([]) }}"
|
||||||
container_user: "{{ service_container_user }}"
|
container_user: "{{ service_container_user }}"
|
||||||
container_mounts: "{{ container.mounts | default(_service_container_mounts) }}"
|
container_mounts: "{{ container.mounts | default(_service_container_mounts) }}"
|
||||||
container_publish_ports: "{{ container.publish_ports | default([]) }}"
|
container_publish_ports: "{{ container.publish_ports | default([]) }}"
|
||||||
|
|||||||
@@ -33,6 +33,7 @@
|
|||||||
container_name: "{{ service_name }}"
|
container_name: "{{ service_name }}"
|
||||||
container_image: "{{ service_container_image }}"
|
container_image: "{{ service_container_image }}"
|
||||||
container_image_creds: "{{ service_container_image_creds }}"
|
container_image_creds: "{{ service_container_image_creds }}"
|
||||||
|
container_command: "{{ service_container_command }}"
|
||||||
container_user: "{{ service_container_user }}"
|
container_user: "{{ service_container_user }}"
|
||||||
container_mounts: "{{ _service_container_mounts }}"
|
container_mounts: "{{ _service_container_mounts }}"
|
||||||
container_publish_ports: "{{ service_container_publish_ports }}"
|
container_publish_ports: "{{ service_container_publish_ports }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user