mirror of
https://github.com/ansible/awx.git
synced 2026-02-01 01:28:09 -03:30
AWX installer docker-compose params host_port and host_port_ssl
can also be undefined to prevent exposing a port. Signed-off-by: JoelKle <34544090+JoelKle@users.noreply.github.com>
This commit is contained in:
@@ -11,11 +11,15 @@ services:
|
||||
{% if pg_hostname is not defined %}
|
||||
- postgres
|
||||
{% endif %}
|
||||
{% if (host_port is defined) or (host_port_ssl is defined) %}
|
||||
ports:
|
||||
{% if ssl_certificate is defined %}
|
||||
{% if (host_port_ssl is defined) and (ssl_certificate is defined) %}
|
||||
- "{{ host_port_ssl }}:8053"
|
||||
{% endif %}
|
||||
{% if host_port is defined %}
|
||||
- "{{ host_port }}:8052"
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
hostname: {{ awx_web_hostname }}
|
||||
user: root
|
||||
restart: unless-stopped
|
||||
|
||||
Reference in New Issue
Block a user