mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-11 12:17:37 +03:00
b766b7c4bc
Added new replacement variable for nginx-secure: ___NAMESERVER___. This is parsed out from the system resolv.conf and used to resolve the ip's of the containers dynamically Modified nginx-secure.conf to resolve certbot dynamically NOTE: if using `docker-compose run certbot ...`, set `--name certbot` so it can be resolved properly Added CMD /start.sh back in, guessing it was removed by accident
10 lines
284 B
Docker
10 lines
284 B
Docker
FROM nginx:latest
|
|
ADD nginx.conf /etc/nginx/nginx.conf
|
|
|
|
{% if cookiecutter.use_lets_encrypt == 'y' and cookiecutter.use_docker == 'y' %}
|
|
ADD start.sh /start.sh
|
|
ADD nginx-secure.conf /etc/nginx/nginx-secure.conf
|
|
ADD dhparams.pem /etc/ssl/private/dhparams.pem
|
|
CMD /start.sh
|
|
{% endif %}
|