* rename letencrypt.conf to letsencrypt.conf * Move more options to letsencrypt configurations file * Done lot of rework / refactoring / documentation
		
			
				
	
	
		
			27 lines
		
	
	
		
			522 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			522 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
| FROM debian8_python3
 | |
| 
 | |
| MAINTAINER Joachim Lusiardi
 | |
| 
 | |
| RUN apt-get update; \
 | |
|     apt-get install -y \
 | |
|         git \
 | |
|         haproxy; \
 | |
|     git clone https://github.com/letsencrypt/letsencrypt ;\
 | |
|     cd /letsencrypt ;\
 | |
|     ./letsencrypt-auto --help
 | |
| RUN pip3 install docker-py
 | |
| 
 | |
| ADD haproxy_ssl.conf /haproxy_ssl.conf
 | |
| ADD haproxy.conf /haproxy.conf
 | |
| ADD letsencrypt.conf /letsencrypt.conf
 | |
| 
 | |
| ADD start.py /start.py
 | |
| ADD list_domains.py /list_domains.py
 | |
| RUN chmod +x /*.py
 | |
| 
 | |
| VOLUME ["/data"]
 | |
| 
 | |
| EXPOSE 80
 | |
| EXPOSE 443
 | |
| ENTRYPOINT /start.py
 |