This repository provides a simple, up to date, Nginx Docker image configured with a custom default.conf.
- With Docker:
docker run --name custom-nginx-server -p 80:80 -v $(pwd):/usr/share/nginx/html:ro -d minarox/custom-nginx-server- With Docker Compose:
version: '3.8'
services:
custom-nginx-server:
container_name: custom-nginx-server
image: minarox/custom-nginx-server
ports:
- "80:80"
volume:
- ./:/usr/share/nginx/html:ro- Edit
default.confas needed. - Build the Docker image:
docker build -t minarox/custom-nginx-server .- Run the container as shown above.
Dockerfile: Builds the Nginx image and copies the config.default.conf: Nginx configuration file.