Updated feedstack to include weatherdb and weatherapi containers

This commit is contained in:
2026-03-17 16:17:06 +00:00
parent 29cac89fe8
commit 6fcdffd6c4
7 changed files with 80 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
---
weatherapi:
# Define the name of this container.
name: "weatherapi"
# Define the docker image to be used for this container.
image: "{{ feedstack_weatherapi_container_image }}:{{ feedstack_weatherapi_container_tag }}"
# Define ports that should be opened to the outside world.
ports:
- "8080:8080"
# Define the volumes that should be mounted into the container.
volumes:
- "{{ docker_appdata_directory }}/weatherapi/config.yml:/weatherapi/config.yml:ro"
# Define the dependencies for this container.
dependencies:
- weatherdb
...

View File

@@ -0,0 +1,19 @@
---
weatherdb:
# Define the name of this container.
name: "weatherdb"
# Define the docker image to be used for this container.
image: "{{ feedstack_weatherdb_container_image }}:{{ feedstack_weatherdb_container_tag }}"
# Define the volumes that should be mounted into the container.
volumes:
- "{{ docker_appdata_directory }}/weatherdb/db:/var/lib/postgresql/data"
# Define environment variables to be passed to the container.
environment_variables:
- "POSTGRES_USER={{ feedstack_weatherdb_user }}"
- "POSTGRES_PASSWORD={{ feedstack_weatherdb_password }}"
- "POSTGRES_DB={{ feedstack_weatherdb_database }}"
...

View File

@@ -23,6 +23,7 @@ weatherfeeder:
# Define the dependencies for this container.
dependencies:
- nats
- weatherdb
# Define environment variables to be passed to the container.
#environment_variables: []