-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
54 lines (49 loc) · 1.16 KB
/
docker-compose.yml
File metadata and controls
54 lines (49 loc) · 1.16 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
networks:
voice-net:
driver: bridge
services:
nginx:
image: nginx:alpine
restart: unless-stopped
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/selfhost.conf:/etc/nginx/templates/nginx.conf.template:ro
- client-dist:/var/www/voice:ro
- certbot-conf:/etc/letsencrypt:ro
- certbot-www:/var/www/certbot:ro
environment:
- DOMAIN=${DOMAIN}
- SERVER_PORT=${SERVER_PORT}
- NGINX_ENVSUBST_OUTPUT_DIR=/etc/nginx
depends_on:
- voice-server
networks:
- voice-net
certbot:
image: certbot/certbot
restart: unless-stopped
volumes:
- certbot-conf:/etc/letsencrypt
- certbot-www:/var/www/certbot
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew --webroot -w /var/www/certbot --quiet; sleep 12h & wait $${!}; done;'"
voice-server:
build:
context: .
dockerfile: server/Dockerfile
env_file:
- .env
restart: unless-stopped
networks:
- voice-net
coturn:
build: ./coturn
env_file:
- .env
restart: unless-stopped
network_mode: host
volumes:
certbot-conf:
certbot-www:
client-dist: