commit inicial

This commit is contained in:
Mauro Torrez
2019-04-28 00:34:43 -03:00
parent 6a6d5a0dc1
commit 66577c3c82
4 changed files with 130 additions and 0 deletions

13
files/Caddyfile Normal file
View File

@@ -0,0 +1,13 @@
0.0.0.0
root /srv/app/
gzip
fastcgi /kanboard 127.0.0.1:9000 php
rewrite {
regexp .*
ext /kanboard
to /index.php?{query}
}
log stdout
errors stdout
on startup php-fpm --nodaemonize

24
files/Dockerfile Normal file
View File

@@ -0,0 +1,24 @@
FROM php:7.1-fpm
LABEL maintainer="Mauro Torrez <mauro@mau.ro>"
VOLUME /srv/app/data
VOLUME /srv/app/plugins
# Install application dependencies
RUN curl --silent --show-error --fail --location \
--header "Accept: application/tar+gzip, application/x-gzip, application/octet-stream" -o - \
"https://caddyserver.com/download/linux/amd64?plugins=http.expires,http.realip&license=personal" \
| tar --no-same-owner -C /usr/bin/ -xz caddy \
&& chmod 0755 /usr/bin/caddy \
&& /usr/bin/caddy -version \
&& docker-php-ext-install phar curl json zlib xml dom ctype opcache zip iconv \
pdo pdo_mysql pdo_sqlite pdo_pgsql mbstring session bcmath \
gd mcrypt openssl sockets posix ldap simplexml
ADD src /srv/app
ADD docker/Caddyfile /etc/Caddyfile
WORKDIR /srv/app/
RUN chown -R www-data:www-data /srv/app
CMD ["/usr/bin/caddy", "--conf", "/etc/Caddyfile", "--log", "stdout"]