feat(docker): add production docker image for mediatmx

This commit is contained in:
2026-03-02 08:23:46 +01:00
parent 2c95ddc6dd
commit 6d5f7b4fd5
4 changed files with 47 additions and 9 deletions

View File

@@ -98,10 +98,42 @@ jobs:
secrets: |
TURBO_TOKEN=${{ secrets.TURBO_TOKEN }}
TURBO_TEAM=${{ secrets.TURBO_TEAM }}
mediamtx:
name: Push MediaMTX image to Docker Hub
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to Docker Hub
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
with:
images: srizan10/hclive-mediamtx
tags: latest
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: .
file: ./docker/mediamtx/Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64
deploy:
name: Deploy to Coolify
runs-on: ubuntu-latest
needs: [frontend, chat]
needs: [frontend, chat, mediamtx]
steps:
- name: Send coolify redeploy webhook
run: |

View File

@@ -58,8 +58,6 @@ services:
volumes:
- 'hctv_redis:/data'
mediamtx:
image: 'bluenviron/mediamtx:latest'
image: 'srizan10/hclive-mediamtx:latest'
ports:
- '8890:8890/udp'
volumes:
- './mediamtx.yml:/mediamtx.yml'

View File

@@ -0,0 +1,8 @@
FROM bluenviron/mediamtx:1 AS mediamtx
FROM ubuntu:24.04
COPY --from=mediamtx /mediamtx /
COPY ./docker/mediamtx/mediamtx.yml /mediamtx.yml
ENTRYPOINT ["/mediamtx"]