Skip to content

Instantly share code, notes, and snippets.

@Dreamacro
Last active May 14, 2023 17:37
Show Gist options
  • Save Dreamacro/482a6b89bd4754332e563e37b2446110 to your computer and use it in GitHub Desktop.
Save Dreamacro/482a6b89bd4754332e563e37b2446110 to your computer and use it in GitHub Desktop.
acme.sh docker-compose

How to use

$ docker-compose -f acmesh.yaml up -d
# Run once
$ docker exec -it acme --issue --dns dns_cf \
    -d \*.example.com \
    --key-file /certs/privkey.pem \
    --fullchain-file /certs/fullchain.pem \
    --standalone
version: '2'
services:
acme:
image: neilpang/acme.sh:latest
volumes:
- ./certs:/certs
environment:
# CloudFlare
- CF_Key=
- CF_Email=
# DNSPod
- DP_Id=
- DP_Key=
# CloudXNS
- CX_Key=
- CX_Secret=
# From: https://github.com/Neilpang/acme.sh/blob/master/dnsapi/README.md
command: daemon
container_name: acme
@williamdes
Copy link

Here is my improved version to not have to run a script and forget how it works when changing servers ;)
https://gist.github.com/williamdes/a8f15c7acaa71cd4437c4a903784f0e1

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