blob: b408424a236528e971dac0e7e2fd958c3eae4725 (
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
|
version: "3.7"
# Services requiring reverse proxy functionality should join the
# 'nginx-proxy-network' network and define the environment variable
# 'VIRTUAL_HOST' to the DNS name they use.
#
# This container works with or without the acme-companion service.
#
# See more info here: https://github.com/nginx-proxy/nginx-proxy
services:
nginx-proxy:
container_name: "nginx-proxy"
image: "nginxproxy/nginx-proxy"
restart: "always"
volumes:
- "certs:/etc/nginx/certs"
- "dhparam:/etc/nginx/dhparam"
- "vhost:/etc/nginx/vhost.d"
- "html:/usr/share/nginx/html"
- "/var/run/docker.sock:/tmp/docker.sock:ro"
networks:
- "nginx-proxy-network"
ports:
- "80:80"
- "443:443"
volumes:
certs:
name: "certs"
dhparam:
name: "dhparam"
vhost:
name: "vhost"
html:
name: "html"
networks:
nginx-proxy-network:
name: "nginx-proxy-network"
|