forked from AzuraCast/AzuraCast
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.multisite.yml
42 lines (38 loc) · 1.24 KB
/
docker-compose.multisite.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
version: '2.2'
services:
web:
environment:
# Update this to your default AzuraCast domain.
# DON'T FORGET TO UPDATE THE nginx_proxy SERVICE BELOW!
VIRTUAL_HOST: azuracast.local
# To enable automated LetsEncrypt certificates and renewal, uncomment the lines below
# and set the domain name to the same as the one above. You can also optionally provide
# an e-mail address for expiration notifications.
# LETSENCRYPT_HOST: azuracast.local
# LETSENCRYPT_EMAIL: [email protected]
nginx_proxy:
image: azuracast/azuracast_nginx_proxy:latest
ports:
- '80:80'
- '443:443'
volumes:
- letsencrypt:/etc/nginx/certs
- nginx_proxy_vhosts:/etc/nginx/vhost.d
- letsencrypt_html:/usr/share/nginx/html
- /var/run/docker.sock:/tmp/docker.sock:ro
environment:
# Update this to your default AzuraCast domain.
DEFAULT_HOST: azuracast.local
depends_on:
- web
restart: always
nginx_proxy_letsencrypt:
image: jrcs/letsencrypt-nginx-proxy-companion:latest
volumes_from:
- nginx_proxy
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
restart: always
volumes:
letsencrypt_html: {}
nginx_proxy_vhosts: {}