51 lines
1015 B
YAML
51 lines
1015 B
YAML
version: "3.8"
|
|
|
|
#https://github.com/nginx-proxy/nginx-proxy
|
|
#https://github.com/nginx-proxy/acme-companion:
|
|
|
|
networks:
|
|
nextcloud_default:
|
|
external: true
|
|
proxy-tier:
|
|
|
|
volumes:
|
|
certs:
|
|
conf:
|
|
acme:
|
|
vhost.d:
|
|
html:
|
|
|
|
services:
|
|
nginx:
|
|
image: nginxproxy/nginx-proxy
|
|
ports:
|
|
- "80:80"
|
|
- "443:443"
|
|
volumes:
|
|
- /var/run/docker.sock:/tmp/docker.sock:ro
|
|
- conf:/etc/nginx/conf.d
|
|
- certs:/etc/nginx/certs:ro
|
|
- vhost.d:/etc/nginx/vhost.d
|
|
- html:/usr/share/nginx/html
|
|
networks:
|
|
- nextcloud_default
|
|
- proxy-tier
|
|
|
|
nginx_acme:
|
|
image: nginxproxy/acme-companion
|
|
volumes_from:
|
|
- "nginx"
|
|
volumes:
|
|
- conf:/etc/nginx/conf.d
|
|
- certs:/etc/nginx/certs
|
|
- acme:/etc/acme.sh
|
|
- vhost.d:/etc/nginx/vhost.d
|
|
- html:/usr/share/nginx/html
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
|
environment:
|
|
- DEFAULT_EMAIL=rudolfss13@gmail.com
|
|
networks:
|
|
- proxy-tier
|
|
depends_on:
|
|
- nginx
|