mirror of
https://github.com/famedly/ansible-collection-base
synced 2024-11-10 06:24:17 +00:00
feat(redis): allow configuring docker network for container
This commit is contained in:
parent
4d56f25ab2
commit
ab33387933
2 changed files with 4 additions and 0 deletions
|
@ -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 }}"
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue