20 lines
646 B
YAML
20 lines
646 B
YAML
---
|
|
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 }}"
|
|
...
|