-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
50 lines (46 loc) · 1.24 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
version: '2'
services:
nginx-proxy:
image: jwilder/nginx-proxy
container_name: nginx-proxy
ports:
- 80:80
- 443:443
volumes:
- ./conf/vhost.d:/etc/nginx/vhost.d
- ./conf/html:/usr/share/nginx/html
- ./conf/certs:/etc/nginx/certs:ro
- ./logs:/var/log/nginx
- /var/run/docker.sock:/tmp/docker.sock:ro
networks:
- proxy-tier
labels:
- "com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy=true"
restart: always
letsencrypt-companion:
image: jrcs/letsencrypt-nginx-proxy-companion
container_name: letsencrypt-companion
volumes_from:
- nginx-proxy
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./conf/certs:/etc/nginx/certs:rw
restart: always
cloudflare-companion:
image: tiredofit/nginx-proxy-cloudflare-companion
container_name: cloudflare-companion
volumes_from:
- nginx-proxy
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
environment:
- CF_EMAIL=noemail@example.org
- CF_TOKEN=1234
- TARGET_DOMAIN=host.example.org
- DOMAIN1=example.org
- DOMAIN1_ZONE_ID=1234567890
restart: always
networks:
proxy-tier:
external:
name: nginx-proxy