Set a custom name for Docker volumes

This commit is contained in:
Dennis Hoppe 2021-03-25 12:51:05 +01:00 committed by GitHub
parent ef691507b3
commit 9390452f02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -87,8 +87,11 @@ services:
- "awx_db:/var/lib/postgresql/data"
volumes:
awx_db:
name: tools_awx_db
{% for i in range(cluster_node_count|int) -%}
{% set container_postfix = loop.index %}
receptor_{{ container_postfix }}:
name: tools_receptor_{{ container_postfix }}
redis_socket_{{ container_postfix }}:
name: tools_redis_socket_{{ container_postfix }}
{% endfor -%}