mirror of
https://github.com/HaschekSolutions/pictshare.git
synced 2025-11-11 18:56:21 +00:00
55 lines
1.8 KiB
YAML
55 lines
1.8 KiB
YAML
version: '3.9'
|
|
services:
|
|
pictshare:
|
|
build:
|
|
context: .
|
|
dockerfile: docker/Dockerfile
|
|
environment:
|
|
- URL=http://localhost:8080/
|
|
- MAX_UPLOAD_SIZE=1000
|
|
# Security settings
|
|
- ADMIN_PASSWORD=test # password for the admin panel. if empty, admin panel is disabled
|
|
- ALLOWED_SUBNET= #IP address or subnet mask to allow upload to the server
|
|
- 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=true
|
|
# caching
|
|
- REDIS_CACHING=true
|
|
- REDIS_SERVER=localhost
|
|
- REDIS_PORT=6379
|
|
ports:
|
|
- 8080:80
|
|
volumes:
|
|
- ./data:/app/public/data
|
|
- ./logs:/app/public/logs
|
|
- ./src:/app/public/src
|
|
- ./web:/app/public/web
|
|
- ./tmp:/app/public/tmp
|
|
- ./tmp/redis:/var/lib/redis |