$ 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
Last active
May 14, 2023 17:37
-
-
Save Dreamacro/482a6b89bd4754332e563e37b2446110 to your computer and use it in GitHub Desktop.
acme.sh docker-compose
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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