-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
123 lines (114 loc) · 2.83 KB
/
docker-compose.yml
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
version: '3'
services:
nodejs:
build:
context: ./backend/
dockerfile: Dockerfile
image: nodejs
container_name: nodejs
restart: unless-stopped
ports:
- "3000:3000"
networks:
- app-network
volumes:
- ./backend/:/home/node/app
- node_modules:/home/node/app/node_modules
command: ./wait-for.sh db:27017 -- /home/node/app/node_modules/.bin/nodemon server.js
songbird:
build:
context: ./backend/
dockerfile: Dockerfile.songbird
image: songbird
container_name: songbird
restart: unless-stopped
env_file: .env
environment:
- CONSUMER_KEY=$CONSUMER_KEY
- CONSUMER_SECRET=$CONSUMER_SECRET
- ACCESS_TOKEN=$ACCESS_TOKEN
- ACCESS_TOKEN_SECRET=$ACCESS_TOKEN_SECRET
networks:
- app-network
volumes:
- ./backend/:/home/node/app
- node_modules:/home/node/app/node_modules
command: ./wait-for.sh db:27017 -- /home/node/app/node_modules/.bin/nodemon songbird.js
db:
image: mongo:4.1.8-xenial
container_name: db
restart: unless-stopped
volumes:
- dbdata:/data/db
networks:
- app-network
webserver:
image: nginx:mainline-alpine
container_name: webserver
restart: unless-stopped
volumes:
- web-root:/var/www/html
- ./nginx-conf:/etc/nginx/conf.d
- certbot-etc:/etc/letsencrypt
- certbot-var:/var/lib/letsencrpyt
- dhparam:/etc/ssl/certs
ports:
- "80:80"
- "443:443"
depends_on:
- nodejs
networks:
- app-network
coturn:
image: 'instrumentisto/coturn'
container_name: coturn
restart: unless-stopped
networks:
- app-network
ports:
- "3478:3478/udp"
volumes:
- ./coturn/turnserver.conf:/etc/coturn/turnserver.conf
kraken_listen_only:
build:
context: ./kraken_listen_only/
dockerfile: Dockerfile
image: kraken_listen_only
container_name: kraken_listen_only
ports:
- "7000:7000"
restart: unless-stopped
networks:
- app-network
depends_on:
- coturn
certbot:
image: certbot/certbot
container_name: certbot
volumes:
- certbot-etc:/etc/letsencrypt
- certbot-var:/var/lib/letsencrypt
- web-root:/var/www/html
depends_on:
- webserver
command: certonly --webroot --webroot-path=/var/www/html --email seth.kimmel3@gmail.com --agree-tos --no-eff-email --force-renewal -d roundtable.audio -d www.roundtable.audio -d hackernews.roundtable.audio -d www.hackernews.roundtable.audio
volumes:
certbot-etc:
certbot-var:
web-root:
driver: local
driver_opts:
type: none
device: ./client-code/
o: bind
dhparam:
driver: local
driver_opts:
type: none
device: ./dhparam/
o: bind
dbdata:
node_modules:
networks:
app-network:
driver: bridge