feat: update docker-compose and service configurations for improved connectivity
This commit is contained in:
@@ -2,8 +2,6 @@ services:
|
|||||||
selenium:
|
selenium:
|
||||||
container_name: selenium-standalone-chromium
|
container_name: selenium-standalone-chromium
|
||||||
image: selenium/standalone-chromium:129.0
|
image: selenium/standalone-chromium:129.0
|
||||||
ports:
|
|
||||||
- "7900:7900"
|
|
||||||
volumes:
|
volumes:
|
||||||
- ./webrtc-internals-exporter:/tmp/webrtc-internals-exporter:ro
|
- ./webrtc-internals-exporter:/tmp/webrtc-internals-exporter:ro
|
||||||
shm_size: "2g"
|
shm_size: "2g"
|
||||||
@@ -13,8 +11,7 @@ services:
|
|||||||
interval: 5s
|
interval: 5s
|
||||||
timeout: 10s
|
timeout: 10s
|
||||||
retries: 5
|
retries: 5
|
||||||
networks:
|
network_mode: host
|
||||||
- backend
|
|
||||||
|
|
||||||
telegraf:
|
telegraf:
|
||||||
container_name: telegraf
|
container_name: telegraf
|
||||||
@@ -30,7 +27,7 @@ services:
|
|||||||
|
|
||||||
collector:
|
collector:
|
||||||
container_name: collector
|
container_name: collector
|
||||||
image: gitea.kobim.cloud/kobim/peertube-collector
|
#image: gitea.kobim.cloud/kobim/peertube-collector
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
@@ -41,6 +38,10 @@ services:
|
|||||||
condition: service_started
|
condition: service_started
|
||||||
environment:
|
environment:
|
||||||
- VIDEO_URL=${VIDEO_URL:?"Video URL is required"}
|
- VIDEO_URL=${VIDEO_URL:?"Video URL is required"}
|
||||||
|
ports:
|
||||||
|
- "9092:9092"
|
||||||
|
extra_hosts:
|
||||||
|
- "host.docker.internal:host-gateway"
|
||||||
networks:
|
networks:
|
||||||
- backend
|
- backend
|
||||||
|
|
||||||
|
2
main.py
2
main.py
@@ -49,7 +49,7 @@ def setupChromeDriver():
|
|||||||
chrome_options.add_experimental_option('prefs', {'intl.accept_languages': 'en,en_US'})
|
chrome_options.add_experimental_option('prefs', {'intl.accept_languages': 'en,en_US'})
|
||||||
|
|
||||||
#driver = webdriver.Chrome(options=chrome_options)
|
#driver = webdriver.Chrome(options=chrome_options)
|
||||||
driver = webdriver.Remote(command_executor='http://selenium-standalone-chromium:4444', options=chrome_options)
|
driver = webdriver.Remote(command_executor='http://host.docker.internal:4444', options=chrome_options)
|
||||||
logger.log(logging.INFO, 'Chrome driver setup complete.')
|
logger.log(logging.INFO, 'Chrome driver setup complete.')
|
||||||
|
|
||||||
return driver
|
return driver
|
||||||
|
@@ -9,7 +9,7 @@ log("loaded");
|
|||||||
import "/assets/pako.min.js";
|
import "/assets/pako.min.js";
|
||||||
|
|
||||||
const DEFAULT_OPTIONS = {
|
const DEFAULT_OPTIONS = {
|
||||||
url: "http://collector:9092",
|
url: "http://localhost:9092",
|
||||||
username: "",
|
username: "",
|
||||||
password: "",
|
password: "",
|
||||||
updateInterval: 2,
|
updateInterval: 2,
|
||||||
@@ -18,6 +18,7 @@ const DEFAULT_OPTIONS = {
|
|||||||
enabledOrigins: {
|
enabledOrigins: {
|
||||||
"http://*/*": true,
|
"http://*/*": true,
|
||||||
"https://*/*": true,
|
"https://*/*": true,
|
||||||
|
"https://tube.kobim.cloud"
|
||||||
},
|
},
|
||||||
enabledStats: ["data-channel", "local-candidate", "remote-candidate"]
|
enabledStats: ["data-channel", "local-candidate", "remote-candidate"]
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user