vod-rtmp/docker-compose.yml

64 lines
1.3 KiB
YAML
Raw Normal View History

2021-10-10 09:39:39 -04:00
version: "3.3"
services:
2021-10-10 09:48:24 -04:00
lb:
image: haproxy:latest
ports:
- "80:80"
- "443:443"
2021-10-10 10:05:08 -04:00
- "1935:1935"
2021-10-10 09:48:24 -04:00
volumes:
- "./data/certificates:/certificates"
- "./config/lb:/usr/local/etc/haproxy"
depends_on:
- "certbot"
2021-10-10 12:01:43 -04:00
- "rtmp"
2021-10-10 09:48:24 -04:00
restart: always
networks:
- internal
labels:
- meta.role=lb
certbot:
image: "certbot/certbot"
hostname: certbot
volumes:
- "./data/certificates:/certificates"
- "./data/certbot/etc:/etc/letsencrypt"
- "./data/certbot/var:/var/lib/letsencrypt"
- "./logs/certbot:/var/log/letsencrypt"
restart: on-failure
networks:
- internal
labels:
- meta.role=certbot
#entrypoint: sh -c 'while true; do sleep 1; done'
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 15d & wait $${!}; done;'"
2021-10-10 12:01:43 -04:00
auth:
build: ./auth
hostname: auth
container_name: auth
restart: always
networks:
- internal
labels:
- meta.role=auth
2021-10-10 09:39:39 -04:00
rtmp:
build: ./rtmp
2021-10-10 10:05:08 -04:00
hostname: rtmp
2021-10-10 12:01:43 -04:00
container_name: rtmp
2021-10-10 09:39:39 -04:00
volumes:
2021-10-10 09:52:00 -04:00
- "./data/rtmp/hls:/tmp/hls"
2021-10-10 10:05:08 -04:00
depends_on:
2021-10-10 12:01:43 -04:00
- "auth"
2021-10-10 10:05:08 -04:00
restart: always
networks:
- internal
labels:
- meta.role=rtmp
2021-10-10 09:39:39 -04:00
2021-10-10 09:48:24 -04:00
networks:
internal: {}