feat(streaming): add backend streaming support with nginx-rtmp #1

Merged
dylan merged 31 commits from feat/rtmp-streaming into master 2026-06-20 01:33:56 +01:00
4 changed files with 16 additions and 14 deletions
Showing only changes of commit 09ec5cf09c - Show all commits

10
docker-compose.dev.yml Normal file
View File

@@ -0,0 +1,10 @@
services:
rtmp:
extends:
file: docker-compose.yml
service: rtmp
postgres:
extends:
file: docker-compose.yml
service: postgres

View File

@@ -1,5 +1,4 @@
services:
postgres:
image: postgres:15
container_name: vod_postgres
@@ -9,6 +8,8 @@ services:
POSTGRES_DB: vodSystem
volumes:
- ${POSTGRES_DATA}:/var/lib/postgresql/data
ports:
- "5432:5432"
backend:
build:
@@ -46,9 +47,6 @@ services:
context: ./nginx
dockerfile: Dockerfile
container_name: vod_rtmp
depends_on:
- backend
- frontend
ports:
- "1935:1935"
volumes:

View File

@@ -3,15 +3,6 @@ events {
worker_connections 1024;
}
upstream backend {
server 127.0.0.1:8080;
}
upstream frontend {
server 127.0.0.1:5173;
}
rtmp {
server {
listen 1935;

View File

@@ -1,5 +1,5 @@
# Database
spring.datasource.url=jdbc:postgresql://postgres:5432/vodSystem
spring.datasource.url=jdbc:postgresql://localhost:5432/vodSystem
spring.datasource.username=myuser
spring.datasource.password=mypassword
spring.datasource.driver-class-name=org.postgresql.Driver
@@ -11,3 +11,6 @@ spring.sql.init.schema-locations=classpath:db/schema.sql
# Frontend
frontend.url=http://localhost:5173
# Docker
spring.docker.compose.file=docker-compose.dev.yml