Initial import

This commit is contained in:
3wc 2021-07-24 03:38:24 +02:00
commit 821dc0870a
2 changed files with 42 additions and 0 deletions

6
.env.sample Normal file
View File

@ -0,0 +1,6 @@
TYPE=owncast
DOMAIN=owncast.example.com
## Domain aliases
#EXTRA_DOMAINS=', `www.owncast.example.com`'
LETS_ENCRYPT_ENV=production

36
compose.yml Normal file
View File

@ -0,0 +1,36 @@
---
version: "3.8"
services:
app:
image: gabekangas/owncast:0.0.7
networks:
- proxy
volumes:
- owncast:/app/data
deploy:
restart_policy:
condition: on-failure
labels:
- "traefik.enable=true"
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=8080"
- "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}"
- "traefik.tcp.routers.${STACK_NAME}-rtmp.rule=HostSNI(`*`)"
- "traefik.tcp.routers.${STACK_NAME}-rtmp.entrypoints=rtmp"
- "traefik.tcp.routers.${STACK_NAME}-rtmp.service=antmedia"
- "traefik.tcp.services.${STACK_NAME}-rtmp.loadbalancer.server.port=1935"
# healthcheck:
# test: ["CMD", "curl", "-f", "http://localhost"]
# interval: 30s
# timeout: 10s
# retries: 10
# start_period: 1m
networks:
proxy:
external: true
volumes:
owncast: