add certbot container
This commit is contained in:
@@ -46,6 +46,8 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
|
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
|
||||||
- webApp:/usr/share/nginx/html
|
- webApp:/usr/share/nginx/html
|
||||||
|
- certbotConf:/etc/letsencrypt
|
||||||
|
- certbotChall:/var/www/certbot
|
||||||
depends_on:
|
depends_on:
|
||||||
- user-interface
|
- user-interface
|
||||||
|
|
||||||
@@ -57,26 +59,19 @@ services:
|
|||||||
- "83:83"
|
- "83:83"
|
||||||
volumes:
|
volumes:
|
||||||
- webApp:/app/build/web
|
- webApp:/app/build/web
|
||||||
# - ./certbot/www:/var/www/certbot
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- api
|
- api
|
||||||
|
|
||||||
# certbot:
|
certbot:
|
||||||
# image: certbot/certbot
|
image: certbot/certbot
|
||||||
# container_name: certbot
|
container_name: certbot
|
||||||
# volumes:
|
volumes:
|
||||||
# - ./certbot/conf:/etc/letsencrypt
|
- certbotConf:/etc/letsencrypt
|
||||||
# - ./certbot/www:/var/www/certbot
|
- certbotChall:/var/www/certbot
|
||||||
# depends_on:
|
#command: certonly --test-cert --webroot -w /var/www/certbot --force-renewal --email yasienmeth@gmail.com -d mzansi-innovation-hub.co.za -d www.mzansi-innovation-hub.co.za --agree-tos
|
||||||
# - user-interface
|
command: certonly --webroot -w /var/www/certbot --force-renewal --email yasienmeth@gmail.com -d mzansi-innovation-hub.co.za -d www.mzansi-innovation-hub.co.za --agree-tos
|
||||||
# #command: certonly --email yasienmeth@gmail.com -d mzansi-innovation-hub.co.za --agree-tos --manual --preferred-challenges dns
|
depends_on:
|
||||||
# command: certonly --webroot -w /var/www/certbot --force-renewal --email yasienmeth@gmail.com -d mzansi-innovation-hub.co.za --agree-tos
|
- nginx
|
||||||
# # command: >-
|
|
||||||
# # certonly --test-cert --reinstall --webroot --webroot-path=/var/www/certbot
|
|
||||||
# # --email yasienmeth@gmail.com --agree-tos --no-eff-email
|
|
||||||
# # -d mzansi-innovation-hub.co.za
|
|
||||||
# # depends_on:
|
|
||||||
# # - user-interface
|
|
||||||
|
|
||||||
minio:
|
minio:
|
||||||
container_name: MIH-Minio
|
container_name: MIH-Minio
|
||||||
|
|||||||
@@ -1,3 +1,38 @@
|
|||||||
|
# http {
|
||||||
|
# server_tokens off;
|
||||||
|
# charset utf-8;
|
||||||
|
|
||||||
|
# # always redirect to https
|
||||||
|
# server {
|
||||||
|
# listen 80 default_server;
|
||||||
|
|
||||||
|
# server_name _;
|
||||||
|
|
||||||
|
# return 301 https://$host$request_uri;
|
||||||
|
# }
|
||||||
|
|
||||||
|
# server {
|
||||||
|
# listen 443 ssl http2;
|
||||||
|
# # use the certificates
|
||||||
|
# # ssl_certificate /etc/letsencrypt/live/mzansi-innovation-hub.co.za/fullchain.pem;
|
||||||
|
# # ssl_certificate_key /etc/letsencrypt/live/mzansi-innovation-hub.co.za/privkey.pem;
|
||||||
|
# server_name mzansi-innovation-hub.co.za www.mzansi-innovation-hub.co.za;
|
||||||
|
# root /var/www/html;
|
||||||
|
# index index.php index.html index.htm;
|
||||||
|
|
||||||
|
|
||||||
|
# location / {
|
||||||
|
# root /usr/share/nginx/html;
|
||||||
|
# index index.html;
|
||||||
|
# try_files $uri $uri/ =404;
|
||||||
|
# }
|
||||||
|
|
||||||
|
# location ~ /.well-known/acme-challenge/ {
|
||||||
|
# root /var/www/certbot;
|
||||||
|
# }
|
||||||
|
# }
|
||||||
|
# }
|
||||||
|
|
||||||
events {
|
events {
|
||||||
worker_connections 1024;
|
worker_connections 1024;
|
||||||
}
|
}
|
||||||
@@ -23,23 +58,4 @@ http {
|
|||||||
|
|
||||||
# return 301 https://$host$request_uri;
|
# return 301 https://$host$request_uri;
|
||||||
}
|
}
|
||||||
|
|
||||||
# server {
|
|
||||||
# listen 443 ssl;
|
|
||||||
# http2 on;
|
|
||||||
# # use the certificates
|
|
||||||
# ssl_certificate /etc/letsencrypt/live/mzansi-innovation-hub.co.za/fullchain.pem;
|
|
||||||
# ssl_certificate_key /etc/letsencrypt/live/mzansi-innovation-hub.co.za/privkey.pem;
|
|
||||||
# server_name mzansi-innovation-hub.co.za;
|
|
||||||
# root /var/www/html;
|
|
||||||
# index index.php index.html index.htm;
|
|
||||||
|
|
||||||
# location / {
|
|
||||||
# root /usr/share/nginx/html;
|
|
||||||
# index index.html;
|
|
||||||
# try_files $uri $uri/ =404;
|
|
||||||
# }
|
|
||||||
|
|
||||||
# }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user