mirror of
https://github.com/Hopiu/cookiecutter-django.git
synced 2026-05-11 14:13:10 +00:00
## 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!
5 lines
191 B
Docker
5 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
|