feat(redis): allow configuring docker network for container

This commit is contained in:
Johanna Dorothea Reichmann 2021-10-11 13:47:03 +02:00
parent 4d56f25ab2
commit ab33387933
No known key found for this signature in database
GPG key ID: 03624C433676E465
2 changed files with 4 additions and 0 deletions

View file

@ -18,6 +18,8 @@ redis_docker_image: "docker.io/library/redis:{{ redis_docker_tag }}"
redis_docker_tag: "{{ redis_version }}-alpine"
redis_docker_container_name: "{{ redis_prefix }}redis"
redis_docker_ports: [ "6379:6379" ]
redis_docker_networks: ~
redis_docker_purge_networks: false
redis_docker_volumes:
- "{{ redis_data_dir }}:/data"
- "{{ redis_config_file }}:{{ redis_docker_configpath }}"

View file

@ -59,6 +59,8 @@
ports: "{{ redis_docker_ports }}"
volumes: "{{ redis_docker_volumes }}"
labels: "{{ redis_docker_labels_complete }}"
networks: "{{ redis_docker_networks | default(omit, True) }}"
purge_networks: "{{ redis_docker_purge_networks }}"
entrypoint: "redis-server"
command: [ "{{ redis_docker_configpath }}" ]
healthcheck: