spujadas / lighttpd-docker

Docker image for lighttpd, a secure, fast, compliant, and flexible web server
MIT License
59 stars 65 forks source link

Allow to embed configuration #2

Closed danielfdickinson closed 7 years ago

danielfdickinson commented 7 years ago

Embed configuration from etc/lighttpd in this repo into the image. This is useful for private images where one wishes to include the configuration in the image instead of an external volume.

spujadas commented 7 years ago

The default configuration files are already in the image.

$ docker run --rm -t -v /var/sandbox/lighttpd-docker/www:/var/www/localhost/htdocs -p 80:80 sebp/lighttpd
$ docker exec -it sleepy_franklin bash
/ # ls /etc/lighttpd/
lighttpd.conf         mod_cgi.conf          mod_fastcgi_fpm.conf
mime-types.conf       mod_fastcgi.conf

Or am I missing something?

danielfdickinson commented 7 years ago

The objective is automatically copy the repos copy of the config files so that that someone wants to build a Docker image based on this repo, but with their own config, they don't have to go hunting for files and adding the copy command.

spujadas commented 7 years ago

OK got it thanks.