Updated docker compose syntax with respect to dependencies to maintain consistency with the upstream docker-compose role.
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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: []
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
...
|
||||
|
||||
Reference in New Issue
Block a user