commit inicial
This commit is contained in:
13
files/Caddyfile
Normal file
13
files/Caddyfile
Normal 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
24
files/Dockerfile
Normal 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"]
|
||||
Reference in New Issue
Block a user