sharex-php-uploader/docker-compose.yml

32 lines
803 B
YAML
Raw Normal View History

version: "3"
2023-07-04 15:32:18 +00:00
services:
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:
- TZ=America/Los_Angeles
2023-07-04 16:22:22 +00:00
- MAX_UPLOAD_SIZE=500M
2023-07-05 16:26:42 +00:00
- UPLOAD_SECRETS=zMxvHmRRjoS4QXQo
- UPLOAD_DIR=./
- USE_RANDOM_FILE_NAMES=true
- SHOULD_CONVERT_TO_WEBP=true
- WEBP_QUALITY=95
- WEBP_THREADHOLD=1048576
- FILE_NAME_LENGTH=8
2023-07-04 15:32:18 +00:00
ports:
- "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"
networks:
- bridge
networks:
bridge: