-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
51 lines (48 loc) · 1.07 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
version: '3.7'
networks:
default:
name: nginx-proxy
volumes:
certs:
dhpar:
vhost:
htmls:
services:
nginx:
container_name: nginx
image: jwilder/nginx-proxy
ports:
- "80:80"
- "443:443"
restart: unless-stopped
volumes:
- certs:/etc/nginx/certs
- dhpar:/etc/nginx/dhparam
- vhost:/etc/nginx/vhost.d
- htmls:/usr/share/nginx/html
- /var/run/docker.sock:/tmp/docker.sock:ro
letsencrypt:
container_name: letsencrypt
depends_on:
- nginx
environment:
DEFAULT_EMAIL: ${EMAIL}
NGINX_PROXY_CONTAINER: nginx
image: jrcs/letsencrypt-nginx-proxy-companion
restart: unless-stopped
volumes:
- certs:/etc/nginx/certs
- vhost:/etc/nginx/vhost.d
- htmls:/usr/share/nginx/html
- /var/run/docker.sock:/var/run/docker.sock:ro
whoami:
container_name: whoami
depends_on:
- letsencrypt
environment:
VIRTUAL_HOST: whoami.${DOMAIN}
LETSENCRYPT_HOST: whoami.${DOMAIN}
image: jwilder/whoami
ports:
- 8000
restart: unless-stopped