Node.js ShareX file and image server
9.3K
Save this as docker-compose.yml:
services:
sharex-server:
image: alexthemaster/sharex-server:latest
container_name: sharex-server
# Uncomment the following line to run sharex-server as your user instead of root (change id if different)
# user: 1000:1000
ports:
- "8080:8080"
environment:
- PASSWORD=yourpasswordhere
volumes:
# Change this path if you want to persist uploads elsewhere
- ./uploads:/server/uploads
restart: unless-stopped
The ShareX Server Docker image can be configured via the following environment variables:
PASSWORD (REQUIRED)
PASSWORD=Dr3wCIsHkdU9QQPORT
8080PORT=80BASE_URL
/BASE_URL=/uploadsFILENAME_LENGTH
nanoid).10FILENAME_LENGTH=10ENABLE_SXCU
GET /api/sxcu) for ShareX configuration. Set to false after downloading if this will be used as a private service (recommended)trueENABLE_SXCU=trueFORCE_HTTPS
FORCE_HTTPS=trueTRUST_PROXY
falseTRUST_PROXY=trueDEBUG
true to log detailed server activity.falseDEBUG=falseFILE_LISTING
false to disable.filesFILE_LISTING=filesContent type
Image
Digest
sha256:13626ec58…
Size
58 MB
Last updated
9 months ago
docker pull alexthemaster/sharex-server