Add container label with synapse version

This commit is contained in:
Vincent Wilke 2020-06-22 20:35:26 +02:00
parent 23e04a1aca
commit fcd808ff4e
No known key found for this signature in database
GPG key ID: ABCC75B6D36F2E62
2 changed files with 4 additions and 1 deletions

View file

@ -58,7 +58,7 @@
name: "{{ matrix_synapse_container_name }}"
image: "{{ matrix_synapse_container_ref }}:{{ matrix_synapse_version }}"
ports: "{{ matrix_synapse_docker_ports }}"
labels: "{{ matrix_synapse_docker_labels }}"
labels: "{{ matrix_synapse_docker_labels_complete }}"
restart_policy: unless-stopped
recreate: true
pull: true

View file

@ -146,3 +146,6 @@ matrix_synapse_base_config:
- user_id: "*"
alias: "*"
action: allow
matrix_synapse_docker_labels_complete: "{{ matrix_synapse_docker_labels_base | combine(matrix_synapse_docker_labels) }}"
matrix_synapse_docker_labels_base:
version: "{{ matrix_synapse_version }}"