2023-07-05 16:19:32 +00:00
|
|
|
version: "3"
|
2023-07-04 15:32:18 +00:00
|
|
|
|
|
|
|
services:
|
2023-07-05 16:19:32 +00:00
|
|
|
sharex-uploader:
|
|
|
|
container_name: ShareX-Uploader
|
2023-07-04 17:08:39 +00:00
|
|
|
image: fascinated/sharex-php-uploader:latest
|
|
|
|
# Uncomment the following line to build the image yourself
|
|
|
|
# build: https://git.fascinated.cc/Fascinated/sharex-php-uploader.git
|
2023-07-05 15:20:57 +00:00
|
|
|
# or build it locally (you need to clone the repo first):
|
|
|
|
# build:
|
|
|
|
# context: .
|
2023-07-04 15:32:18 +00:00
|
|
|
restart: always
|
2023-07-04 16:22:22 +00:00
|
|
|
environment:
|
2023-07-05 16:19:32 +00:00
|
|
|
- TZ=America/Los_Angeles
|
2023-07-04 16:22:22 +00:00
|
|
|
- MAX_UPLOAD_SIZE=500M
|
2023-07-05 00:08:00 +00:00
|
|
|
- UPLOAD_SECRETS=set me # You can add multiple secrets. Format: secret1,secret2,secret3
|
2023-07-05 00:49:59 +00:00
|
|
|
- UPLOAD_DIR=./ # The directory to store the uploaded files
|
|
|
|
- USE_RANDOM_FILE_NAMES=true # If true, the uploaded files will be renamed to a random string
|
2023-07-05 15:09:58 +00:00
|
|
|
- FILE_NAME_LENGTH=8 # The length of the random file name
|
2023-07-05 00:49:59 +00:00
|
|
|
- SHOULD_CONVERT_TO_WEBP=true # If true, the uploaded files will be converted to webp
|
2023-07-05 16:19:32 +00:00
|
|
|
- WEBP_QUALITY=95 # The quality of the converted webp files (0-100 -)
|
2023-07-05 00:49:59 +00:00
|
|
|
- WEBP_THREADHOLD=1048576 # The minimum file size to convert to webp (1MB in bytes)
|
2023-07-04 15:32:18 +00:00
|
|
|
ports:
|
2023-07-05 16:19:32 +00:00
|
|
|
- "80:80/tcp"
|
2023-07-04 15:32:18 +00:00
|
|
|
volumes:
|
2023-07-05 16:23:54 +00:00
|
|
|
- "./uploads:/var/www/html:rw"
|
2023-07-05 16:19:32 +00:00
|
|
|
networks:
|
|
|
|
- bridge
|
|
|
|
|
|
|
|
networks:
|
|
|
|
bridge:
|