From 225288980a47e70ca2cf644d368fb3857a90f141 Mon Sep 17 00:00:00 2001 From: Christopher Usher Date: Sat, 5 Jan 2019 00:37:33 -0800 Subject: [PATCH] Added the backfiller to docker-compose --- docker-compose.jsonnet | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docker-compose.jsonnet b/docker-compose.jsonnet index a58044a..13a45c4 100644 --- a/docker-compose.jsonnet +++ b/docker-compose.jsonnet @@ -18,6 +18,7 @@ qualities:: ["480p"], // Local path to save segments to. Full path must already exist. Cannot contain ':'. + // On OSX you need to change this to /private/var/lib/wubloader segments_path:: "/var/lib/wubloader/", // The host's port to expose the restreamer on. @@ -55,6 +56,21 @@ ports: ["%s:8000" % $.restreamer_port], }, + backfiller: { + image: "quay.io/ekimekim/wubloader-backfiller:%s" % $.image_tag, + // Args for the backfiller: set channel and qualities + command: [ + "--stream", $.channel, + "-v", std.join(",", $.qualities), + ], + // Mount the segments directory at /mnt + volumes: ["%s:/mnt" % $.segments_path], + // If the application crashes, restart it. + restart: "on-failure", + }, + + }, } +