Skip to content

Commit

Permalink
Merge pull request #8449 from lennart/local_docker_labels
Browse files Browse the repository at this point in the history
allow labelling docker web container

Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
  • Loading branch information
softwarefactory-project-zuul[bot] committed Oct 26, 2020
2 parents d550487 + 2991ddf commit db3e79e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions installer/roles/local_docker/templates/docker-compose.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,16 @@ services:
hostname: {{ awx_web_hostname }}
user: root
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:
- supervisor-socket:/var/run/supervisor
- rsyslog-socket:/var/run/awx-rsyslog/
Expand Down

0 comments on commit db3e79e

Please sign in to comment.