samagra-comms / docker-deploy

1 stars 15 forks source link

Nginx Based Deployment for UCI Frontend and UCI Web Channel #7

Open ChakshuGautam opened 2 years ago

ChakshuGautam commented 2 years ago

NginX Conf

server {
    listen 80;

    root /usr/site;
    index index.html;

    server_name sandbox.dst.samagra.io; //To be dynamically generated for gitpod or from the env

    location / {
        try_files $uri /index.html;
    }
}

Nginx Docker

uci-pwa:
  image: nginx
  volumes:
   - ./uci-pwa.conf:/etc/nginx/sites-enabled/uci-pwa.conf
   - ./pwa/build:/usr/site

  ports:
   - "9099:80"

admin:
  image: nginx
  volumes:
   - ./uci-frontend.conf:/etc/nginx/sites-enabled/uci-frontend.conf
   - ./admin/build:/usr/site

  ports:
   - "9098:80"
tushar5526 commented 1 year ago

uci-admin is done.