2023-12-30 23:15:22 -05:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
networks:
|
|
|
|
net:
|
|
|
|
external: false
|
|
|
|
|
|
|
|
services:
|
|
|
|
haproxy:
|
|
|
|
image: haproxy:lts
|
2024-01-02 21:30:21 -05:00
|
|
|
env_file:
|
|
|
|
- "variables.env"
|
2023-12-30 23:15:22 -05:00
|
|
|
ports:
|
|
|
|
- "80:80"
|
|
|
|
- "443:443"
|
|
|
|
volumes:
|
|
|
|
- "./data/certificates:/certificates"
|
|
|
|
- "./config/haproxy:/usr/local/etc/haproxy"
|
|
|
|
depends_on:
|
|
|
|
- "certbot"
|
|
|
|
- "restreamer"
|
2024-09-05 13:05:23 -04:00
|
|
|
- "api"
|
2023-12-30 23:15:22 -05:00
|
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
|
|
- net
|
|
|
|
labels:
|
|
|
|
- meta.role=haproxy
|
|
|
|
|
|
|
|
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: unless-stopped
|
|
|
|
networks:
|
|
|
|
- net
|
|
|
|
labels:
|
|
|
|
- meta.role=certbot
|
|
|
|
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 15d & wait $${!}; done;'"
|
|
|
|
|
|
|
|
restreamer:
|
2024-06-23 13:00:10 -04:00
|
|
|
image: datarhei/restreamer:2.11.0
|
2023-12-31 09:32:41 -05:00
|
|
|
env_file:
|
|
|
|
- "variables.env"
|
2023-12-30 23:15:22 -05:00
|
|
|
ports:
|
|
|
|
- "6000:6000/udp"
|
|
|
|
volumes:
|
2024-01-04 16:23:50 -05:00
|
|
|
- "./data/restreamer/config:/core/config"
|
|
|
|
- "./data/restreamer/data:/core/data"
|
2023-12-30 23:15:22 -05:00
|
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
|
|
- net
|
|
|
|
labels:
|
|
|
|
- meta.role=restreamer
|
|
|
|
|
2024-09-05 13:05:23 -04:00
|
|
|
api:
|
2023-12-30 23:15:22 -05:00
|
|
|
depends_on:
|
|
|
|
- "restreamer"
|
2024-09-05 13:05:23 -04:00
|
|
|
build: ./src/api
|
|
|
|
image: tv-api:latest
|
2023-12-31 09:32:41 -05:00
|
|
|
env_file:
|
2024-01-14 21:42:05 -05:00
|
|
|
- "variables.env"
|
2024-01-05 08:29:29 -05:00
|
|
|
volumes:
|
2024-09-05 13:05:23 -04:00
|
|
|
- "./config/api:/config"
|
2024-01-12 17:09:44 -05:00
|
|
|
- "./data/recorder:/recordings"
|
2023-12-30 23:15:22 -05:00
|
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
|
|
- net
|
|
|
|
labels:
|
2024-09-05 13:05:23 -04:00
|
|
|
- meta.role=api
|
2023-12-30 23:15:22 -05:00
|
|
|
|
2024-01-14 21:42:05 -05:00
|
|
|
discordbot:
|
|
|
|
depends_on:
|
2024-09-05 13:05:23 -04:00
|
|
|
- "api"
|
2024-01-14 21:42:05 -05:00
|
|
|
build: ./src/discordbot
|
|
|
|
image: tv-discordbot:latest
|
|
|
|
env_file:
|
|
|
|
- "variables.env"
|
|
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
|
|
- net
|
|
|
|
labels:
|
2024-06-23 13:00:10 -04:00
|
|
|
- meta.role=discordbot
|
2024-06-28 19:01:28 -04:00
|
|
|
|
|
|
|
icecast:
|
|
|
|
#depends_on:
|
|
|
|
# - "radiorelay"
|
|
|
|
build: ./src/icecast
|
|
|
|
image: tv-icecast:latest
|
|
|
|
env_file:
|
|
|
|
- "variables.env"
|
|
|
|
restart: unless-stopped
|
|
|
|
ports:
|
|
|
|
- "8000:8000"
|
|
|
|
volumes:
|
|
|
|
- /etc/localtime:/etc/localtime:ro
|
|
|
|
- "./config/icecast/icecast.xml.template:/etc/icecast2/icecast.xml.template"
|
|
|
|
- "./data/icecast:/usr/share/icecast2/web/data"
|
|
|
|
- "./logs/icecast:/var/log/icecast2"
|
|
|
|
networks:
|
|
|
|
- net
|
|
|
|
labels:
|
|
|
|
- meta.role=icecast
|