diff options
| author | crupest <crupest@outlook.com> | 2022-11-22 14:11:37 +0800 | 
|---|---|---|
| committer | crupest <crupest@outlook.com> | 2022-11-22 14:11:37 +0800 | 
| commit | 813aa19d72bc98842cf86b15d95b677b36098b90 (patch) | |
| tree | 7b3606eed1c7b6831de2c863c0b7d04e23ed589f /template/docker-compose.yaml.template | |
| parent | 2359f2603e7d3a18bf183f5b248a8e4d915ba36a (diff) | |
| download | crupest-813aa19d72bc98842cf86b15d95b677b36098b90.tar.gz crupest-813aa19d72bc98842cf86b15d95b677b36098b90.tar.bz2 crupest-813aa19d72bc98842cf86b15d95b677b36098b90.zip  | |
Add auto-certbot.
Diffstat (limited to 'template/docker-compose.yaml.template')
| -rw-r--r-- | template/docker-compose.yaml.template | 17 | 
1 files changed, 17 insertions, 0 deletions
diff --git a/template/docker-compose.yaml.template b/template/docker-compose.yaml.template index acabf5a..6da2c3c 100644 --- a/template/docker-compose.yaml.template +++ b/template/docker-compose.yaml.template @@ -75,6 +75,23 @@ services:        - external        - internal +  auto-certbot: +    image: crupest/auto-certbot:latest +    build: +      context: ./docker/auto-certbot +      dockerfile: Dockerfile +      pull: true +      args: +        - CRUPEST_DOMAIN=$CRUPEST_DOMAIN +    container_name: auto-certbot +    volumes: +      - "./data/certbot/certs:/etc/letsencrypt" +      - "./data/certbot/data:/var/lib/letsencrypt" +      - "./data/certbot/webroot:/var/www/certbot" +    restart: on-failure:3 +    networks: +      - internal +    mailserver:      image: docker.io/mailserver/docker-mailserver:latest      pull_policy: always  | 
