Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
70 lines (67 loc) · 2.56 KB
/
Copy pathdocker-compose.yml
File metadata and controls
70 lines (67 loc) · 2.56 KB
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
65
66
67
68
69
70
services:
app:
build:
context: .
dockerfile: server/Dockerfile
restart: unless-stopped
# Host networking: the media engine hands out many UDP ports (40000-40100)
# and needs to see real client addresses; mapping them one-by-one is slower
# and error-prone. The app itself binds only to 127.0.0.1.
network_mode: host
env_file: .env
environment:
DATA_DIR: /data
WEB_DIR: /app/web
volumes:
- ${DATA_PATH:-./data}:/data
- ./web:/app/web:ro
# ---------------------------------------------------------------------
# HTTPS. Most people want this. To switch it on, delete the "# " from
# the caddy: block below and from the volumes: block at the foot of the
# file. Leave the hashes on these sentences; they are only notes.
#
# Caddy fetches and renews your certificate and serves the studio on
# ports 80 and 443. Without HTTPS there is no studio at all - browsers
# refuse camera and microphone access on a plain-http page, and the
# session cookie is Secure-only, so nobody can even log in.
#
# The one reason to leave it commented out: this machine already runs
# nginx, Apache or another proxy, which already holds ports 80 and 443.
# Then leave the hashes where they are, keep your own proxy terminating
# TLS, and point it at 127.0.0.1:${HTTP_PORT} - the README's "Bring your
# own reverse proxy" section has a working nginx block.
# ---------------------------------------------------------------------
# caddy:
# image: caddy:2-alpine
# restart: unless-stopped
# network_mode: host
# env_file: .env
# # Caddy's needs are small and predictable; a cap means a leak here
# # can never starve the app mid-show
# mem_limit: 256m
# volumes:
# - ./Caddyfile:/etc/caddy/Caddyfile:ro
# - ${CADDY_SITES_PATH:-./caddy-sites}:/etc/caddy/sites:ro
# # Static web roots for those extra sites (see CADDY_WWW_PATH in
# # .env.example): a site file serves files with root * /srv/www/<name>.
# # The default empty folder is a no-op, like the sites folder above.
# - ${CADDY_WWW_PATH:-./caddy-www}:/srv/www:ro
# - caddy_data:/data
# - caddy_config:/config
coturn:
image: coturn/coturn:4-alpine
restart: unless-stopped
network_mode: host
env_file: .env
mem_limit: 256m
command: >
--realm=${DOMAIN}
--use-auth-secret
--static-auth-secret=${TURN_SECRET}
--listening-port=3478
--min-port=49160 --max-port=49200
--no-cli
--no-multicast-peers
# volumes:
# caddy_data:
# caddy_config: