From 22fbf7c3ed09e17555dfa925be094a9408e7c27f Mon Sep 17 00:00:00 2001 From: Travis Ralston <travpc@gmail.com> Date: Thu, 10 Feb 2022 20:04:12 -0700 Subject: [PATCH] Complement fix round 2 --- Complement.Dockerfile | 1 + docker/complement-run.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Complement.Dockerfile b/Complement.Dockerfile index 43a45e96..82aade1c 100644 --- a/Complement.Dockerfile +++ b/Complement.Dockerfile @@ -30,6 +30,7 @@ RUN dos2unix /usr/local/bin/complement.sh /usr/local/bin/complement-run.sh EXPOSE 8008 EXPOSE 8448 +HEALTHCHECK CMD curl --fail http://localhost:8008/_matrix/media/version || exit 1 RUN chmod +x /usr/local/bin/complement.sh RUN chmod +x /usr/local/bin/complement-run.sh diff --git a/docker/complement-run.sh b/docker/complement-run.sh index 9dbef054..39d0582c 100644 --- a/docker/complement-run.sh +++ b/docker/complement-run.sh @@ -2,6 +2,6 @@ openssl req -new -newkey rsa:1024 -days 365 -nodes -x509 -subj "/C=US/ST=Denial/L=Springfield/O=Dis/CN=${SERVER_NAME}" -keyout /data/server.key -out /data/server.crt sed -i "s/SERVER_NAME/${SERVER_NAME}/g" /data/media-repo.yaml su postgres -c "postgres -h 0.0.0.0" & -sleep 12 +sleep 16 /usr/local/bin/media_repo & /usr/local/bin/complement_hs -- GitLab