Skip to content

Latest commit

Β 

History

History
45 lines (31 loc) Β· 928 Bytes

File metadata and controls

45 lines (31 loc) Β· 928 Bytes

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