A minimalist, open source online pastebin where the server has zero knowledge of pasted data. Data is encrypted/decrypted in the browser using 256 bits AES. https://privatebin.info
Go to file
2022-03-02 21:49:27 +01:00
etc refactor, cleanup and strip off the nginx 2020-05-17 22:43:54 +02:00
.dockerignore Updating documentation 2018-05-28 21:02:58 +02:00
.drone.yml add Drone CI 1.1 2019-04-29 09:23:09 +02:00
Dockerfile bump versions 2022-03-02 21:49:27 +01:00
README.md refactor, cleanup and strip off the nginx 2020-05-17 22:43:54 +02:00

PrivateBin in docker

docker-compose.yml example

This will automatically populate the data under the /srv/data/privatebin/html and /srv/data/privatebin/nginx directories.

Make sure to create these directories first.

version: '3.3'

services:
  privatebin-fpm:
    image: yourrepo/privatebin:1.3.4
    restart: always
    networks:
      - backend
    volumes:
      - privatebin_html:/var/www
      - privatebin_nginx:/etc/nginx/conf.d

  privatebin-nginx:
    image: nginx:mainline-alpine
    restart: always
    networks:
      - backend
    volumes:
      - privatebin_html:/var/www
      - privatebin_nginx:/etc/nginx/conf.d
      - /srv/data/privatebin/data:/srv/data
    depends_on:
      - privatebin-fpm
    # add whatever lables/directives you need to expose your nginx container

volumes:
  privatebin_html:
    driver: local
    driver_opts:
      type: none
      device: /srv/data/privatebin/html
      o: bind

  privatebin_nginx:
    driver: local
    driver_opts:
      type: none
      device: /srv/data/privatebin/nginx
      o: bind

updating the image

Update and reset the containers

docker-compose stop privatebin-fpm privatebin-nginx
docker-compose rm -f privatebin-fpm privatebin-nginx
docker volume rm srv_privatebin_html srv_privatebin_nginx
rm -rf /srv/data/privatebin/{html,nginx}
mkdir -p /srv/data/privatebin/{html,nginx}
docker pull yourrepo/privatebin:1.3.4
docker-compose up -d