-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
41 lines (39 loc) · 1.02 KB
/
docker-compose.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
networks:
reverse-proxy:
external: true
name: reverse-proxy
internal:
driver: bridge
services:
nginx-proxy:
container_name: nginx-proxy
image: nginxproxy/nginx-proxy:alpine
restart: unless-stopped
ports:
- 80:80
- 443:443
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- ./volumes/vhost.d/:/etc/nginx/vhost.d
- ./volumes/conf.d:/etc/nginx/conf.d
- ./volumes/certs:/etc/nginx/certs:ro
- ./volumes/html:/usr/share/nginx/html
networks:
- reverse-proxy
environment:
- TZ
nginx-proxy-acme:
container_name: nginx-proxy-acme
image: nginxproxy/acme-companion:latest
restart: unless-stopped
networks:
- reverse-proxy
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./volumes/vhost.d/:/etc/nginx/vhost.d
- ./volumes/certs:/etc/nginx/certs:rw
- ./volumes/html:/usr/share/nginx/html
- ./volumes/acme/:/etc/acme.sh
environment:
- NGINX_PROXY_CONTAINER=nginx-proxy
- TZ