Exactly like @BamButz said. I also use Traefik with docker-compose.yml.
What I did in steps:
- Log on to your server and
cd
in the letsencrypt directory with theacme.json
- Rename file (just for backup):
mv acme.json revoked_acme.json
- Create new empty file:
touch acme.json
- Shut down all containers:
docker-compose down
- Start all containers (detached):
docker-compose up -d
- Now open your
acme.json
and you will see a new certificate with a new key.