This directory contains all necessary files to set up an NGINX server using Docker for the Budget Management App. It includes a Dockerfile
to build an NGINX image, a docker-compose.yml
file to orchestrate the Docker container setup, and a configuration file (nginx.conf
) to define NGINX’s server behavior.
docker-compose
.Build the Docker Image (optional, if docker-compose
is configured to build automatically):
docker build -t custom-nginx .
Run the NGINX Server using Docker Compose:
docker-compose up -d
This command will start the NGINX server in detached mode. The docker-compose.yml
file will handle the setup, including any volume mappings, port configurations, and network settings.
Access the NGINX Server:
http://localhost:80
(or the port specified in nginx.conf
).nginx.conf
if you need custom settings for server name, proxying, or different ports.docker-compose down
This command will stop and remove the NGINX container(s).
nginx.conf: Modify this file to customize NGINX behavior. Some common changes include:
start_nginx.sh: This script can be used to start the NGINX server if it’s not started by Docker Compose automatically or if you’re running NGINX on a host machine.
View Logs: To see logs for the NGINX container, use:
docker-compose logs -f
Rebuild the Image: If you change the Dockerfile
, rebuild the image with:
docker-compose up -d --build
docker-compose.yml
or nginx.conf
do not conflict with other services on your host machine.nginx.conf
or other assets are correctly specified in docker-compose.yml
.For more information about the project, refer to the main README.md file. Thanks for checking out this NGINX Docker setup!