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