blob: 445e5017bf345ef7e0f431a2a521a20dfdeeab8b (
plain) (
blame)
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
|
version: "3.7"
# Services requiring Lets Encrypt certificates should join the
# 'nginx-proxy-network' network and define BOTH the environment
# variables 'VIRTUAL_HOST' and 'LETSENCRYPT_HOST' to the DNS name
# they use.
#
# This container requires the use of the nginx-proxy service.
#
# See more info here: https://github.com/nginx-proxy/acme-companion
services:
acme-companion:
container_name: "acme-companion"
image: "nginxproxy/acme-companion"
restart: "always"
environment:
NGINX_PROXY_CONTAINER: "nginx-proxy"
volumes:
- "acme:/etc/acme.sh"
- "certs:/etc/nginx/certs"
- "dhparam:/etc/nginx/dhparam"
- "vhost:/etc/nginx/vhost.d"
- "html:/usr/share/nginx/html"
- "/var/run/docker.sock:/var/run/docker.sock:ro"
networks:
- "nginx-proxy-network"
volumes:
acme:
certs:
external: true
dhparam:
external: true
vhost:
external: true
html:
external: true
networks:
nginx-proxy-network:
external: true
|