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.
- Clone or download this repository.
- Configure your web service in the etc/service-enabled directory as you want.
- Build with docker compose
docker compose up -d --build
- Check the container .
docker compose ps
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.
You are free to contribute to this repository. If you find an issue, you can open an issue at this repository.