From e4c8a8f7e9f6ffeef87286a8bfe30210cd56b687 Mon Sep 17 00:00:00 2001 From: deflax Date: Sun, 10 Oct 2021 16:01:43 +0000 Subject: [PATCH] rearrange docker dependencies --- docker-compose.yml | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 0c905ae..dff507f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -11,6 +11,7 @@ services: - "./config/lb:/usr/local/etc/haproxy" depends_on: - "certbot" + - "rtmp" restart: always networks: - internal @@ -33,24 +34,30 @@ services: #entrypoint: sh -c 'while true; do sleep 1; done' entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 15d & wait $${!}; done;'" + auth: + build: ./auth + hostname: auth + container_name: auth + restart: always + networks: + - internal + labels: + - meta.role=auth + rtmp: build: ./rtmp hostname: rtmp + container_name: rtmp volumes: - "./data/rtmp/hls:/tmp/hls" depends_on: - - "lb" - - "certbot" + - "auth" restart: always networks: - internal labels: - meta.role=rtmp - auth: - build: ./auth - hostname: auth - networks: internal: {}