2024-01-08 00:44:30 +00:00
|
|
|
---
|
|
|
|
version: "3.8"
|
|
|
|
|
|
|
|
services:
|
|
|
|
app:
|
2024-01-09 02:05:09 +00:00
|
|
|
image: libretime/icecast:2.5-beta3
|
2024-01-08 00:44:30 +00:00
|
|
|
networks:
|
|
|
|
- proxy
|
2024-01-09 02:05:09 +00:00
|
|
|
environment:
|
|
|
|
- ICECAST_HOSTNAME=$DOMAIN
|
2024-01-09 02:13:38 +00:00
|
|
|
- ICECAST_SOURCE_PASSWORD
|
|
|
|
- ICECAST_ADMIN_PASSWORD
|
|
|
|
- ICECAST_LOCATION
|
2024-01-08 00:44:30 +00:00
|
|
|
deploy:
|
|
|
|
restart_policy:
|
|
|
|
condition: on-failure
|
|
|
|
labels:
|
|
|
|
- "traefik.enable=true"
|
2024-03-30 20:59:34 +00:00
|
|
|
# TCP router, handle streaming to Icecast
|
|
|
|
# !! Works only with HostSNI(*) and TLS off !!
|
|
|
|
- 'traefik.tcp.routers.${STACK_NAME}-tcp.rule=HostSNI(`*`)'
|
2024-04-01 22:45:24 +00:00
|
|
|
- 'traefik.tcp.routers.${STACK_NAME}-tcp.entrypoints=web-alt'
|
2024-03-30 20:59:34 +00:00
|
|
|
- 'traefik.tcp.routers.${STACK_NAME}-tcp.tls=false'
|
|
|
|
- 'traefik.tcp.routers.${STACK_NAME}-tcp.service=${STACK_NAME}-tcp'
|
|
|
|
- 'traefik.tcp.services.${STACK_NAME}-tcp.loadbalancer.server.port=8000'
|
|
|
|
# HTTPS router
|
2024-01-09 02:05:09 +00:00
|
|
|
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=8000"
|
2024-01-08 00:44:30 +00:00
|
|
|
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`${EXTRA_DOMAINS})"
|
|
|
|
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
|
|
|
|
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
|
|
|
|
## Redirect from EXTRA_DOMAINS to DOMAIN
|
|
|
|
#- "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}-redirect"
|
|
|
|
#- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLForceHost=true"
|
|
|
|
#- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}"
|
2024-04-01 22:48:54 +00:00
|
|
|
- "coop-cloud.${STACK_NAME}.version=1.0.0+2.5-beta3"
|
2024-04-01 22:45:24 +00:00
|
|
|
# healthcheck:
|
|
|
|
# test: ["CMD", "curl", "-f", "http://localhost:8000"]
|
|
|
|
# interval: 30s
|
|
|
|
# timeout: 10s
|
|
|
|
# retries: 10
|
|
|
|
# start_period: 1m
|
2024-01-08 00:44:30 +00:00
|
|
|
|
|
|
|
networks:
|
|
|
|
proxy:
|
|
|
|
external: true
|