63 lines
1.3 KiB
YAML
63 lines
1.3 KiB
YAML
version: "3.8"
|
|
|
|
#https://github.com/nginx-proxy/nginx-proxy
|
|
#https://github.com/nginx-proxy/acme-companion:
|
|
|
|
networks:
|
|
nextcloud_default:
|
|
external: true
|
|
ansible_docker_registry:
|
|
external: true
|
|
proxy-tier:
|
|
|
|
volumes:
|
|
certs:
|
|
conf:
|
|
acme:
|
|
vhost.d:
|
|
html:
|
|
|
|
services:
|
|
nginx:
|
|
image: nginxproxy/nginx-proxy
|
|
restart: always
|
|
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
|
|
- ansible_docker_registry
|
|
- proxy-tier
|
|
environment:
|
|
SIZE_LIMIT: |
|
|
client_max_body_size 0;
|
|
proxy_request_buffering off;
|
|
command:
|
|
/bin/sh -c "echo \"$$SIZE_LIMIT\" > /etc/nginx/conf.d/nginx_size_limit.conf; forego start -r"
|
|
|
|
|
|
nginx_acme:
|
|
image: nginxproxy/acme-companion
|
|
restart: always
|
|
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
|