Skip to content

moonbuggy/docker-pasteboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Pasteboard

Pasteboard running in Alpine, with or without Nginx, built for multiple architectures.

Usage

docker run -d --name pasteboard \
  -p 8080:8080 \
  -v pasteboard_storage:/pasteboard/public/storage \
  moonbuggy2000/pasteboard:latest

Refer to the source repo for more detailed instructions.

Tags

There are two different builds available:

  • latest - using Node Express as the web server directly
  • nginx - with an Nginx caching proxy in front of Node Express

Environment variables

  • PB_ORIGIN - the domain Pasteboard is being run on (default: pasteboard.co)
  • PB_MAX - maximum time, in days, to retain images (default: 7, false for unlimited)
  • PUID - user ID to run as (default: 1000)
  • PGID - group ID to run as (default: 1000)
  • TZ - set timezone

PUID/PGID will be the owner of images in the mounted volume, so set permissions accordingly.

If using the default image:

  • NODE_PORT - outward facing Node port (default: 8080)

If using the Nginx image:

  • NGINX_LOG_ALL - enable logging of HTTP 200 and 300 responses (accepts: true, false default: false)
  • NGINX_PORT - outward facing Nginx port (default: 8080)
  • NGINX_BUFFER - sets client_body_buffer_size and client_max_body_size in Nginx (default: 5M)

The NGINX_BUFFER setting allows an uploaded image to be buffered in memory by the Nginx proxy, rather than using the disk for temporary storage. It can be increased if larger uploads are generating 'a client request body is buffered to a temporary file' warnings in the log.

Links

Source

About

Docker Pasteboard in Alpine

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published