Skip to content

Minarox/Custom-Nginx-Server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple custom Nginx server

This repository provides a simple, up to date, Nginx Docker image configured with a custom default.conf.

🚀 Quick Start

  • 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

⚙️ Build custom image

  • Edit default.conf as needed.
  • Build the Docker image:
docker build -t minarox/custom-nginx-server .
  • Run the container as shown above.

📚 Files

  • Dockerfile: Builds the Nginx image and copies the config.
  • default.conf: Nginx configuration file.

💼 License

MIT © Mathis Serrieres Maniecki

About

Simple Nginx docker image with custom config

Topics

Resources

License

Stars

Watchers

Forks