Files
ansible-role-feedstack/vars/containers/nats.yml

31 lines
892 B
YAML

---
nats:
# Define the name of this container.
name: "nats"
# Define the docker image to be used for this container.
image: "{{ feedstack_nats_container_image }}:{{ feedstack_nats_container_tag }}"
# Define the path where application data for this container will be stored.
appdata_directory: "{{ docker_appdata_directory }}/nats"
# Needed to set the config file.
command: "-c /nats.conf"
# Define the volumes that should be mounted into the container.
volumes:
- "{{ docker_appdata_directory }}/nats/data:/data"
- "{{ docker_appdata_directory }}/nats/config/nats.conf:/nats.conf:ro"
# Define the ports that should be opened to the outside world.
ports:
- "4222:4222" # client port
- "6222:6222" # cluster port
- "8222:8222" # monitoring port
# Define environment variables to be passed to the container.
#environment_variables: []
...