mirror of
https://github.com/hoellen/dockerfiles.git
synced 2025-04-20 04:19:18 +00:00
add FreshRSS image
This commit is contained in:
parent
74934330e1
commit
ddc393a36a
29
freshrss/Dockerfile
Normal file
29
freshrss/Dockerfile
Normal file
@ -0,0 +1,29 @@
|
||||
FROM wonderfall/nginx-php:7.1
|
||||
|
||||
ARG FRESHRSS_VER=1.7.0
|
||||
|
||||
ENV UID=991 GID=991 \
|
||||
UPLOAD_MAX_SIZE=10M \
|
||||
MEMORY_LIMIT=128M
|
||||
|
||||
RUN apk -U add --no-cache \
|
||||
tar \
|
||||
libressl \
|
||||
ca-certificates \
|
||||
&& mkdir freshrss && cd freshrss \
|
||||
&& wget -qO- https://github.com/FreshRSS/FreshRSS/archive/${FRESHRSS_VER}.tar.gz | tar xz --strip 1 \
|
||||
&& mv data data_tmp
|
||||
|
||||
COPY rootfs /
|
||||
|
||||
RUN chmod +x /usr/local/bin/run.sh /etc/s6.d/*/* /etc/s6.d/.s6-svscan/*
|
||||
|
||||
VOLUME /freshrss/data /php/session
|
||||
|
||||
EXPOSE 8888
|
||||
|
||||
LABEL maintainer="Wonderfall <wonderfall@targaryen.house>" \
|
||||
description="A free, self-hostable aggregator" \
|
||||
version="FreshRSS ${FRESHRSS_VER}"
|
||||
|
||||
CMD ["run.sh"]
|
23
freshrss/README.md
Normal file
23
freshrss/README.md
Normal file
@ -0,0 +1,23 @@
|
||||
## wonderfall/privatebin
|
||||
|
||||
Paste securely.
|
||||
|
||||
#### Features
|
||||
- Based on Alpine Linux (wonderfall/nginx-php image)
|
||||
- Uses [PrivateBin](https://github.com/PrivateBin/PrivateBin), originally a fork of zerobin by elrido.
|
||||
- Bundled with nginx and PHP7.1.
|
||||
|
||||
#### Build-time variables
|
||||
- **PRIVATEBIN_VER** : version of PrivateBin
|
||||
|
||||
#### Environment variables
|
||||
- **UID** : zerobin user id
|
||||
- **GID** : zerobin group id
|
||||
- **MEMORY_LIMIT** : php memory limit *(default : 128M)*
|
||||
- **UPLOAD_MAX_SIZE** : maximum upload size *(default : 10M)*
|
||||
|
||||
#### Volumes
|
||||
- **/privatebin/data**
|
||||
|
||||
#### Ports
|
||||
- **8888** [(reverse proxy!)](https://github.com/hardware/mailserver/wiki/Reverse-proxy-configuration)
|
33
freshrss/rootfs/nginx/sites-enabled/nginx.conf
Normal file
33
freshrss/rootfs/nginx/sites-enabled/nginx.conf
Normal file
@ -0,0 +1,33 @@
|
||||
server {
|
||||
listen 8888;
|
||||
root /freshrss;
|
||||
index index.php index.html;
|
||||
|
||||
location ~* \.(jpg|jpeg|gif|css|png|js|map|woff|woff2|ttf|svg|eot)$ {
|
||||
expires 30d;
|
||||
access_log off;
|
||||
}
|
||||
|
||||
location ~ ^/(data|cfg|tmp) {
|
||||
deny all;
|
||||
}
|
||||
|
||||
location ~* /(.*)\.(?:markdown|md|twig|yaml|yml|ht|htaccess|ini)$ {
|
||||
deny all;
|
||||
}
|
||||
|
||||
location ~ /\. {
|
||||
deny all;
|
||||
}
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.php;
|
||||
}
|
||||
|
||||
location ~ \.php$ {
|
||||
fastcgi_index index.php;
|
||||
fastcgi_pass unix:/php/run/php-fpm.sock;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
include /nginx/conf/fastcgi_params;
|
||||
}
|
||||
}
|
7
freshrss/rootfs/usr/local/bin/run.sh
Normal file
7
freshrss/rootfs/usr/local/bin/run.sh
Normal file
@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
sed -i -e "s/<UPLOAD_MAX_SIZE>/$UPLOAD_MAX_SIZE/g" /nginx/conf/nginx.conf /php/etc/php-fpm.conf \
|
||||
-e "s/<MEMORY_LIMIT>/$MEMORY_LIMIT/g" /php/etc/php-fpm.conf
|
||||
|
||||
[ ! "$(ls -A /freshrss/data)" ] && cp -R /freshrss/data_tmp/* /freshrss/data/
|
||||
chown -R $UID:$GID /freshrss /nginx /php /tmp /etc/s6.d
|
||||
exec su-exec $UID:$GID /bin/s6-svscan /etc/s6.d
|
Loading…
x
Reference in New Issue
Block a user