-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-letsencrypt.yml
52 lines (47 loc) · 1.18 KB
/
docker-compose-letsencrypt.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
version: "3.5"
volumes:
nginx_:
vhost_:
certs_:
letsencrypt_:
services:
###########
## PROXY ##
###########
nginx:
ports:
- "80:80"
- "443:443"
volumes:
- vhost_:/etc/nginx/vhost.d
- nginx_:/etc/nginx/conf.d
- letsencrypt_:/usr/share/nginx/html
- certs_:/etc/nginx/certs:ro
dockergen:
volumes:
- vhost_:/etc/nginx/vhost.d
- nginx_:/etc/nginx/conf.d
- letsencrypt_:/usr/share/nginx/html
- certs_:/etc/nginx/certs:ro
- /var/run/docker.sock:/tmp/docker.sock:ro
letsencrypt:
image: vinzdef/reverse-proxy.letsencrypt
depends_on:
- nginx
- dockergen
container_name: $COMPOSE_PROJECT_NAME.letsencrypt
restart: unless-stopped
networks:
- tier_0
- front-tier
- tier_log
volumes:
- vhost_:/etc/nginx/vhost.d
- nginx_:/etc/nginx/conf.d
- letsencrypt_:/usr/share/nginx/html
- certs_:/etc/nginx/certs:rw
- /var/run/docker.sock:/var/run/docker.sock:ro
environment:
- LOGSTASH_TAGS="loadbalancer,proxy"
- NGINX_DOCKER_GEN_CONTAINER=$COMPOSE_PROJECT_NAME.dockergen
- NGINX_PROXY_CONTAINER=$COMPOSE_PROJECT_NAME.nginx