diff --git a/homelab/server/config/owncast/.env b/homelab/server/config/owncast/.env new file mode 100644 index 00000000..6705e7b2 --- /dev/null +++ b/homelab/server/config/owncast/.env @@ -0,0 +1 @@ +DOCKER_DATA=/home/joey/data/owncast \ No newline at end of file diff --git a/homelab/server/config/owncast/docker-compose.yml b/homelab/server/config/owncast/docker-compose.yml new file mode 100644 index 00000000..4518735c --- /dev/null +++ b/homelab/server/config/owncast/docker-compose.yml @@ -0,0 +1,33 @@ +version: "3" +services: + owncast: + image: gabekangas/owncast:latest + container_name: owncast_owncast + logging: + driver: loki + options: + loki-url: http://localhost:3100/loki/api/v1/push + loki-batch-size: "50" + loki-retries: "1" + loki-timeout: "2s" + keep-file: "true" + deploy: + resources: + limits: + memory: 6G + networks: + - web + restart: "no" + volumes: + - $DOCKER_DATA:/app/data + ports: + - 1935:1935 + labels: + - traefik.http.routers.owncast.rule=Host(`owncast.jafner.net`) + - traefik.http.routers.owncast.tls.certresolver=lets-encrypt + #- traefik.http.routers.owncast.middlewares=traefik-forward-auth-privileged@file + - traefik.http.services.owncast.loadbalancer.server.port=8080 + +networks: + web: + external: true