mirror of
https://github.com/ansible/awx.git
synced 2026-05-08 18:07:36 -02:30
allow labelling docker web container
This commit is contained in:
@@ -22,6 +22,16 @@ services:
|
|||||||
hostname: {{ awx_web_hostname }}
|
hostname: {{ awx_web_hostname }}
|
||||||
user: root
|
user: root
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
{% if (awx_web_container_labels is defined) and (',' in awx_web_container_labels) %}
|
||||||
|
{% set awx_web_container_labels_list = awx_web_container_labels.split(',') %}
|
||||||
|
labels:
|
||||||
|
{% for awx_web_container_label in awx_web_container_labels_list %}
|
||||||
|
- {{ awx_web_container_label }}
|
||||||
|
{% endfor %}
|
||||||
|
{% elif awx_web_container_labels is defined %}
|
||||||
|
labels:
|
||||||
|
- {{ awx_web_container_labels }}
|
||||||
|
{% endif %}
|
||||||
volumes:
|
volumes:
|
||||||
- supervisor-socket:/var/run/supervisor
|
- supervisor-socket:/var/run/supervisor
|
||||||
- rsyslog-socket:/var/run/awx-rsyslog/
|
- rsyslog-socket:/var/run/awx-rsyslog/
|
||||||
|
|||||||
Reference in New Issue
Block a user