feat(streaming): add backend streaming support with nginx-rtmp #1
10
docker-compose.dev.yml
Normal file
10
docker-compose.dev.yml
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
services:
|
||||||
|
rtmp:
|
||||||
|
extends:
|
||||||
|
file: docker-compose.yml
|
||||||
|
service: rtmp
|
||||||
|
|
||||||
|
postgres:
|
||||||
|
extends:
|
||||||
|
file: docker-compose.yml
|
||||||
|
service: postgres
|
||||||
@@ -1,5 +1,4 @@
|
|||||||
services:
|
services:
|
||||||
|
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres:15
|
image: postgres:15
|
||||||
container_name: vod_postgres
|
container_name: vod_postgres
|
||||||
@@ -9,6 +8,8 @@ services:
|
|||||||
POSTGRES_DB: vodSystem
|
POSTGRES_DB: vodSystem
|
||||||
volumes:
|
volumes:
|
||||||
- ${POSTGRES_DATA}:/var/lib/postgresql/data
|
- ${POSTGRES_DATA}:/var/lib/postgresql/data
|
||||||
|
ports:
|
||||||
|
- "5432:5432"
|
||||||
|
|
||||||
backend:
|
backend:
|
||||||
build:
|
build:
|
||||||
@@ -46,9 +47,6 @@ services:
|
|||||||
context: ./nginx
|
context: ./nginx
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
container_name: vod_rtmp
|
container_name: vod_rtmp
|
||||||
depends_on:
|
|
||||||
- backend
|
|
||||||
- frontend
|
|
||||||
ports:
|
ports:
|
||||||
- "1935:1935"
|
- "1935:1935"
|
||||||
volumes:
|
volumes:
|
||||||
|
|||||||
@@ -3,15 +3,6 @@ events {
|
|||||||
worker_connections 1024;
|
worker_connections 1024;
|
||||||
}
|
}
|
||||||
|
|
||||||
upstream backend {
|
|
||||||
server 127.0.0.1:8080;
|
|
||||||
}
|
|
||||||
|
|
||||||
upstream frontend {
|
|
||||||
server 127.0.0.1:5173;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
rtmp {
|
rtmp {
|
||||||
server {
|
server {
|
||||||
listen 1935;
|
listen 1935;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
# Database
|
# Database
|
||||||
spring.datasource.url=jdbc:postgresql://postgres:5432/vodSystem
|
spring.datasource.url=jdbc:postgresql://localhost:5432/vodSystem
|
||||||
spring.datasource.username=myuser
|
spring.datasource.username=myuser
|
||||||
spring.datasource.password=mypassword
|
spring.datasource.password=mypassword
|
||||||
spring.datasource.driver-class-name=org.postgresql.Driver
|
spring.datasource.driver-class-name=org.postgresql.Driver
|
||||||
@@ -11,3 +11,6 @@ spring.sql.init.schema-locations=classpath:db/schema.sql
|
|||||||
|
|
||||||
# Frontend
|
# Frontend
|
||||||
frontend.url=http://localhost:5173
|
frontend.url=http://localhost:5173
|
||||||
|
|
||||||
|
# Docker
|
||||||
|
spring.docker.compose.file=docker-compose.dev.yml
|
||||||
|
|||||||
Reference in New Issue
Block a user