forked from yaso_meth/mih-project
nginx to point to ui container
This commit is contained in:
@@ -45,7 +45,6 @@ services:
|
||||
- 443:443
|
||||
volumes:
|
||||
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
|
||||
- webApp:/usr/share/nginx/html
|
||||
- certbotConf:/etc/letsencrypt
|
||||
- certbotChall:/var/www/certbot
|
||||
depends_on:
|
||||
@@ -57,21 +56,19 @@ services:
|
||||
context: ./Frontend/patient_manager
|
||||
ports:
|
||||
- "83:83"
|
||||
volumes:
|
||||
- webApp:/app/build/web
|
||||
depends_on:
|
||||
- api
|
||||
|
||||
certbot:
|
||||
image: certbot/certbot
|
||||
container_name: certbot
|
||||
volumes:
|
||||
- certbotConf:/etc/letsencrypt
|
||||
- certbotChall:/var/www/certbot
|
||||
#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
|
||||
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
|
||||
depends_on:
|
||||
- nginx
|
||||
# certbot:
|
||||
# image: certbot/certbot
|
||||
# container_name: certbot
|
||||
# volumes:
|
||||
# - certbotConf:/etc/letsencrypt
|
||||
# - certbotChall:/var/www/certbot
|
||||
# #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
|
||||
# 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
|
||||
# depends_on:
|
||||
# - nginx
|
||||
|
||||
minio:
|
||||
container_name: MIH-Minio
|
||||
@@ -86,7 +83,6 @@ services:
|
||||
- MINIO_ROOT_PASSWORD=C@rtoon1995
|
||||
|
||||
volumes:
|
||||
webApp:
|
||||
certbotConf:
|
||||
certbotChall:
|
||||
# driver: local
|
||||
|
||||
@@ -45,12 +45,10 @@ http {
|
||||
server {
|
||||
listen 80 default_server;
|
||||
|
||||
server_name mzansi-innovation-hub.co.za;
|
||||
server_name mzansi-innovation-hub.co.za www.mzansi-innovation-hub.co.za;
|
||||
|
||||
location / {
|
||||
root /usr/share/nginx/html;
|
||||
index index.html;
|
||||
try_files $uri $uri/ =404;
|
||||
proxy_pass http://MIH-UX:83/;
|
||||
}
|
||||
location ~ /.well-known/acme-challenge/ {
|
||||
root /var/www/certbot;
|
||||
|
||||
Reference in New Issue
Block a user