Skip to content

Instantly share code, notes, and snippets.

@romfrolov
Last active June 9, 2019 07:14
Show Gist options
  • Save romfrolov/dda160d0c32184056235102f6621411c to your computer and use it in GitHub Desktop.
Save romfrolov/dda160d0c32184056235102f6621411c to your computer and use it in GitHub Desktop.
Minimalistic Let's Encrypt docker-compose configuration using linuxserver/letsencrypt image.
version: '3'
services:
letsencrypt:
image: linuxserver/letsencrypt
container_name: letsencrypt
restart: unless-stopped
network_mode: host
volumes:
- ./config/letsencrypt:/config
env_file: '.env'
@romfrolov
Copy link
Author

romfrolov commented May 28, 2019

# .env

[email protected]
URL=yourdomain.url
SUBDOMAINS=www,api
VALIDATION=http
TZ=Europe/London
PUID=1000 # run as a non-root user
PGID=1000 # run as a non-root user
STAGING=false # optional

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment