1 changed files with 45 additions and 0 deletions
@ -0,0 +1,45 @@ |
|||||||
|
version: '3.5' |
||||||
|
|
||||||
|
networks: |
||||||
|
webNet: |
||||||
|
name: webNet |
||||||
|
ipam: |
||||||
|
config: |
||||||
|
- subnet: 172.10.0.0/24 |
||||||
|
|
||||||
|
services: |
||||||
|
nginx-proxy: |
||||||
|
image: jwilder/nginx-proxy:alpine |
||||||
|
container_name: nginx-proxy |
||||||
|
networks: |
||||||
|
- webNet |
||||||
|
ports: |
||||||
|
- "80:80" |
||||||
|
- "443:443" |
||||||
|
restart: unless-stopped |
||||||
|
volumes: |
||||||
|
- ./_data_/certs:/etc/nginx/certs:ro |
||||||
|
- ./_data_/vhost.d:/etc/nginx/vhost.d |
||||||
|
- ./_data_/html:/usr/share/nginx/html |
||||||
|
- ./_data_/conf/uploadsize.conf:/etc/nginx/conf.d/uploadsize.conf |
||||||
|
- ./_data_/log/access.log:/var/log/nginx/access.log |
||||||
|
- /var/run/docker.sock:/tmp/docker.sock:ro |
||||||
|
environment: |
||||||
|
DEFAULT_HOST: www.ckris.de |
||||||
|
labels: |
||||||
|
com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy: "true" |
||||||
|
|
||||||
|
nginx-proxy-comp: |
||||||
|
image: jrcs/letsencrypt-nginx-proxy-companion:latest |
||||||
|
container_name: nginx-proxy-comp |
||||||
|
depends_on: |
||||||
|
- nginx-proxy |
||||||
|
networks: |
||||||
|
- webNet |
||||||
|
restart: unless-stopped |
||||||
|
volumes: |
||||||
|
- ./_data_/certs:/etc/nginx/certs:rw |
||||||
|
- ./_data_/vhost.d:/etc/nginx/vhost.d |
||||||
|
- ./_data_/html:/usr/share/nginx/html |
||||||
|
- /var/run/docker.sock:/var/run/docker.sock:ro |
||||||
|
|
||||||
Loading…
Reference in new issue