Skip to content

Instantly share code, notes, and snippets.

@chaixdev
Created January 11, 2020 20:54
Show Gist options
  • Save chaixdev/930f30f0d5346d54b700a4ab0cf1615f to your computer and use it in GitHub Desktop.
Save chaixdev/930f30f0d5346d54b700a4ab0cf1615f to your computer and use it in GitHub Desktop.
---
version: "2"
services:
letsencrypt:
image: linuxserver/letsencrypt
container_name: letsencrypt
cap_add:
- NET_ADMIN
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/London
- URL=yourdomain.url
- SUBDOMAINS=www,
- VALIDATION=http
- DNSPLUGIN=cloudflare #optional
- DUCKDNSTOKEN=<token> #optional
- EMAIL=<e-mail> #optional
- DHLEVEL=2048 #optional
- ONLY_SUBDOMAINS=false #optional
- EXTRA_DOMAINS=<extradomains> #optional
- STAGING=false #optional
volumes:
- </path/to/appdata/config>:/config
ports:
- 443:443
- 80:80 #optional
restart: unless-stopped
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment