television/docker-compose.yml

103 lines
2 KiB
YAML
Raw Normal View History

2023-12-31 04:15:22 +00:00
version: '3'
networks:
net:
external: false
services:
haproxy:
image: haproxy:lts
2025-01-28 18:13:50 +00:00
container_name: haproxy
env_file:
- "variables.env"
2023-12-31 04:15:22 +00:00
ports:
- "80:80"
- "443:443"
volumes:
- "./data/certificates:/certificates"
- "./config/haproxy:/usr/local/etc/haproxy"
depends_on:
- "restreamer"
2024-09-05 17:05:23 +00:00
- "api"
2023-12-31 04:15:22 +00:00
restart: unless-stopped
networks:
- net
labels:
- meta.role=haproxy
2025-01-28 18:13:50 +00:00
acme-sh:
image: neilpang/acme.sh
container_name: acme.sh
2023-12-31 04:15:22 +00:00
volumes:
2025-01-28 18:13:50 +00:00
- "./data/acme:/acme.sh"
2023-12-31 04:15:22 +00:00
- "./data/certificates:/certificates"
2025-01-28 18:13:50 +00:00
network_mode: host
command: daemon
stdin_open: true
tty: true
restart: "no"
2023-12-31 04:15:22 +00:00
restreamer:
image: datarhei/restreamer:2.11.0
2023-12-31 14:32:41 +00:00
env_file:
- "variables.env"
2023-12-31 04:15:22 +00:00
ports:
- "6000:6000/udp"
volumes:
- "./data/restreamer/config:/core/config"
- "./data/restreamer/data:/core/data"
2023-12-31 04:15:22 +00:00
restart: unless-stopped
networks:
- net
labels:
- meta.role=restreamer
2024-09-05 17:05:23 +00:00
api:
2023-12-31 04:15:22 +00:00
depends_on:
- "restreamer"
2024-09-05 17:05:23 +00:00
build: ./src/api
image: tv-api:latest
2023-12-31 14:32:41 +00:00
env_file:
2024-01-15 04:42:05 +02:00
- "variables.env"
volumes:
2024-09-05 17:05:23 +00:00
- "./config/api:/config"
2024-01-13 00:09:44 +02:00
- "./data/recorder:/recordings"
2023-12-31 04:15:22 +00:00
restart: unless-stopped
networks:
- net
labels:
2024-09-05 17:05:23 +00:00
- meta.role=api
2023-12-31 04:15:22 +00:00
2024-01-15 04:42:05 +02:00
discordbot:
depends_on:
2024-09-05 17:05:23 +00:00
- "api"
2024-01-15 04:42:05 +02:00
build: ./src/discordbot
image: tv-discordbot:latest
env_file:
- "variables.env"
restart: unless-stopped
networks:
- net
labels:
- meta.role=discordbot
2024-06-28 23:01:28 +00: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