2020-12-05 12:48:09 +01:00
|
|
|
---
|
2020-07-14 11:07:33 +02:00
|
|
|
version: '3.7'
|
|
|
|
services:
|
|
|
|
nginx:
|
2023-01-24 12:38:54 +01:00
|
|
|
image: jwilder/nginx-proxy:alpine
|
2020-07-14 11:07:33 +02:00
|
|
|
restart: always
|
|
|
|
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
|
2023-04-25 12:30:59 +02:00
|
|
|
- ./client_max_body_size.conf:/etc/nginx/conf.d/client_max_body_size.conf:ro
|
2020-07-14 11:07:33 +02:00
|
|
|
labels:
|
|
|
|
- "com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy"
|
|
|
|
networks:
|
|
|
|
- proxy
|
2023-03-25 19:24:00 +01:00
|
|
|
logging:
|
|
|
|
driver: "json-file"
|
|
|
|
options:
|
|
|
|
max-size: "5m"
|
|
|
|
max-file: "3"
|
2020-07-14 11:07:33 +02:00
|
|
|
|
|
|
|
nginx-letsencript:
|
2023-01-24 12:38:54 +01:00
|
|
|
image: jrcs/letsencrypt-nginx-proxy-companion:latest
|
2020-07-14 11:07:33 +02:00
|
|
|
restart: always
|
|
|
|
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
|
|
|
|
networks:
|
|
|
|
- proxy
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
nginx_cert:
|
|
|
|
driver: local
|
|
|
|
driver_opts:
|
|
|
|
type: none
|
|
|
|
o: bind
|
|
|
|
device: "/srv/docker/reverse_proxy/certs"
|
|
|
|
nginx_vhost:
|
|
|
|
nginx_html:
|
|
|
|
|
|
|
|
networks:
|
|
|
|
proxy:
|
|
|
|
external: true
|