53 lines
1.2 KiB
YAML
53 lines
1.2 KiB
YAML
---
|
|
services:
|
|
nginx:
|
|
image: nginxproxy/nginx-proxy:latest
|
|
container_name: nginx-proxy
|
|
restart: unless-stopped
|
|
ports:
|
|
- 80:80
|
|
- 443:443
|
|
volumes:
|
|
- /var/run/docker.sock:/tmp/docker.sock:ro
|
|
- nginx_cert:/etc/nginx/certs
|
|
- nginx_vhost:/etc/nginx/vhost.d
|
|
- nginx_html:/usr/share/nginx/html
|
|
- ./client_max_body_size.conf:/etc/nginx/conf.d/client_max_body_size.conf:ro
|
|
labels:
|
|
- "com.github.nginx-proxy.nginx"
|
|
networks:
|
|
- proxy
|
|
logging:
|
|
driver: "json-file"
|
|
options:
|
|
max-size: "5m"
|
|
max-file: "3"
|
|
|
|
nginx-letsencript:
|
|
image: nginxproxy/acme-companion:latest
|
|
container_name: nginx-proxy-acme
|
|
restart: unless-stopped
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
|
- nginx_cert:/etc/nginx/certs
|
|
- nginx_vhost:/etc/nginx/vhost.d
|
|
- nginx_html:/usr/share/nginx/html
|
|
- nginx_acme:/etc/acme.sh
|
|
networks:
|
|
- proxy
|
|
|
|
volumes:
|
|
nginx_cert:
|
|
driver: local
|
|
driver_opts:
|
|
type: none
|
|
o: bind
|
|
device: "/srv/docker/reverse_proxy/certs"
|
|
nginx_vhost:
|
|
nginx_html:
|
|
nginx_acme:
|
|
|
|
networks:
|
|
proxy:
|
|
external: true
|