Files
pictshare/docker-compose.yml

50 lines
1.8 KiB
YAML

version: '3.9'
services:
pictshare:
image: 'HaschekSolutions/pictshare:3'
environment:
- URL=http://localhost:8080/
- MAX_UPLOAD_SIZE=20 #in MB
# Security settings
- ADMIN_PASSWORD= # password for the admin panel. if empty, admin panel is disabled
- ALLOWED_SUBNET= #IP address or subnet mask to allow upload and access to the admin panel
- CONTENTCONTROLLERS= # limit uploaded file types
- MASTER_DELETE_CODE= # code to delete all files
- MASTER_DELETE_IP= # IP address to delete all files even without delete code
- UPLOAD_FORM_LOCATION= # moves the upload form from / to whatever you set here
- UPLOAD_CODE= # if set, requires this code to upload files via api or web
# image settings settings
- ALLOW_BLOATING=false
- JPEG_COMPRESSION=
- PNG_COMPRESSION=
- ALWAYS_WEBP=false # if true, will always serve webp images if the request included the capability
# alternate folder. all uploads will also be copied to this folder
- ALT_FOLDER=
# s3 settings
- S3_BUCKET=
- S3_ACCESS_KEY=
- S3_SECRET_KEY=
- S3_ENDPOINT=
- S3_REGION=
# FTP settings
- FTP_SERVER=
- FTP_PORT=
- FTP_USER=
- FTP_PASS=
- FTP_PASSIVEMODE=
- FTP_SSL=
- FTP_BASEDIR=
# encryption settings
- ENCRYPTION_KEY=
# logging settings
- LOG_VIEWS=false
# caching
- REDIS_CACHING=true
- REDIS_SERVER=localhost
- REDIS_PORT=6379
ports:
- 8080:80
volumes:
- ./data:/app/public/data
- ./logs:/app/public/logs
- ./redis:/var/lib/redis # can be commeted out if REDIS_CACHING is set to false