mirror of
https://github.com/HaschekSolutions/pictshare.git
synced 2025-11-15 20:48:00 +00:00
update readme file with docker compose how-to
This commit is contained in:
86
README.md
86
README.md
@@ -14,6 +14,7 @@ Table of contents
|
|||||||
* [Installation](#installation)
|
* [Installation](#installation)
|
||||||
* [Docker](#docker)
|
* [Docker](#docker)
|
||||||
* [On nginx](#on-nginx)
|
* [On nginx](#on-nginx)
|
||||||
|
* [Docker Compose With Prebuild Image by hascheksolutions](#docker-compose-with-prebuild-image-by-hascheksolutions)
|
||||||
* [Why would I want to host my own images?](#why-would-i-want-to-host-my-own-images)
|
* [Why would I want to host my own images?](#why-would-i-want-to-host-my-own-images)
|
||||||
* [Features](#features)
|
* [Features](#features)
|
||||||
* [Smart query system](#smart-query-system)
|
* [Smart query system](#smart-query-system)
|
||||||
@@ -46,6 +47,29 @@ docker run -d -p 80:80 -e "TITLE=My own PictShare" hascheksolutions/pictshare
|
|||||||
|
|
||||||
[](https://www.pictshare.net/8a1dec0973.mp4)
|
[](https://www.pictshare.net/8a1dec0973.mp4)
|
||||||
|
|
||||||
|
### Docker Compose With Prebuild Image by hascheksolutions
|
||||||
|
|
||||||
|
Run container by docker-compose:
|
||||||
|
- First, install docker compose:
|
||||||
|
[Docker official docs](https://docs.docker.com/compose/install/)
|
||||||
|
- Pull docker-compose file:
|
||||||
|
```bash
|
||||||
|
wget https://raw.githubusercontent.com/chrisiaut/pictshare/master/docker-compose.yml
|
||||||
|
```
|
||||||
|
- Edit docker-compose file:
|
||||||
|
```bash
|
||||||
|
vi docker-compose.yml
|
||||||
|
```
|
||||||
|
- Run container by docker-compose:
|
||||||
|
```bash
|
||||||
|
docker-compose up
|
||||||
|
```
|
||||||
|
|
||||||
|
By using this compose file, you should know that:
|
||||||
|
- Will make a directory "volumes" in the same directory where compose file is.
|
||||||
|
- Change `AUTOUPDATE` to false from true by defalt.
|
||||||
|
- And...it is highly recommended to build your own image.
|
||||||
|
|
||||||
### Without Docker
|
### Without Docker
|
||||||
|
|
||||||
- Make sure you have PHP5 GD libraries installed: ```apt-get install php5-gd```
|
- Make sure you have PHP5 GD libraries installed: ```apt-get install php5-gd```
|
||||||
@@ -105,8 +129,8 @@ If there is some option that's not recognized by PictShare it's simply ignored,
|
|||||||
| Option | Parameter | Example URL | Result |
|
| Option | Parameter | Example URL | Result |
|
||||||
| ------------- | ------------------- | ---------------------- | ----------- |
|
| ------------- | ------------------- | ---------------------- | ----------- |
|
||||||
**Resizing** | | | |
|
**Resizing** | | | |
|
||||||
<width>**x**<height> | -none- | https://pictshare.net/20x20/b260e36b60.jpg |  |
|
<width>**x**<height> | -none- | https://pictshare.net/20x20/b260e36b60.jpg |  |
|
||||||
forcesize | -none- | https://pictshare.net/100x400/forcesize/b260e36b60.jpg |  |
|
forcesize | -none- | https://pictshare.net/100x400/forcesize/b260e36b60.jpg |  |
|
||||||
**Albums** | | | |
|
**Albums** | | | |
|
||||||
just add multiple image hashes | -none- | https://www.pictshare.net/b260e36b60.jpg/32c9cf77c5.jpg/163484b6b1.jpg | Takes the **images** you put in the URL and makes an album out of them. All filters are supported!
|
just add multiple image hashes | -none- | https://www.pictshare.net/b260e36b60.jpg/32c9cf77c5.jpg/163484b6b1.jpg | Takes the **images** you put in the URL and makes an album out of them. All filters are supported!
|
||||||
embed | -none- | https://www.pictshare.net/b260e36b60.jpg/32c9cf77c5.jpg/163484b6b1.jpg/embed | Renders the album without CSS and with transparent background so you can embed them easily
|
embed | -none- | https://www.pictshare.net/b260e36b60.jpg/32c9cf77c5.jpg/163484b6b1.jpg/embed | Renders the album without CSS and with transparent background so you can embed them easily
|
||||||
@@ -122,27 +146,27 @@ preview | -none- | https://www.pictshare.net/mp4/preview/1026
|
|||||||
raw | -none- | https://www.pictshare.net/raw/65714d22f0.mp4 | Renders the mp4 video directly so you can link it
|
raw | -none- | https://www.pictshare.net/raw/65714d22f0.mp4 | Renders the mp4 video directly so you can link it
|
||||||
preview | -none- | https://www.pictshare.net/preview/65714d22f0.mp4 | Renders the first frame of the MP4 as an JPEG image
|
preview | -none- | https://www.pictshare.net/preview/65714d22f0.mp4 | Renders the first frame of the MP4 as an JPEG image
|
||||||
**Rotating** | | |
|
**Rotating** | | |
|
||||||
left | -none- | https://pictshare.net/left/b260e36b60.jpg | 
|
left | -none- | https://pictshare.net/left/b260e36b60.jpg | 
|
||||||
right | -none- | https://pictshare.net/right/b260e36b60.jpg | 
|
right | -none- | https://pictshare.net/right/b260e36b60.jpg | 
|
||||||
upside | -none- | https://pictshare.net/upside/b260e36b60.jpg | 
|
upside | -none- | https://pictshare.net/upside/b260e36b60.jpg | 
|
||||||
**Filters** | | |
|
**Filters** | | |
|
||||||
negative | -none- | https://pictshare.net/negative/b260e36b60.jpg | 
|
negative | -none- | https://pictshare.net/negative/b260e36b60.jpg | 
|
||||||
grayscale | -none- | https://pictshare.net/grayscale/b260e36b60.jpg | 
|
grayscale | -none- | https://pictshare.net/grayscale/b260e36b60.jpg | 
|
||||||
brightness | -255 to 255 | https://pictshare.net/brightness_100/b260e36b60.jpg | 
|
brightness | -255 to 255 | https://pictshare.net/brightness_100/b260e36b60.jpg | 
|
||||||
edgedetect | -none- | https://pictshare.net/edgedetect/b260e36b60.jpg | 
|
edgedetect | -none- | https://pictshare.net/edgedetect/b260e36b60.jpg | 
|
||||||
smooth | -10 to 2048 | https://pictshare.net/smooth_3/b260e36b60.jpg | 
|
smooth | -10 to 2048 | https://pictshare.net/smooth_3/b260e36b60.jpg | 
|
||||||
contrast | -100 to 100 | https://pictshare.net/contrast_40/b260e36b60.jpg | 
|
contrast | -100 to 100 | https://pictshare.net/contrast_40/b260e36b60.jpg | 
|
||||||
pixelate | 0 to 100 | https://pictshare.net/pixelate_10/b260e36b60.jpg | 
|
pixelate | 0 to 100 | https://pictshare.net/pixelate_10/b260e36b60.jpg | 
|
||||||
blur | -none- or 0 to 5 | https://pictshare.net/blur/b260e36b60.jpg | 
|
blur | -none- or 0 to 5 | https://pictshare.net/blur/b260e36b60.jpg | 
|
||||||
sepia | -none- | https://pictshare.net/sepia/b260e36b60.jpg | 
|
sepia | -none- | https://pictshare.net/sepia/b260e36b60.jpg | 
|
||||||
sharpen | -none- | https://pictshare.net/sharpen/b260e36b60.jpg | 
|
sharpen | -none- | https://pictshare.net/sharpen/b260e36b60.jpg | 
|
||||||
emboss | -none- | https://pictshare.net/emboss/b260e36b60.jpg | 
|
emboss | -none- | https://pictshare.net/emboss/b260e36b60.jpg | 
|
||||||
cool | -none- | https://pictshare.net/cool/b260e36b60.jpg | 
|
cool | -none- | https://pictshare.net/cool/b260e36b60.jpg | 
|
||||||
light | -none- | https://pictshare.net/light/b260e36b60.jpg | 
|
light | -none- | https://pictshare.net/light/b260e36b60.jpg | 
|
||||||
aqua | -none- | https://pictshare.net/aqua/b260e36b60.jpg | 
|
aqua | -none- | https://pictshare.net/aqua/b260e36b60.jpg | 
|
||||||
fuzzy | -none- | https://pictshare.net/fuzzy/b260e36b60.jpg | 
|
fuzzy | -none- | https://pictshare.net/fuzzy/b260e36b60.jpg | 
|
||||||
boost | -none- | https://pictshare.net/boost/b260e36b60.jpg | 
|
boost | -none- | https://pictshare.net/boost/b260e36b60.jpg | 
|
||||||
gray | -none- | https://pictshare.net/gray/b260e36b60.jpg | 
|
gray | -none- | https://pictshare.net/gray/b260e36b60.jpg | 
|
||||||
|
|
||||||
You can also combine as many options as you want. Even multiple times! Want your image to be negative, resized, grayscale , with increased brightness and negate it again? No problem: https://pictshare.net/500x500/grayscale/negative/brightness_100/negative/b260e36b60.jpg
|
You can also combine as many options as you want. Even multiple times! Want your image to be negative, resized, grayscale , with increased brightness and negate it again? No problem: https://pictshare.net/500x500/grayscale/negative/brightness_100/negative/b260e36b60.jpg
|
||||||
|
|
||||||
@@ -249,20 +273,20 @@ This is a simple vHost config that should make PictShare work on Apache2.
|
|||||||
|
|
||||||
```
|
```
|
||||||
<VirtualHost *:80 >
|
<VirtualHost *:80 >
|
||||||
ServerAdmin webmaster@sub.domain.tld
|
ServerAdmin webmaster@sub.domain.tld
|
||||||
ServerName sub.domain.tld
|
ServerName sub.domain.tld
|
||||||
ServerAlias sub.domain.tld
|
ServerAlias sub.domain.tld
|
||||||
DocumentRoot /var/www/html
|
DocumentRoot /var/www/html
|
||||||
|
|
||||||
<Directory /var/www/html/>
|
<Directory /var/www/html/>
|
||||||
Options Indexes FollowSymLinks MultiViews
|
Options Indexes FollowSymLinks MultiViews
|
||||||
AllowOverride All
|
AllowOverride All
|
||||||
Order allow,deny
|
Order allow,deny
|
||||||
Allow from All
|
Allow from All
|
||||||
</Directory>
|
</Directory>
|
||||||
ErrorLog ${APACHE_LOG_DIR}/error.log
|
ErrorLog ${APACHE_LOG_DIR}/error.log
|
||||||
LogLevel warn
|
LogLevel warn
|
||||||
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user