Commit ab40ffbe authored by Rémi Duraffort's avatar Rémi Duraffort

Share devices and health-checks configuration

lava-master and lava-server-gunicorn should be able to access devices and
health-checks directories.
Only lava-server-gunicorn should be allowed to update the directories content.
Signed-off-by: Rémi Duraffort's avatarRémi Duraffort <remi.duraffort@linaro.org>
parent 701a4c6e
......@@ -14,7 +14,7 @@ services:
container_name: lava-logs
image: lavasoftware/lava-server:2019.03
volumes:
- server-joboutput:/var/lib/lava-server/default/media/job-output
- joboutput:/var/lib/lava-server/default/media/job-output
- ./overlays/lava-server/etc/lava-server/instance.conf:/etc/lava-server/instance.conf:ro
- ./overlays/lava-server/etc/lava-server/settings.conf:/etc/lava-server/settings.conf:ro
- ./overlays/lava-server/etc/lava-server/lava-logs:/etc/lava-server/lava-logs:ro
......@@ -31,6 +31,8 @@ services:
container_name: lava-master
image: lavasoftware/lava-server:2019.03
volumes:
- devices:/etc/lava-server/dispatcher-config/devices:ro
- health-checks:/etc/lava-server/dispatcher-config/health-checks:ro
- ./overlays/lava-server/etc/lava-server/instance.conf:/etc/lava-server/instance.conf:ro
- ./overlays/lava-server/etc/lava-server/settings.conf:/etc/lava-server/settings.conf:ro
- ./overlays/lava-server/etc/lava-server/lava-master:/etc/lava-server/lava-master:ro
......@@ -58,7 +60,9 @@ services:
container_name: lava-server
image: lavasoftware/lava-server:2019.03
volumes:
- server-joboutput:/var/lib/lava-server/default/media/job-output
- devices:/etc/lava-server/dispatcher-config/devices
- health-checks:/etc/lava-server/dispatcher-config/health-checks
- joboutput:/var/lib/lava-server/default/media/job-output
- ./overlays/lava-server/etc/lava-server/instance.conf:/etc/lava-server/instance.conf:ro
- ./overlays/lava-server/etc/lava-server/settings.conf:/etc/lava-server/settings.conf:ro
depends_on:
......@@ -84,5 +88,9 @@ services:
volumes:
db-data:
name: lava-server-pgdata
server-joboutput:
devices:
name: lava-server-devices
health-checks:
name: lava-server-health-checks
joboutput:
name: lava-server-joboutput
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment