{"id":13894506,"url":"https://github.com/spujadas/lighttpd-docker","last_synced_at":"2025-03-21T09:32:22.781Z","repository":{"id":34962917,"uuid":"39038550","full_name":"spujadas/lighttpd-docker","owner":"spujadas","description":"Docker image for lighttpd, a secure, fast, compliant, and flexible web server","archived":false,"fork":false,"pushed_at":"2022-07-17T18:54:16.000Z","size":18,"stargazers_count":60,"open_issues_count":2,"forks_count":66,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-18T00:01:36.810Z","etag":null,"topics":["docker-image","lighttpd","lighttpd-docker"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/spujadas.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-07-13T21:32:56.000Z","updated_at":"2025-01-01T01:45:02.000Z","dependencies_parsed_at":"2022-09-01T00:31:44.604Z","dependency_job_id":null,"html_url":"https://github.com/spujadas/lighttpd-docker","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spujadas%2Flighttpd-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spujadas%2Flighttpd-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spujadas%2Flighttpd-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spujadas%2Flighttpd-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spujadas","download_url":"https://codeload.github.com/spujadas/lighttpd-docker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244772659,"owners_count":20508035,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker-image","lighttpd","lighttpd-docker"],"created_at":"2024-08-06T18:01:36.324Z","updated_at":"2025-03-21T09:32:22.442Z","avatar_url":"https://github.com/spujadas.png","language":"Dockerfile","funding_links":[],"categories":["Dockerfile"],"sub_categories":[],"readme":"# lighttpd Docker image\n\nSecurity, speed, compliance, and flexibility -- all of these describe [lighttpd](http://www.lighttpd.net/)\n\n### Contents\n\n - Usage\n\t - Start a container with Docker\n\t - Start a container with Docker Compose\n - Build\n\t - Build with Docker\n\t - Build with Docker Compose\n\t - Build with Docker Buildx\n - About\n\n## Usage\n\nIn the instructions that follow, replace:\n\n- `\u003chome-directory\u003e` with the path of the local directory you want to serve content from.\n\n- `\u003cconfig-directory\u003e` with the path of the local directory containing lighttpd configuration files that you want to use instead of the default ones.\n\n\tTo make it easier to create custom configuration files, the default configuration files are included in the `etc/lighttpd` directory of the Git repository.\n \n-  `\u003chttp-port\u003e` with the HTTP port you want the HTTP server to serve content to (e.g. `80` for the standard HTTP port if not already in use on the host).\n\n### Start a container with Docker\n\nWith the default configuration files:\n\n\t$ sudo docker run --rm -t -v \u003chome-directory\u003e:/var/www/localhost/htdocs -p \u003chttp-port\u003e:80 sebp/lighttpd\n\nWith custom configuration files:\n\n\t$ sudo docker run --rm -t -v \u003chome-directory\u003e:/var/www/localhost/htdocs -v \u003cconfig-directory\u003e:/etc/lighttpd -p \u003chttp-port\u003e:80 sebp/lighttpd\n\n### Start a container with Docker Compose\n\nAdd the following lines in an existing or a new `docker-compose.yml` file:\n\n\tlighttpd:\n\t  image: sebp/lighttpd\n\t  volumes:\n\t    - \u003chome-directory\u003e:/var/www/localhost/htdocs\n\t    - \u003cconfig-directory\u003e:/etc/lighttpd\n\t  ports:\n\t    - \"\u003chttp-port\u003e:80\"\n\t  tty: true\n\n**Note** – The `- \u003cconfig-directory\u003e:…` line is optional, it can be used to override the default configuration files with your own.\n\nThen start a lighttpd container with:\n\n\t$ sudo docker-compose up lighttpd\n\n\n## Build\n\nFirst clone or download the [spujadas/lighttpd-docker](https://github.com/spujadas/lighttpd-docker) GitHub repository, open a shell in the newly created `lighttpd-docker` directory, then build the image and run a container using Docker, Docker Compose, or Docker Buildx, as explained below.\n\n### Build with Docker\n\nThis command will build the image:\n\n\t$ sudo docker build .\n\n### Build with Docker Compose\n\nBuild the image with this command:\n\n\t$ sudo docker-compose build\n\n### Build with Docker Buildx\n\nBuild the image with this command:\n\n\t$ sudo buildx build .\n\n## About\n\nWritten by [Sébastien Pujadas](http://pujadas.net), released under the [MIT license](http://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspujadas%2Flighttpd-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspujadas%2Flighttpd-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspujadas%2Flighttpd-docker/lists"}