Updated Run acme.sh in docker (markdown)

master
GC Chen 2024-07-11 10:10:19 +08:00
parent 88291404cd
commit 94c7ebab86
1 changed files with 16 additions and 1 deletions

@ -69,8 +69,23 @@ docker run --rm -itd \
--name=acme.sh \ --name=acme.sh \
neilpang/acme.sh daemon neilpang/acme.sh daemon
``` ```
Or run acme.sh by using `Docker Compose`:
```yaml ```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. ### 2. Then you can just use `docker exec` to execute any acme.sh commands.