Synpse can mount volumes from the host. Volumes can be used to share data between the containers or persist data so it survives container restart.
Volumes are the preferred mechanism for persisting data generated by and used by Docker containers. While bind mounts are dependent on the directory structure and OS of the host machine, volumes are completely managed by Docker.
Volumes are defines as part of your application specification, where
/tmp/redisis host location and
/datais inside the container.
description: Redis example
- name: redis
Many applications rely on certain files to be up-to-date from the host machine. You can mount them directly to the container:
description: Homeassistant master
- name: homeassistant