diff --git a/Run-acme.sh-in-docker.md b/Run-acme.sh-in-docker.md index bc585da..ca14822 100644 --- a/Run-acme.sh-in-docker.md +++ b/Run-acme.sh-in-docker.md @@ -69,8 +69,23 @@ docker run --rm -itd \ --name=acme.sh \ neilpang/acme.sh daemon ``` - +Or run acme.sh by using `Docker Compose`: ```yaml +services: + acme-sh: + image: neilpang/acme.sh + container_name: acme.sh + volumes: + - ./out:/acme.sh + network_mode: host + command: daemon + stdin_open: true + tty: true + restart: no +``` + +```sh +docker compose up -d ``` ### 2. Then you can just use `docker exec` to execute any acme.sh commands.