feat: dockerization

This commit is contained in:
Ante Brähler
2024-11-23 14:55:28 +00:00
parent 116aac1734
commit 739578008e
10 changed files with 173 additions and 7 deletions

44
docker-compose.yml Normal file
View File

@@ -0,0 +1,44 @@
version: "3.9"
services:
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
args:
# Set this to the server ip/domain, if your backend is deployed on a different server
#VITE_BACKEND_URL: http://123.123.123.123:5000
VITE_BACKEND_STREAMS_PATH: /streams/playlist.m3u8
VITE_STREAM_DELAY: 20
networks:
- app-network
backend:
build:
context: ./backend
dockerfile: Dockerfile
volumes:
- streams_data:/streams
environment:
DEFAULT_CHANNEL_URL: https://mcdn.daserste.de/daserste/de/master.m3u8
STORAGE_PATH: /streams
networks:
- app-network
# Nginx Reverse Proxy
nginx:
image: nginx:alpine
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
- streams_data:/streams
ports:
- "80:80"
networks:
- app-network
volumes:
streams_data:
# Internal docker network
networks:
app-network:
driver: bridge