GithubHelp home page GithubHelp logo

docker-pasteboard's Introduction

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.