service: Add support for native sockets for http
This commit is contained in:
@@ -1,4 +1,9 @@
|
||||
---
|
||||
_service_container_socket_mount:
|
||||
type: bind
|
||||
source: /run/{{ service_name }}
|
||||
destination: /run/{{ service_name }}
|
||||
|
||||
_service_volume_mounts: "{{ service_container_mounts | selectattr('type', '==', 'volume') }}"
|
||||
_service_template_mounts: "{{ service_container_mounts | selectattr('type', '==', 'template') }}"
|
||||
_service_copy_mounts: "{{ service_container_mounts | selectattr('type', '==', 'copy') }}"
|
||||
@@ -15,7 +20,11 @@ _service_container_volume_mounts: >-
|
||||
) |
|
||||
map('combine')
|
||||
}}
|
||||
_service_container_bind_mounts: "{{ service_container_mounts | selectattr('type', '==', 'bind') }}"
|
||||
_service_container_bind_mounts: >-
|
||||
{{
|
||||
service_container_mounts | selectattr('type', '==', 'bind') +
|
||||
([ _service_container_socket_mount ] if _service_native_socket else [])
|
||||
}}
|
||||
_service_container_template_mounts: >-
|
||||
{{
|
||||
([{'readonly': true}] * _service_template_mounts | length) |
|
||||
|
||||
Reference in New Issue
Block a user