-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
30 lines (28 loc) · 1.16 KB
/
Copy pathdocker-compose.yml
File metadata and controls
30 lines (28 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
version: "3"
services:
sharex-uploader:
container_name: ShareX-Uploader
image: fascinated/sharex-php-uploader:latest
# Uncomment the following line to build the image yourself
# build: https://github.com/RealFascinated/sharex-php-uploader.git
# or build it locally (you need to clone the repo first):
# build:
# context: .
restart: always
environment:
- TZ=America/Los_Angeles # Your timezone
- MAX_UPLOAD_SIZE=15G # The max upload size of files. Eg: 15G, 500M
- MAX_EXECUTION_TIME=3600 # Max execution time in seconds (0 = unlimited). For large files, set higher
- MEMORY_LIMIT=512M # PHP memory limit (can stay low since files are streamed, not loaded into memory)
- UPLOAD_SECRETS=set_me # You can add multiple secrets. Format: secret1,secret2,secret3
- 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
- FILE_NAME_LENGTH=8 # The length of the random file name
ports:
- "80:80/tcp"
volumes:
- "./uploads:/var/www/html:rw"
networks:
- bridge
networks:
bridge: