Updated docker compose syntax with respect to dependencies to maintain consistency with the upstream docker-compose role.

This commit is contained in:
2026-02-08 22:28:14 +00:00
parent 2585dbffd1
commit 7b2081b94c
6 changed files with 48 additions and 8 deletions

View File

@@ -10,10 +10,13 @@ nats:
# 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:/etc/nats/nats.conf:ro"
- "{{ docker_appdata_directory }}/nats/config/nats.conf:/nats.conf:ro"
# Define the ports that should be opened to the outside world.
ports:

View File

@@ -17,6 +17,10 @@ weatherfeeder:
# Define the ports that should be opened to the outside world.
#ports: []
# Define the dependencies for this container.
dependencies:
- nats
# Define environment variables to be passed to the container.
#environment_variables: []

View File

@@ -17,10 +17,13 @@ weatherprocessor:
# Define the ports that should be opened to the outside world.
#ports: []
# Define the dependencies for this container.
dependencies:
- nats
- weatherfeeder
# Define environment variables to be passed to the container.
environment_variables:
- "WEATHERPROCESSOR_NATS_URL=nats://nats:4222"
- "WEATHERPROCESSOR_SUBJECT=weatherfeeder"
- "WEATHERPROCESSOR_OUTPUT_FORMAT=yaml"
...