Merge pull request #41 from yellowsoar/master

Add docker compose file
This commit is contained in:
Christian Haschek
2018-03-08 08:38:59 +01:00
committed by GitHub
2 changed files with 79 additions and 31 deletions

24
docker-compose.yml Normal file
View 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=

View File

@@ -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
[![Docker setup](http://www.pictshare.net/b65dea2117.gif)](https://www.pictshare.net/8a1dec0973.mp4) [![Docker setup](http://www.pictshare.net/b65dea2117.gif)](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```