Web layer of Vprofile Application Stack.
111
This Docker image sets up an Nginx server configured to serve as a reverse proxy for the VProfile application. The default Nginx configuration is replaced with a custom configuration provided in the nginvproapp.conf file. This image ensures a streamlined and efficient reverse proxy setup for the VProfile project or any other web application.
nginxnginvproapp.confTo pull the Docker image from DockerHub:
docker pull your-dockerhub-username/nginx-vprofile-proxy
To run the Docker container:
docker run -d -p 80:80 your-dockerhub-username/nginx-vprofile-proxy
This command will start a container with Nginx serving as a reverse proxy, accessible at http://localhost.
For integrating this Nginx reverse proxy with other services, you can use Docker Compose. Below is an example docker-compose.yml:
version: '3'
services:
vproweb:
image: ardhendushekhar/vprofileweb:latest
ports:
- "80:80"
depends_on:
- vprofile
vproapp:
image: ardhendushekhar/vprofileapp:latest
ports:
- "8080:8080"
Run with:
docker-compose up -d
To use your own custom Nginx configuration, you can create a new configuration file and build the Docker image locally:
Create a file named nginvproapp.conf with your custom Nginx configuration.
Create a Dockerfile:
FROM nginx
RUN rm -rf /etc/nginx/conf.d/default.conf
COPY nginvproapp.conf /etc/nginx/conf.d/vproapp.conf
EXPOSE 80
Build the Docker image:
docker build -t ardhendushekhar/vprofileweb:latest .
Run the Docker container:
docker run -d -p 80:80 ardhendushekhar/vprofileweb:latest
Below is an example of what nginvproapp.conf might look like for a reverse proxy setup:
upstream vproapp {
server vproapp:8080;
}
server {
listen 80;
location / {
proxy_pass http://vproapp;
}
}
This configuration directs traffic from Nginx to a backend service running on http://vprofile:8080.
If you wish to contribute to this project, please follow these steps:
git checkout -b feature/YourFeature).git commit -am 'Add some feature').git push origin feature/YourFeature).This Docker image simplifies the deployment of an Nginx reverse proxy, providing a quick and reliable setup for forwarding traffic to your web application. Enjoy the benefits of a robust and efficient proxy server with ease!
Content type
Image
Digest
sha256:2a379a821…
Size
67.2 MB
Last updated
almost 3 years ago
docker pull ardhendushekhar/vprofileweb