Skip to content

dianudi/lighttpd-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lighttpd Docker Reverse Proxy

Make Lighttpd a reverse proxy for connecting to each web server on many Docker containers. SSL uses a self-signed certificate and is auto-generated at once. Main branch is for Reverse proxy, for other variant see branch menu.

Build

  1. Clone or download this repository.
  2. Configure your web service in the etc/service-enabled directory as you want.
  3. Build with docker compose
docker compose up -d --build
  1. Check the container .
docker compose ps

Self-Signed Certificate Configuration

You can customize the self-signed certificate by passing build arguments during the Docker image build process.

Example of building with custom certificate details:

docker build \
  --build-arg COUNTRY="US" \
  --build-arg STATE="California" \
  --build-arg LOCALITY="San Francisco" \
  --build-arg ORGANIZATION="MyCompany" \
  --build-arg COMMON_NAME="example.com" \
  -t lighttpd-docker .

Or, if using docker compose, you can specify build arguments in your docker-compose.yml file:

version: "3.8"
services:
  lighttpd:
    build:
      context: .
      args:
        COUNTRY: "US"
        STATE: "California"
        LOCALITY: "San Francisco"
        ORGANIZATION: "MyCompany"
        COMMON_NAME: "example.com"
    ports:
      - "80:80"
      - "443:443"

Remember to rebuild your Docker image after changing these arguments.

Contribution

You are free to contribute to this repository. If you find an issue, you can open an issue at this repository.

About

Lighttpd on docker. Fast, light and minimal web server.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published