rearrange docker dependencies

This commit is contained in:
deflax 2021-10-10 16:01:43 +00:00
parent e518c6defd
commit e4c8a8f7e9

View file

@ -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: {}