mirror of
https://github.com/owncast/owncast.git
synced 2024-12-18 07:12:33 +03:00
31d0ef8065
* example with TLS wrapper (RTMPS) and traefik * added example configuration for a MinIO S3 storage * separate example
50 lines
1.9 KiB
YAML
50 lines
1.9 KiB
YAML
version: '2'
|
|
|
|
services:
|
|
owncast:
|
|
image: gabekangas/owncast:latest
|
|
restart: unless-stopped
|
|
volumes:
|
|
- ${PWD}/config-example.yaml:/app/config.yaml # Adjust once you create your own config.yaml
|
|
- owncast_db:/db # Remove if you don't want chat persistant
|
|
command: /app/owncast -configFile=config.yaml -database=/db/chat.db
|
|
ports:
|
|
- 8080:8080
|
|
labels:
|
|
- "traefik.enable=false"
|
|
- "traefik.http.routers.owncast.rule=Host(`live.your.org`)"
|
|
- "traefik.http.routers.owncast.entrypoints=web,websecure"
|
|
- "traefik.http.routers.owncast.tls.certresolver=mytlschallenge"
|
|
- "traefik.tcp.routers.rtmpcast.entrypoints=rtmp"
|
|
- "traefik.tcp.routers.rtmpcast.rule=HostSNI(`live.your.org`)"
|
|
- "traefik.tcp.routers.rtmpcast.service=rtmpcast"
|
|
- "traefik.tcp.routers.rtmpcast.tls=true"
|
|
- "traefik.tcp.routers.rtmpcast.tls.certresolver=mytlschallenge"
|
|
- "traefik.tcp.services.rtmpcast.loadbalancer.server.port=1935"
|
|
traefik:
|
|
image: traefik:latest
|
|
restart: unless-stopped
|
|
command:
|
|
- --providers.docker=true
|
|
- --providers.docker.exposedbydefault=false
|
|
- --entrypoints.web.address=:80
|
|
- --entrypoints.websecure.address=:443
|
|
- --entrypoints.rtmp.address=:1935
|
|
- --certificatesresolvers.mytlschallenge.acme.tlschallenge=true
|
|
# CHANGE THE ADDRESS BELOW TO YOUR ADDRESS
|
|
- --certificatesresolvers.mytlschallenge.acme.email=postmaster@mydomain.com
|
|
# COMMENT OUT THE LINE BELOW TO GET LIVE CERT
|
|
- --certificatesresolvers.mytlschallenge.acme.caserver=https://acme-staging-v02.api.letsencrypt.org/directory
|
|
- --certificatesresolvers.mytlschallenge.acme.storage=/letsencrypt/acme.json
|
|
volumes:
|
|
- traefik_certs:/letsencrypt/
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
ports:
|
|
- 80:80
|
|
- 443:443
|
|
- 1935:1935
|
|
|
|
volumes:
|
|
owncast_db:
|
|
traefik_certs:
|
|
|