Giter Club home page Giter Club logo

docker-0bin's Introduction

docker-0bin

A base debian jessie with 0bin installed.

Default settings

The default settings.py contains the folowing config :

HOST = "0.0.0.0"
PORT = "8000"
# Encrypted pastes will be saved in this location
PASTE_FILES_ROOT = "/data/0bin"

You can also set the CMD at container runtime and pass more options.

Note that only certain options can be passed via the cli. See more below ("Build your own")

How to use it

Build it

docker build -t 0bin .

Simple launch :

docker run -p 8000:8000 -d 0bin

To make data persistent accross container restart :

# Create a folder for datas on the host
mkdir /some/location
# laucn the container with the host folder mounted as a data volume
docker run -p 8000:8000 -v /some/location/:/data -d 0bin

Build your own

Depending on your wanted customizations, you can either sepcify a different CMD at runtime passing certain options or build a custom Dockerfile and a custom settings.py file in the same folder.

Look at the default config file for availables settings.

Create a Dockerfile containing:

FROM jcsaaddupuy/0bin

# Adds custom config in the right place
ADD settings.py /conf/settings.py

You can build it / start it in the same way.

docker-0bin's People

Contributors

jcsaaddupuy avatar

Watchers

 avatar  avatar

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.