container: Allow custom ip addresses for more than one network
This commit is contained in:
@@ -6,8 +6,7 @@
|
||||
container_name: "{{ service_name }}-redis"
|
||||
container_image: docker.io/valkey/valkey:alpine
|
||||
container_networks:
|
||||
- "{{ service_name }}"
|
||||
- name: "{{ service_name }}"
|
||||
ip: "{{ service_container_ip | ansible.utils.ipmath(2) if _service_static_ip else '' }}"
|
||||
container_hostname: redis
|
||||
container_ip: >-
|
||||
{{ service_container_ip | ansible.utils.ipmath(2) if _service_static_ip else '' }}
|
||||
container_auto_update: "{{ service_auto_update }}"
|
||||
|
||||
Reference in New Issue
Block a user