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