nginx to point to ui container

This commit is contained in:
2024-07-17 10:32:23 +02:00
parent 7934a7a291
commit 910af39d6d
2 changed files with 12 additions and 18 deletions

View File

@@ -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

View File

@@ -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;