mirror of
https://github.com/HaschekSolutions/pictshare.git
synced 2025-11-11 18:56:21 +00:00
updated info on new docker container source
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
# Docker
|
||||
The fastest way to deploy PictShare is via the [official Docker repo](https://hub.docker.com/r/hascheksolutions/pictshare/)
|
||||
The fastest way to deploy PictShare is via the [official Docker package](https://github.com/HaschekSolutions/pictshare/pkgs/container/pictshare)
|
||||
|
||||
```bash
|
||||
docker run -d -p 80:80 -e "TITLE=My own PictShare" -e "URL=http://localhost/" hascheksolutions/pictshare
|
||||
docker run -d -p 80:80 -e "TITLE=My own PictShare" -e "URL=http://localhost/" ghcr.io/hascheksolutions/pictshare
|
||||
```
|
||||
|
||||
[](https://www.pictshare.net/8a1dec0973.mp4)
|
||||
@@ -11,26 +11,26 @@ docker run -d -p 80:80 -e "TITLE=My own PictShare" -e "URL=http://localhost/" ha
|
||||
|
||||
### Building it
|
||||
```bash
|
||||
docker build -t hascheksolutions/pictshare .
|
||||
docker build -t pictshare .
|
||||
```
|
||||
|
||||
### Quick start
|
||||
```bash
|
||||
docker run -d -p 80:80 --name=pictshare hascheksolutions/pictshare
|
||||
docker run -d -p 80:80 --name=pictshare ghcr.io/hascheksolutions/pictshare
|
||||
```
|
||||
|
||||
### Persistent data
|
||||
```bash
|
||||
mkdir /data/pictshareuploads
|
||||
chown 1000 -R /data/pictshareuploads
|
||||
docker run -d -v /data/pictshareuploads:/var/www/data -p 80:80 --name=pictshare hascheksolutions/pictshare
|
||||
docker run -d -v /data/pictshareuploads:/var/www/data -p 80:80 --name=pictshare ghcr.io/hascheksolutions/pictshare
|
||||
```
|
||||
|
||||
### Persistent data with increased max upload size
|
||||
```bash
|
||||
mkdir /data/pictshareuploads
|
||||
chown 1000 -R /data/pictshareuploads
|
||||
docker run -d -e "MAX_UPLOAD_SIZE=1024" -v /data/pictshareuploads:/var/www/data -p 80:80 --name=pictshare hascheksolutions/pictshare
|
||||
docker run -d -e "MAX_UPLOAD_SIZE=1024" -v /data/pictshareuploads:/var/www/data -p 80:80 --name=pictshare ghcr.io/hascheksolutions/pictshare
|
||||
```
|
||||
|
||||
## ENV Variables
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
PictShare is written to be run on a linux server with PHP 7 and nginx. We tried to support Windows for some time but ever since we started integrating ffmpeg for MP4 hosting we ditched Windows.
|
||||
|
||||
It's highly recommended t hat you use [the official Docker container](https://hub.docker.com/r/hascheksolutions/pictshare) so you don't have to do any manual setup. But if you know what you're doing, you can set it up yourself.
|
||||
It's highly recommended t hat you use [the official Docker container](https://github.com/HaschekSolutions/pictshare/pkgs/container/pictshare) so you don't have to do any manual setup. But if you know what you're doing, you can set it up yourself.
|
||||
|
||||
- Make sure you have all PHP7 libraries installed (note on some systems the packages are not called php7-* but just php-* also on some systems php7-mbstring is called php7-mb): ```apt-get install php7-exif php7-gd php7-json php7-openssl php7-fileinfo php7-mbstring php7-mcrypt```
|
||||
- If you are not using windows, make sure your os have the ```file``` command working: ```apt-get install file```
|
||||
|
||||
Reference in New Issue
Block a user