mirror of
https://github.com/HaschekSolutions/pictshare.git
synced 2025-11-16 13:08:01 +00:00
24
docker-compose.yml
Normal file
24
docker-compose.yml
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
version: '2'
|
||||||
|
|
||||||
|
services:
|
||||||
|
pictshare:
|
||||||
|
restart: always
|
||||||
|
image: hascheksolutions/pictshare:latest
|
||||||
|
volumes:
|
||||||
|
- ./volumes/upload:/opt/pictshare/upload
|
||||||
|
ports:
|
||||||
|
- "80:80"
|
||||||
|
- "443:443"
|
||||||
|
environment:
|
||||||
|
- TITLE=
|
||||||
|
- AUTOUPDATE=false
|
||||||
|
- MAXUPLOADSIZE=
|
||||||
|
- MASTERDELETECODE=
|
||||||
|
- BLOATING=
|
||||||
|
- UPLOADCODE=
|
||||||
|
- UPLOADPATH=
|
||||||
|
- IMAGECHANGECODE=
|
||||||
|
- LOGUPLOADER=
|
||||||
|
- MAXRESIZEDIMAGES=
|
||||||
|
- DOMAIN=
|
||||||
|
- SHOWERRORS=
|
||||||
24
README.md
24
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```
|
||||||
|
|||||||
Reference in New Issue
Block a user