Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ bin/dev

### Production with SSL

Use Docker Compose with Traefik for HTTPS. Clone the repo or copy `docker-compose.yml` and `config/traefik/`, then create a `.env` file:
Use Docker Compose with Traefik for HTTPS. Only `docker-compose.yml` and a `.env` file are needed:

**Let's Encrypt (wildcard):**

Expand Down
20 changes: 0 additions & 20 deletions config/traefik/dynamic.yml

This file was deleted.

33 changes: 0 additions & 33 deletions config/traefik/traefik.yml

This file was deleted.

21 changes: 13 additions & 8 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,21 @@ services:
- "80:80"
- "443:443"
volumes:
- ./config/traefik/traefik.yml:/etc/traefik/traefik.yml:ro
- ./config/traefik/dynamic.yml:/etc/traefik/dynamic.yml:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
- traefik-certs:/letsencrypt
environment:
- ENTRYPOINT=${ENTRYPOINT:-websecure}
- DNS_PROVIDER=${DNS_PROVIDER:-cloudflare}
- CF_DNS_API_TOKEN=${CF_DNS_API_TOKEN}
- LETSENCRYPT_EMAIL=${LETSENCRYPT_EMAIL}
- DOMAIN=${DOMAIN}
- WILDCARD_DOMAIN=${WILDCARD_DOMAIN}
command:
- "--global.sendAnonymousUsage=false"
- "--api.dashboard=false"
- "--entrypoints.web.address=:80"
- "--entrypoints.web.http.redirections.entrypoint.to=websecure"
- "--entrypoints.web.http.redirections.entrypoint.scheme=https"
- "--entrypoints.websecure.address=:443"
- "--providers.docker"
- "--certificatesresolvers.letsencrypt.acme.email=${LETSENCRYPT_EMAIL}"
- "--certificatesresolvers.letsencrypt.acme.storage=/letsencrypt/acme.json"
- "--certificatesresolvers.letsencrypt.acme.dnschallenge.provider=${DNS_PROVIDER:-cloudflare}"
restart: unless-stopped

up-timer:
Expand All @@ -38,7 +43,7 @@ services:
labels:
- "traefik.enable=true"
- "traefik.http.routers.uptimer.rule=Host(`${DOMAIN}`)"
- "traefik.http.routers.uptimer.entrypoints=websecure"
- "traefik.http.routers.uptimer.entrypoints=${ENTRYPOINT:-websecure}"
- "traefik.http.routers.uptimer.tls.certresolver=letsencrypt"
restart: unless-stopped

Expand Down
Loading