Working?!

This commit is contained in:
3wc 2024-01-08 23:05:09 -03:00
parent 077284cb0f
commit 03f2943d95
2 changed files with 58 additions and 9 deletions

View File

@ -1,6 +1,6 @@
# icecast
> One line description of the recipe
> Icecast + Co-op Cloud = 🤘
<!-- metadata -->

View File

@ -2,16 +2,59 @@
version: "3.8"
services:
# app:
# image: perl19/icecast2
# environment:
# - IC_AUTH_ADMIN=admin
# - IC_AUTH_ADMIN_PASS=hackme
# - IC_SOURCE_PASS=hackme
# - IC_HOSTNAME=$DOMAIN
# - IC_PORT=8000
# - IC_LIMITS_CLIENTS=1000
# - IC_LIMITS_SOURCES=1
# - IC_LIMITS_QUEUE_SIZE=524288
# - IC_LIMITS_BURST_SIZE=65535
# - IC_LIMITS_CLIENT_TIMEOUT=30
# - IC_LIMITS_HEADER_TIMEOUT=15
# - IC_LIMITS_SOURCE_TIMEOUT=10
# ports:
# - target: 8000
# published: 8000
# mode: host
# deploy:
# restart_policy:
# condition: on-failure
# labels:
# - "traefik.enable=true"
# - "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=8000"
# - "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}"
# - "coop-cloud.${STACK_NAME}.version="
app:
image: nginx:1.20.0
image: libretime/icecast:2.5-beta3
networks:
- proxy
environment:
- ICECAST_HOSTNAME=$DOMAIN
ports:
- target: 8000
published: 8000
mode: host
# configs:
# - source: icecast_xml
# target: /etc/icecast.xml
deploy:
restart_policy:
condition: on-failure
labels:
- "traefik.enable=true"
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=80"
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=8000"
- "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}"
@ -20,13 +63,19 @@ services:
#- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLForceHost=true"
#- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}"
- "coop-cloud.${STACK_NAME}.version="
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost"]
interval: 30s
timeout: 10s
retries: 10
start_period: 1m
# # healthcheck:
# # test: ["CMD", "curl", "-f", "http://localhost"]
# # interval: 30s
# # timeout: 10s
# # retries: 10
# # start_period: 1m
networks:
proxy:
external: true
configs:
icecast_xml:
name: ${STACK_NAME}_icecast_xml_${ICECAST_XML_VERSION}
file: icecast.xml.tmpl
template_driver: golang