diff options
author | crupest <crupest@outlook.com> | 2022-11-19 13:39:41 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-11-19 13:39:41 +0800 |
commit | 2dc194f86144ebd0681c4858e5ebeb2ec205e7a1 (patch) | |
tree | 9bbf050e71afea2705383f9b6e4aafa5cbef901f /template | |
parent | 5f2a7500cfd0f42c9b88f4779c6ef9755cc741ef (diff) | |
download | crupest-2dc194f86144ebd0681c4858e5ebeb2ec205e7a1.tar.gz crupest-2dc194f86144ebd0681c4858e5ebeb2ec205e7a1.tar.bz2 crupest-2dc194f86144ebd0681c4858e5ebeb2ec205e7a1.zip |
Fix nginx docker and certbot command.
Diffstat (limited to 'template')
-rw-r--r-- | template/docker-compose.yaml.template | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/template/docker-compose.yaml.template b/template/docker-compose.yaml.template index 35027c9..d8e1b85 100644 --- a/template/docker-compose.yaml.template +++ b/template/docker-compose.yaml.template @@ -54,12 +54,15 @@ services: nginx: image: nginx:latest container_name: nginx + restart: on-failure:3 ports: - "80:80" - "443:443" volumes: - "./nginx-config:/etc/nginx/conf.d:ro" + - "./site:/srv/www:ro" - "./data/certbot/certs:/etc/letsencrypt:ro" + - "./data/certbot/webroot:/srv/acme:ro" networks: - external - internal |