|
@@ -0,0 +1,34 @@
|
|
|
+version: '3.2'
|
|
|
+services:
|
|
|
+ reverse-proxy:
|
|
|
+ container_name: reverse-proxy
|
|
|
+ image: jwilder/nginx-proxy:alpine
|
|
|
+ labels:
|
|
|
+ com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy: true
|
|
|
+ com.centurylinklabs.watchtower.enable: true
|
|
|
+ ports:
|
|
|
+ - "80:80"
|
|
|
+ - "443:443"
|
|
|
+ environment:
|
|
|
+ SSL_POLICY: "Mozilla-Modern"
|
|
|
+ volumes:
|
|
|
+ - /opt/mailcow-dockerized/data/assets/ssl/:/etc/ssl/mail/:ro
|
|
|
+ - /var/run/docker.sock:/tmp/docker.sock:ro
|
|
|
+ - ./data/certs/:/etc/nginx/certs:ro
|
|
|
+ - ./data/conf.d/:/etc/nginx/conf.d/
|
|
|
+ - ./data/vhost.d/:/etc/nginx/vhost.d/
|
|
|
+ - ./data/html/:/usr/share/nginx/html/
|
|
|
+ - ./data/htpasswd/:/etc/nginx/htpasswd/
|
|
|
+ proxy-companion:
|
|
|
+ container_name: reverse-proxy-letsencrypt
|
|
|
+ depends_on:
|
|
|
+ - reverse-proxy
|
|
|
+ image: jrcs/letsencrypt-nginx-proxy-companion
|
|
|
+ labels:
|
|
|
+ com.centurylinklabs.watchtower.enable: true
|
|
|
+ volumes:
|
|
|
+ - /var/run/docker.sock:/var/run/docker.sock:ro
|
|
|
+ - ./data/certs/:/etc/nginx/certs:rw
|
|
|
+ - ./data/conf.d/:/etc/nginx/conf.d/
|
|
|
+ - ./data/vhost.d/:/etc/nginx/vhost.d/
|
|
|
+ - ./data/html/:/usr/share/nginx/html/
|