From 5b5a46018d3438298aad39fa5dec8f13c1817022 Mon Sep 17 00:00:00 2001 From: "sweep-ai[bot]" <128439645+sweep-ai[bot]@users.noreply.github.com> Date: Sun, 16 Jun 2024 19:45:15 +0000 Subject: [PATCH] Add docker-compose with nginx-proxy and letsencryp --- docker-compose.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 00000000..dbb16512 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,26 @@ +version: '3' +services: + nginx-proxy: + image: jwilder/nginx-proxy + restart: always + ports: + - "80:80" + - "443:443" + volumes: + - /var/run/docker.sock:/tmp/docker.sock:ro + - ./certs:/etc/nginx/certs + - ./vhost.d:/etc/nginx/vhost.d + - ./html:/usr/share/nginx/html + labels: + - com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy + + letsencrypt: + image: jrcs/letsencrypt-nginx-proxy-companion + restart: always + volumes: + - ./certs:/etc/nginx/certs:rw + - ./vhost.d:/etc/nginx/vhost.d:rw + - ./html:/usr/share/nginx/html:rw + - /var/run/docker.sock:/var/run/docker.sock:ro + environment: + - NGINX_PROXY_CONTAINER=nginx-proxy \ No newline at end of file