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" - "./config/lb:/usr/local/etc/haproxy"
depends_on: depends_on:
- "certbot" - "certbot"
- "rtmp"
restart: always restart: always
networks: networks:
- internal - internal
@ -33,24 +34,30 @@ services:
#entrypoint: sh -c 'while true; do sleep 1; done' #entrypoint: sh -c 'while true; do sleep 1; done'
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 15d & wait $${!}; 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: rtmp:
build: ./rtmp build: ./rtmp
hostname: rtmp hostname: rtmp
container_name: rtmp
volumes: volumes:
- "./data/rtmp/hls:/tmp/hls" - "./data/rtmp/hls:/tmp/hls"
depends_on: depends_on:
- "lb" - "auth"
- "certbot"
restart: always restart: always
networks: networks:
- internal - internal
labels: labels:
- meta.role=rtmp - meta.role=rtmp
auth:
build: ./auth
hostname: auth
networks: networks:
internal: {} internal: {}