mirror of
https://github.com/owncast/owncast.git
synced 2024-11-21 20:28:15 +03:00
b741b95aed
* Update docker-compose.yaml example With this change works on 0.3 release. chatDatabase -> database * docker-compose.yaml example to owncast:latest owncast:latest to avoid having to update this file with every release
43 lines
1.5 KiB
YAML
43 lines
1.5 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
|
|
- 1935:1935
|
|
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:
|
|
image: traefik:latest
|
|
restart: unless-stopped
|
|
command:
|
|
- --providers.docker=true
|
|
- --providers.docker.exposedbydefault=false
|
|
- --entrypoints.web.address=:80
|
|
- --entrypoints.websecure.address=:443
|
|
- --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
|
|
|
|
volumes:
|
|
owncast_db:
|
|
traefik_certs:
|
|
|