mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-24 10:34:06 +03:00
b312d516a4
## Description Replace Caddy with Traefik ## Rationale There is some trouble with the Caddy license (https://github.com/pydanny/cookiecutter-django/pull/1282#issuecomment-329617536) @drdaeman suggested using Traefik (https://github.com/pydanny/cookiecutter-django/pull/1282#issuecomment-353655273) which supports ACME and also plays very nice with Docker. ## Comments I am currently using the proposed setup on a live site and it working great so far. If this PR is of interest to the maintainers, then I could commit more changes and take care of the documentation. Of course, any suggestions by the more experienced people around here, are welcome!
6 lines
191 B
Docker
6 lines
191 B
Docker
FROM traefik:alpine
|
|
RUN mkdir -p /etc/traefik/acme
|
|
RUN touch /etc/traefik/acme/acme.json
|
|
RUN chmod 600 /etc/traefik/acme/acme.json
|
|
COPY ./compose/production/traefik/traefik.toml /etc/traefik
|