service: samll improvements
This commit is contained in:
@@ -29,7 +29,7 @@ argument_specs:
|
|||||||
service_container_http_port:
|
service_container_http_port:
|
||||||
description:
|
description:
|
||||||
- Port inside the container where http requests are proxied to.
|
- Port inside the container where http requests are proxied to.
|
||||||
- If set to 0, http requests are proxied to /run/<service name>.sock inside the container
|
- If set to 0, http requests are proxied to fd:3 inside the container
|
||||||
type: int
|
type: int
|
||||||
required: false
|
required: false
|
||||||
default: 0
|
default: 0
|
||||||
@@ -482,7 +482,7 @@ argument_specs:
|
|||||||
- Name of the port.
|
- Name of the port.
|
||||||
- >-
|
- >-
|
||||||
If type is socket, the socket will be created at
|
If type is socket, the socket will be created at
|
||||||
/run/<service name>-<additional container name>-<port name>.sock on the host.
|
/run/<service name>-<port name>-socat.sock on the host.
|
||||||
- If type is not socket, this is just informative.
|
- If type is not socket, this is just informative.
|
||||||
type: str
|
type: str
|
||||||
required: true
|
required: true
|
||||||
|
|||||||
@@ -8,5 +8,9 @@
|
|||||||
container_networks:
|
container_networks:
|
||||||
- name: "{{ service_name }}"
|
- name: "{{ service_name }}"
|
||||||
ip: "{{ service_container_ip | ansible.utils.ipmath(2) if _service_static_ip else '' }}"
|
ip: "{{ service_container_ip | ansible.utils.ipmath(2) if _service_static_ip else '' }}"
|
||||||
|
container_mounts:
|
||||||
|
- type: volume
|
||||||
|
source: redis
|
||||||
|
destination: /data
|
||||||
container_hostname: redis
|
container_hostname: redis
|
||||||
container_auto_update: "{{ service_auto_update }}"
|
container_auto_update: "{{ service_auto_update }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user