service: Support publishing arbitary ports through sockets
This commit is contained in:
12
roles/service/tasks/additional_socat.yaml
Normal file
12
roles/service/tasks/additional_socat.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
---
|
||||
- name: Socat for socket published ports of {{ service_name }}
|
||||
ansible.builtin.include_role:
|
||||
name: socat
|
||||
loop: "{{ _service_additional_container_publish_socket_ports }}"
|
||||
loop_control:
|
||||
loop_var: publish_port
|
||||
vars:
|
||||
socat_service_name: "{{ service_name }}-{{ publish_port.name }}"
|
||||
socat_target_container: "{{ _service_additional_container.name }}"
|
||||
socat_target_http_port: "{{ publish_port.container_port }}"
|
||||
socat_auto_update: "{{ service_auto_update }}"
|
||||
Reference in New Issue
Block a user