From 92da0a00d5a1df70378a0d4e2166f03fd45ac3bb Mon Sep 17 00:00:00 2001 From: Brock Freeman Date: Wed, 24 Aug 2016 21:35:31 -0700 Subject: [PATCH] Added Caddyfile, updates to readme. --- Caddyfile | 3 +++ Dockerfile | 3 +++ readme.md | 8 +++++--- 3 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 Caddyfile diff --git a/Caddyfile b/Caddyfile new file mode 100644 index 0000000..7fa1bf0 --- /dev/null +++ b/Caddyfile @@ -0,0 +1,3 @@ +localhost:2015 +fastcgi / 127.0.0.1:9000 php # php variant only +startup php-fpm # php variant only \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index ac082fb..f95f31f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,8 @@ # using https://hub.docker.com/r/abiosoft/caddy/ FROM abiosoft/caddy:php +# load Caddyfile +ADD Caddyfile /etc/Caddyfile + # load in phpLiteAdmin code COPY . /srv \ No newline at end of file diff --git a/readme.md b/readme.md index 14fdb7a..203f777 100644 --- a/readme.md +++ b/readme.md @@ -22,9 +22,11 @@ Additional Configuration Options can be found in the [phpLiteAdmin README](phpLi Replace the `/path/to/db/directory` below with the actual path where your db is. `$ docker run -it --rm -p 2015:2015 -v /path/to/db/directory:/db --name websql acttaiwan/phpliteadmin` -`$ docker run -it --rm -p 2015:2015 -v $(pwd):/db --name websql acttaiwan/phpliteadmin` - Access the admin page at http://localhost:2015/phpliteadmin.php -## Let's Encrypt Auto SSL +## Advanced Configuration +### Caddyfile +Port number, IP and other items can be set in the Caddyfile. See instructions on the [Caddy website](https://caddyserver.com/docs/caddyfile). + +### Let's Encrypt Auto SSL See the Docker hub [abiosoft/caddy](https://hub.docker.com/r/abiosoft/caddy/) page. \ No newline at end of file