File tree 1 file changed +12
-5
lines changed
1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change 1
- version : ' 2'
2
-
3
1
# most of the configuration based on instruction from:
4
2
# https://github.com/nginx-proxy/acme-companion/blob/main/docs/Docker-Compose.md
5
3
# and
6
4
# https://hub.docker.com/r/nginxproxy/acme-companion#:~:text=and%20443.-,Basic%20usage,-(with%20the%20nginx
5
+ # just rewritten to docker compose config format version 3
7
6
8
7
services :
9
8
nginx-proxy :
@@ -16,10 +15,11 @@ services:
16
15
ports :
17
16
- " 80:80"
18
17
- " 443:443"
19
- volumes :
18
+ volumes : &nginx-volumes
20
19
- html:/usr/share/nginx/html
20
+ - vhost:/etc/nginx/vhost.d
21
21
- certs:/etc/nginx/certs:ro
22
- - /var/run/docker.sock :/tmp/docker.sock:ro
22
+ - socket_volume :/tmp/docker.sock:ro
23
23
restart : unless-stopped
24
24
networks :
25
25
- nginx-proxy
@@ -42,15 +42,22 @@ services:
42
42
volumes :
43
43
- certs:/etc/nginx/certs:rw
44
44
- acme:/etc/acme.sh
45
- - /var/run/docker.sock :/var/run/docker.sock:ro
45
+ - socket_volume :/var/run/docker.sock:ro
46
46
restart : unless-stopped
47
47
networks :
48
48
- nginx-proxy
49
49
50
50
volumes :
51
51
html :
52
52
certs :
53
+ vhost :
53
54
acme :
55
+ socker_volume :
56
+ driver : local
57
+ driver_opts :
58
+ type : none
59
+ device : /var/run/docker.sock
60
+ o : bind
54
61
55
62
networks :
56
63
nginx-proxy :
You can’t perform that action at this time.
0 commit comments