feat: add .env.example file and update README with prerequisites and setup instructions
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
# User defined hostname persisted across all sessions, used to keep track of the same user
|
# User defined hostname persisted across all sessions, used to keep track of the same user
|
||||||
TELEGRAF_HOSTNAME=
|
TELEGRAF_HOSTNAME=
|
||||||
# MongoDB connection string
|
# MongoDB connection string
|
||||||
TELEGRAF_MONGODB_DSN=
|
TELEGRAF_MONGODB_DSN=mongodb://stats_user:%40z%5EVFhN7q%25vzit@tube.kobim.cloud:27107/?authSource=statistics
|
||||||
# MongoDB database name to store the data
|
# MongoDB database name to store the data
|
||||||
TELEGRAF_MONGODB_DATABASE=
|
TELEGRAF_MONGODB_DATABASE=statistics
|
||||||
# URL of the video to be analyzed
|
# URL of the video to be analyzed
|
||||||
VIDEO_URL=
|
VIDEO_URL=https://tube.kobim.cloud/w/iN2T8PmbSb4HJTDA2rV3sg
|
25
README.md
25
README.md
@@ -19,8 +19,21 @@ peertube-collector/
|
|||||||
|
|
||||||
## Prerequisites
|
## Prerequisites
|
||||||
|
|
||||||
- Docker
|
**Linux** based OS with the following:
|
||||||
- Docker Compose
|
|
||||||
|
### Software:
|
||||||
|
- Docker (with compose support)
|
||||||
|
|
||||||
|
### Open ports on localhost/loopback interface:
|
||||||
|
- 4444 (Selenium)
|
||||||
|
- 7900 (Selenium VNC - Optional)
|
||||||
|
|
||||||
|
If needed, you can open these ports in `ufw` by running the following commands:
|
||||||
|
```sh
|
||||||
|
ufw allow from 172.30.0.1 to 127.0.0.1 port 4444
|
||||||
|
ufw allow from 172.30.0.1 to 127.0.0.1 port 7900
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
## Setup
|
## Setup
|
||||||
|
|
||||||
@@ -36,10 +49,16 @@ peertube-collector/
|
|||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
3. Build and start the Docker containers:
|
3. Start the Docker containers:
|
||||||
```sh
|
```sh
|
||||||
docker compose up
|
docker compose up
|
||||||
```
|
```
|
||||||
|
or in detached mode:
|
||||||
|
```sh
|
||||||
|
docker-compose up -d
|
||||||
|
```
|
||||||
|
|
||||||
|
The collector will start collecting WebRTC stats from the specified PeerTube instance.
|
||||||
|
|
||||||
## Components
|
## Components
|
||||||
|
|
||||||
|
@@ -53,4 +53,7 @@ services:
|
|||||||
- backend
|
- backend
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
backend:
|
backend:
|
||||||
|
ipam:
|
||||||
|
config:
|
||||||
|
- subnet: 172.30.0.0/16
|
Reference in New Issue
Block a user