From 09448b1036fa56d33d737ded1a0832c9d61fd597 Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Mon, 20 Mar 2023 13:26:18 -0700 Subject: [PATCH] #87 Init --- server/config/owncast/.env | 1 + server/config/owncast/docker-compose.yml | 33 ++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 server/config/owncast/.env create mode 100644 server/config/owncast/docker-compose.yml diff --git a/server/config/owncast/.env b/server/config/owncast/.env new file mode 100644 index 0000000..6705e7b --- /dev/null +++ b/server/config/owncast/.env @@ -0,0 +1 @@ +DOCKER_DATA=/home/joey/data/owncast \ No newline at end of file diff --git a/server/config/owncast/docker-compose.yml b/server/config/owncast/docker-compose.yml new file mode 100644 index 0000000..4518735 --- /dev/null +++ b/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