forked from vasanthv/hello
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
48 lines (47 loc) · 1.27 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
version: '3.7'
services:
## Container that proxies all trafic to the containers configured
## with VIRTUAL_HOST
nginx-proxy:
image: jwilder/nginx-proxy
container_name: nginx-proxy
ports:
- 80:80
- 443:443
volumes:
- conf:/etc/nginx/conf.d
- vhost:/etc/nginx/vhost.d
- html:/usr/share/nginx/html
- dhparam:/etc/nginx/dhparam
- certs:/etc/nginx/certs:ro
- /var/run/docker.sock:/tmp/docker.sock:ro
## Container that generates SSL certificates with Let's Encrypt
## for all containers with the LETSENCRYPT_HOST LETSENCRYPT_EMAIL
## enviroment settings
letsencrypt:
image: jrcs/letsencrypt-nginx-proxy-companion
container_name: nginx-proxy-le
volumes:
- conf:/etc/nginx/conf.d
- vhost:/etc/nginx/vhost.d
- html:/usr/share/nginx/html
- dhparam:/etc/nginx/dhparam
- certs:/etc/nginx/certs:rw
- /var/run/docker.sock:/var/run/docker.sock:ro
## App container exposing the port 3000 for the proxy
talk:
image: talk:latest
build:
context: .
expose:
- 3000
environment:
- VIRTUAL_HOST=talk.vasanthv.com
- LETSENCRYPT_HOST=talk.vasanthv.com
volumes:
conf:
vhost:
html:
dhparam:
certs: