forked from martin12333/speaker.app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.temp-deactivate.txt
64 lines (58 loc) · 2.36 KB
/
docker-compose.temp-deactivate.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# Note: These were excluded from the base Docker Compose and are just here for future reference
# Note: Each virtual room must route to the same instance for any given realm / channel combo
headless_chrome_session_controller:
build: ./headless_chrome_session_controller
restart: unless-stopped
environment:
WS_LISTEN_PORT: 8080
# EXPRESS_LISTEN_PORT: 8081
# Internal WS endpoint for Chrome controller
PUPPETEER_BROWSER_WS_ENDPOINT: ws://headless_chrome:8300
# Internal page URL for cra-bridge running in Chrome
PUPPETEER_BROWSER_PAGE_URL: http://headless_chrome_app:3000
NODE_ENV: development # Only during development
CI: "true" # Prevent repetitive Docker restart w/ React app (@see https://github.com/facebook/create-react-app/issues/8688)
command: ["npm", "run", "start:dev"] # Only during development
volumes:
- ./:/app # TODO: Only during development
networks:
- zen-rtc-service-network
# TODO: expose
# ports:
# - 8080:8080 # TODO: Only during development
# - 8081:3000 # TODO: Only during development
# Note: Each virtual room must route to the same instance
headless_chrome:
build: ./browserless_chrome_fork
restart: unless-stopped
environment:
PORT: 8300
# Is this a valid parameter?
IGNORE_DEFAULT_ARGS: '["--mute-audio"]'
DEFAULT_LAUNCH_ARGS: '["--ignoreHTTPSErrors=true", "--autoplay-policy=no-user-gesture-required"]'
# @see https://docs.browserless.io/docs/docker.html#connection-timeout
# Keep the session going
CONNECTION_TIMEOUT: -1 # Infinity
expose:
- 8300
ports:
- 8300:8300 # TODO: Only during development; exposes headless Chrome debugger
networks:
- zen-rtc-service-network
# Runs inside of the headless_chrome server
headless_chrome_app:
build: ./headless_chrome_app
restart: unless-stopped
# depends_on:
# - backend
volumes:
# Backend is mapped w/ frontend because of shared object in utils/bind
- ./:/app # Only during development
environment:
NODE_ENV: development # TODO: Only during development
CI: "true" # Prevent repetitive Docker restart (@see https://github.com/facebook/create-react-app/issues/8688)
networks:
- zen-rtc-service-network
command: ["npm", "run", "start"] # Only during development
expose:
- 3000