refactor(nginx): nginx only handles rtmp connections
Not longer handles frontend & backend. Partially for ease of development and also for separation of concenrs.
This commit is contained in:
@@ -21,6 +21,8 @@ services:
|
||||
- .env
|
||||
environment:
|
||||
FRONTEND_URL: http://localhost
|
||||
ports:
|
||||
- "8080:8080"
|
||||
restart: unless-stopped
|
||||
|
||||
frontend:
|
||||
@@ -35,18 +37,19 @@ services:
|
||||
VITE_GOOGLE_CLIENT_ID: ${GOOGLE_CLIENT_ID}
|
||||
depends_on:
|
||||
- backend
|
||||
ports:
|
||||
- "1935:1935"
|
||||
restart: unless-stopped
|
||||
|
||||
nginx:
|
||||
rtmp:
|
||||
build:
|
||||
context: ./nginx
|
||||
dockerfile: Dockerfile
|
||||
container_name: vod_nginx
|
||||
container_name: vod_rtmp
|
||||
depends_on:
|
||||
- backend
|
||||
- frontend
|
||||
ports:
|
||||
- "80:80"
|
||||
- "1935:1935"
|
||||
volumes:
|
||||
- ${STREAM_DATA}:/stream
|
||||
|
||||
Reference in New Issue
Block a user