Giter Site home page Giter Site logo

privatebin's Introduction

PrivateBin Docker Container

This repository contains the configuration for setting up a PrivateBin docker container using docker-compose easyly.

Configuration :

We are using the official PrivateBin Docker image (see the Dockerfile and other documentation). Our compose file specifies the latest build : latest

We have taken the docker container command suggested in the PrivateBin Docker documentation and translated it into a compose file for easier execution. The original suggested command was

docker run -d --restart="always" --read-only -p 8080:8080 -v $PWD/conf.php:/srv/cfg/conf.php:ro -v $PWD/privatebin-data:/srv/data privatebin/nginx-fpm-alpine

Config Files :

docker-compose.yml : Should be edited to fit your needs.

user: 1001
#used to force the user used to run PrivateBin (refer to docker documentation)
#Docker uses user 1000 by default
#to find your user uid run : id -u <username>
#replace 1001 by YOUR USER id, if different.

Config file is located in .cnf/ directory.

conf.php : contains full configuration for Privatebin v1.7.5

To Run

Run foollowing commands assuming Docker and Docker-Compose are installed and configured for your user :

First, clone this repository, it will create a directory containing all needed files.

git clone https://github.com/gigadjo/PrivateBin.git

Then move into the PrivateBin directory that just has been created.

$ cd PrivateBin

Edit files according to your needs, they are located in cfg/ directory.

When done, run Private Bin using Docker Compose :

$ docker compose pull
$ docker compose up -d

To Update

Run the following commands :

$ docker compose down
$ docker compose pull
$ docker compose up -d

privatebin's People

Contributors

gabrielesh avatar gigadjo 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.