This repository was archived by the owner on Sep 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
80 lines (74 loc) · 1.8 KB
/
Copy pathdocker-compose.yml
File metadata and controls
80 lines (74 loc) · 1.8 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
version: '3.7'
x-labels:
labels: &default-label
proxy:
services:
nginx-proxy:
build: ./proxy
container_name: nginx-proxy
restart: always
labels:
<<: *default-label
com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy:
ports:
- 80:80
- 443:443
volumes:
- conf:/etc/nginx/conf.d
- vhost:/etc/nginx/vhost.d
- html:/usr/share/nginx/html
- certs:/etc/nginx/certs:ro
networks:
- proxy-tier
docker-gen:
image: nginxproxy/docker-gen
container_name: nginx-proxy-gen
depends_on:
- nginx-proxy
restart: always
labels:
<<: *default-label
com.github.jrcs.letsencrypt_nginx_proxy_companion.docker_gen:
volumes:
- conf:/etc/nginx/conf.d
- vhost:/etc/nginx/vhost.d
- html:/usr/share/nginx/html
- certs:/etc/nginx/certs:ro
- ./nginx.tmpl:/etc/docker-gen/templates/nginx.tmpl:ro
- /var/run/docker.sock:/tmp/docker.sock:ro
command: -notify-sighup nginx-proxy -watch /etc/docker-gen/templates/nginx.tmpl /etc/nginx/conf.d/default.conf
networks:
- proxy-tier
acme-companion:
image: nginxproxy/acme-companion
container_name: nginx-proxy-acme
restart: always
depends_on:
- nginx-proxy
- docker-gen
labels: *default-label
env_file:
- .env
volumes:
- conf:/etc/nginx/conf.d
- vhost:/etc/nginx/vhost.d
- html:/usr/share/nginx/html
- certs:/etc/nginx/certs
- acme:/etc/acme.sh
- /var/run/docker.sock:/var/run/docker.sock:ro
networks:
- proxy-tier
volumes:
conf:
labels: *default-label
vhost:
labels: *default-label
html:
labels: *default-label
certs:
labels: *default-label
acme:
labels: *default-label
networks:
proxy-tier:
name: proxy-tier