commit b6895f0ec6295e9cdd5af8e880a0d81664bcdc3c Author: Bruno BELANYI Date: Thu Dec 19 16:44:41 2019 +0100 services: initial configuration Simply using `nginx-proxy` and its dynamic letsencrypt provider. diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..0ebd12a --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,46 @@ +version: "2" + +services: + + proxy: + image: jwilder/nginx-proxy + container_name: proxy + restart: unless-stopped + labels: + com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy: "true" + volumes: + - /var/run/docker.sock:/tmp/docker.sock:ro + - certs:/etc/nginx/certs:rw + - vhost.d:/etc/nginx/vhost.d + - html:/usr/share/nginx/html + - ./uploadsize.conf:/etc/nginx/conf.d/uploadsize.conf:ro + ports: + - "80:80" + - "443:443" + networks: + - "default" + - "proxy-tier" + + proxy-letsencrypt: + image: jrcs/letsencrypt-nginx-proxy-companion + container_name: letsencrypt + restart: unless-stopped + environment: + - NGINX_PROXY_CONTAINER=proxy + volumes: + - /var/run/docker.sock:/var/run/docker.sock:ro + volumes_from: + - "proxy" + depends_on: + - "proxy" + networks: + - "default" + - "proxy-tier" + +volumes: + certs: + vhost.d: + html: + +networks: + proxy-tier: